Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 1.658/1.658, allocations: 171.1 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003614, allocations: 15.98 kB / 233.2 MB, free: 3.043 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07081/0.0712, allocations: 38.77 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic): time 0.3094/0.3807, allocations: 93.81 MB / 365.7 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.05877/0.4395, allocations: 21.67 MB / 387.4 MB, free: 9.789 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02131/0.4609, allocations: 486.8 kB / 387.9 MB, free: 9.312 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01549/0.4764, allocations: 4.783 MB / 392.7 MB, free: 4.508 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.04603/0.5225, allocations: 13.34 MB / 406 MB, free: 7.133 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00827/0.5308, allocations: 1.702 MB / 407.7 MB, free: 5.43 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.3383/0.8691, allocations: 50.76 MB / 458.5 MB, free: 37.79 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02036/0.8895, allocations: 12.78 MB / 471.3 MB, free: 36.73 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005262/0.8948, allocations: 2.677 MB / 473.9 MB, free: 36.73 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006079/0.901, allocations: 3.592 MB / 477.5 MB, free: 36.71 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001932/0.9029, allocations: 339.6 kB / 477.9 MB, free: 36.71 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004352/0.9073, allocations: 1.365 MB / 479.2 MB, free: 36.71 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005176/0.9125, allocations: 3.918 MB / 483.1 MB, free: 35.25 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003145/0.9157, allocations: 1.874 MB / 485 MB, free: 34.58 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01562/0.9314, allocations: 14.36 MB / 499.4 MB, free: 22.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.909e-06/0.9314, allocations: 4 kB / 499.4 MB, free: 22.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.114e-06/0.9315, allocations: 0 / 499.4 MB, free: 22.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003365/0.9318, allocations: 0 / 499.4 MB, free: 22.11 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.02755/0.9594, allocations: 10.19 MB / 0.4976 GB, free: 12.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.9594, allocations: 16.02 kB / 0.4976 GB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3294/1.289, allocations: 30.07 MB / 0.527 GB, free: 0.5547 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02728/1.316, allocations: 10.2 MB / 0.537 GB, free: 9.387 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006016/1.317, allocations: 0.5227 MB / 0.5375 GB, free: 9.094 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002758/1.32, allocations: 0.719 MB / 0.5382 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04898/1.369, allocations: 19.5 MB / 0.5572 GB, free: 9.809 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004191/1.369, allocations: 89.3 kB / 0.5573 GB, free: 9.754 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001841/1.371, allocations: 329.2 kB / 0.5576 GB, free: 9.664 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005318/1.376, allocations: 2.759 MB / 0.5603 GB, free: 7.445 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04376/1.42, allocations: 15.81 MB / 0.5757 GB, free: 12.65 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5105/1.931, allocations: 72.99 MB / 0.647 GB, free: 128.4 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02836/1.959, allocations: 8.076 MB / 0.6549 GB, free: 124.3 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02694/1.986, allocations: 14.38 MB / 0.669 GB, free: 114.3 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/1.986, allocations: 75.19 kB / 0.669 GB, free: 114.3 MB / 426.8 MB Notification: Performance of pre-optimization done (n=308): time 7.643e-06/1.986, allocations: 0 / 0.669 GB, free: 114.3 MB / 426.8 MB Notification: Performance of matching and sorting (n=408): time 0.202/2.188, allocations: 48.31 MB / 0.7162 GB, free: 66.5 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000105/2.188, allocations: 401.1 kB / 0.7166 GB, free: 66.02 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01492/2.203, allocations: 8.389 MB / 0.7248 GB, free: 57.64 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008379/2.204, allocations: 85.7 kB / 0.7249 GB, free: 57.55 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003967/2.208, allocations: 5.446 MB / 0.7302 GB, free: 52.12 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001873/2.21, allocations: 1.477 MB / 0.7316 GB, free: 50.66 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008351/2.211, allocations: 180 kB / 0.7318 GB, free: 50.48 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0005308/2.211, allocations: 0.7031 MB / 0.7325 GB, free: 49.77 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008302/2.22, allocations: 4.316 MB / 0.7367 GB, free: 45.44 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01103/2.231, allocations: 9.283 MB / 0.7458 GB, free: 33.8 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01143/2.242, allocations: 6.21 MB / 0.7518 GB, free: 27.58 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001283/2.242, allocations: 48 kB / 0.7519 GB, free: 27.54 MB / 426.8 MB Notification: Performance of matching and sorting (n=1200) (initialization): time 0.04276/2.285, allocations: 17.24 MB / 0.7687 GB, free: 10.25 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/2.285, allocations: 79.94 kB / 0.7688 GB, free: 10.18 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001972/2.286, allocations: 172 kB / 0.769 GB, free: 10.01 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0197/2.305, allocations: 5.031 MB / 0.7739 GB, free: 4.969 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007804/2.313, allocations: 1.942 MB / 0.7758 GB, free: 3.023 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2776/2.591, allocations: 27.89 MB / 0.803 GB, free: 146.6 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009605/2.6, allocations: 0.5503 MB / 0.8035 GB, free: 146.4 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001853/2.602, allocations: 0.4973 MB / 0.804 GB, free: 146.4 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 778 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.cylinderColor[1],cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Mid.color[3],Mid.color[2],Mid.color[1],Crank2.color[3],Crank2.color[2],Crank2.color[1],Crank2.body.sphereColor[3],Crank2.body.sphereColor[2],Crank2.body.sphereColor[1],Crank1.color[3],Crank1.color[2],Crank1.color[1],Crank1.body.sphereColor[3],Crank1.body.sphereColor[2],Crank1.body.sphereColor[1],Crank3.color[3],Crank3.color[2],Crank3.color[1],Crank3.body.sphereColor[3],Crank3.body.sphereColor[2],Crank3.body.sphereColor[1],Crank4.color[3],Crank4.color[2],Crank4.color[1],Crank4.body.sphereColor[3],Crank4.body.sphereColor[2],Crank4.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],Bearing.cylinderColor[3],Bearing.cylinderColor[2],Bearing.cylinderColor[1],Rod2.color[3],Rod2.color[2],Rod2.color[1],Rod2.body.sphereColor[3],Rod2.body.sphereColor[2],Rod2.body.sphereColor[1],Piston.color[3],Piston.color[2],Piston.color[1],Piston.body.sphereColor[3],Piston.body.sphereColor[2],Piston.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1048): * Single equations (assignments): 1043 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009292/2.612, allocations: 4.082 MB / 0.808 GB, free: 144.8 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001694/2.613, allocations: 0.7113 MB / 0.8087 GB, free: 144.8 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0321/2.646, allocations: 11.41 MB / 0.8198 GB, free: 140.7 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.577e-05/2.646, allocations: 44.27 kB / 0.8199 GB, free: 140.7 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.134e-05/2.646, allocations: 23.2 kB / 0.8199 GB, free: 140.7 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.448e-05/2.646, allocations: 22 kB / 0.8199 GB, free: 140.7 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06321/2.709, allocations: 24.7 MB / 0.844 GB, free: 119.8 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.597e-05/2.709, allocations: 8 kB / 0.8441 GB, free: 119.8 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003073/2.712, allocations: 0.5266 MB / 0.8446 GB, free: 119.2 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01875/2.731, allocations: 4.448 MB / 0.8489 GB, free: 114.8 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009055/2.732, allocations: 77.5 kB / 0.849 GB, free: 114.8 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04794/2.78, allocations: 24.53 MB / 0.8729 GB, free: 90.31 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-05/2.78, allocations: 11.94 kB / 0.873 GB, free: 90.3 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0377/2.818, allocations: 16.8 MB / 0.8894 GB, free: 73.47 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004355/2.822, allocations: 1.456 MB / 0.8908 GB, free: 72 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002134/2.824, allocations: 76 kB / 0.8909 GB, free: 71.92 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00535/2.83, allocations: 259.8 kB / 0.8911 GB, free: 71.67 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001446/2.831, allocations: 297.4 kB / 0.8914 GB, free: 71.38 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007235/2.832, allocations: 118.8 kB / 0.8915 GB, free: 71.27 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.01162/2.844, allocations: 5.491 MB / 0.8969 GB, free: 65.79 MB / 426.8 MB Notification: Performance of sort global known variables: time 1.312e-06/2.844, allocations: 0 / 0.8969 GB, free: 65.79 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01163/2.855, allocations: 2.227 MB / 0.899 GB, free: 63.57 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 2 (Inertia.phi,Inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (284): * Single equations (assignments): 280 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001358/2.857, allocations: 279.8 kB / 0.8993 GB, free: 63.31 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02023/2.877, allocations: 10.84 MB / 0.9099 GB, free: 52.53 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/2.877, allocations: 5.625 kB / 0.9099 GB, free: 52.53 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008767/2.886, allocations: 4.555 MB / 0.9143 GB, free: 47.95 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006507/2.892, allocations: 1.053 MB / 0.9154 GB, free: 46.93 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2718/3.164, allocations: 25.94 MB / 0.9407 GB, free: 149 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01538/3.18, allocations: 6.565 MB / 0.9471 GB, free: 148 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002586/3.182, allocations: 0.4972 MB / 0.9476 GB, free: 148 MB / 426.8 MB Notification: Performance of SimCode: time 1.765e-06/3.182, allocations: 0 / 0.9476 GB, free: 148 MB / 426.8 MB Notification: Performance of Templates: time 0.4747/3.657, allocations: 156 MB / 1.1 GB, free: 147.2 MB / 426.8 MB