Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Inertia.phi|Inertia.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003551/0.0003552, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.09582, allocations: 44.51 MB / 309 MB, free: 1.035 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4425/0.5384, allocations: 90.73 MB / 399.7 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002689/0.5387, allocations: 88.36 kB / 399.8 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9482/1.487, allocations: 162 MB / 0.5486 GB, free: 63.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.487, allocations: 0 / 0.5486 GB, free: 63.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007309/1.488, allocations: 156.8 kB / 0.5488 GB, free: 63.46 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2383 * Number of variables: 2383 Notification: Performance of Generate backend data structure: time 0.0384/1.526, allocations: 8.971 MB / 0.5575 GB, free: 60.05 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/1.526, allocations: 10.81 kB / 0.5576 GB, free: 60.05 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1171/1.643, allocations: 16.46 MB / 0.5736 GB, free: 59.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04541/1.689, allocations: 13.55 MB / 0.5869 GB, free: 58.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007197/1.69, allocations: 0.5247 MB / 0.5874 GB, free: 58.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004051/1.694, allocations: 0.7243 MB / 0.5881 GB, free: 58.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05196/1.746, allocations: 16.44 MB / 0.6041 GB, free: 54.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007129/1.746, allocations: 106.7 kB / 0.6042 GB, free: 54.62 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003594/1.75, allocations: 339 kB / 0.6046 GB, free: 54.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003494/1.753, allocations: 1.489 MB / 0.606 GB, free: 54.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04193/1.795, allocations: 12.91 MB / 0.6186 GB, free: 49.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4232/2.219, allocations: 73.31 MB / 0.6902 GB, free: 65.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03445/2.253, allocations: 7.493 MB / 0.6975 GB, free: 64.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02974/2.283, allocations: 11.58 MB / 0.7088 GB, free: 62.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.108e-05/2.283, allocations: 69.8 kB / 0.7089 GB, free: 62.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.214e-06/2.283, allocations: 0 / 0.7089 GB, free: 62.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.3371/2.62, allocations: 51 MB / 0.7587 GB, free: 57.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/2.62, allocations: 405.7 kB / 0.7591 GB, free: 57.45 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01667/2.637, allocations: 7.05 MB / 0.766 GB, free: 56.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009552/2.638, allocations: 82.33 kB / 0.7661 GB, free: 56.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004588/2.643, allocations: 4.876 MB / 0.7708 GB, free: 54.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002052/2.645, allocations: 1.24 MB / 0.772 GB, free: 53.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001178/2.646, allocations: 168.6 kB / 0.7722 GB, free: 53.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006013/2.647, allocations: 0.6564 MB / 0.7728 GB, free: 53.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00948/2.656, allocations: 3.792 MB / 0.7765 GB, free: 53.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01236/2.669, allocations: 8.476 MB / 0.7848 GB, free: 44.14 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01196/2.681, allocations: 5.497 MB / 0.7902 GB, free: 39.36 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001566/2.681, allocations: 44 kB / 0.7902 GB, free: 39.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.05402/2.735, allocations: 16.33 MB / 0.8062 GB, free: 26.46 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001129/2.735, allocations: 72 kB / 0.8062 GB, free: 26.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002187/2.735, allocations: 168.2 kB / 0.8064 GB, free: 26.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0291/2.764, allocations: 5.486 MB / 0.8118 GB, free: 22.42 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01094/2.775, allocations: 1.785 MB / 0.8135 GB, free: 20.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06378/2.839, allocations: 28.96 MB / 0.8418 GB, free: 10.44 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01117/2.85, allocations: 0.5185 MB / 0.8423 GB, free: 9.926 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.3044/3.155, allocations: 478 kB / 0.8427 GB, free: 77.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 737 * Number of states: 0 () * Number of discrete variables: 63 (cylPosition.color[3],cylPosition.color[2],cylPosition.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],Mid.color[3],Mid.color[2],Mid.color[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[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],B2.cylinderColor[3],B2.cylinderColor[2],B2.cylinderColor[1],Rod.color[3],Rod.color[2],Rod.color[1],Rod.body.sphereColor[3],Rod.body.sphereColor[2],Rod.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 (944): * Single equations (assignments): 938 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,51.6%) 93,(3,88.9%) 5} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.01168/3.167, allocations: 3.469 MB / 0.8461 GB, free: 77.58 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002068/3.169, allocations: 0.654 MB / 0.8468 GB, free: 77.58 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0442/3.213, allocations: 10.93 MB / 0.8574 GB, free: 77.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.202e-05/3.213, allocations: 36.69 kB / 0.8575 GB, free: 77.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-05/3.213, allocations: 19.67 kB / 0.8575 GB, free: 77.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.282e-05/3.213, allocations: 18.45 kB / 0.8575 GB, free: 77.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07548/3.289, allocations: 23.97 MB / 0.8809 GB, free: 74.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.605e-05/3.289, allocations: 10.36 kB / 0.8809 GB, free: 74.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003821/3.293, allocations: 430.3 kB / 0.8813 GB, free: 74.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02906/3.322, allocations: 5.075 MB / 0.8863 GB, free: 74.44 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00119/3.323, allocations: 65.47 kB / 0.8864 GB, free: 74.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08508/3.408, allocations: 27.69 MB / 0.9134 GB, free: 63.66 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.145e-05/3.408, allocations: 8.5 kB / 0.9134 GB, free: 63.66 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05048/3.459, allocations: 15.68 MB / 0.9287 GB, free: 58.03 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004979/3.464, allocations: 1.266 MB / 0.93 GB, free: 57.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002785/3.466, allocations: 61.91 kB / 0.93 GB, free: 57.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006973/3.473, allocations: 254.4 kB / 0.9303 GB, free: 57.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001495/3.475, allocations: 238 kB / 0.9305 GB, free: 57.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005209/3.476, allocations: 92.98 kB / 0.9306 GB, free: 57.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01236/3.488, allocations: 4.516 MB / 0.935 GB, free: 55.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.51e-07/3.488, allocations: 0 / 0.935 GB, free: 55.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.013/3.501, allocations: 1.959 MB / 0.9369 GB, free: 55.76 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (214): * Single equations (assignments): 208 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,55.1%) 87,(2,100.0%) 4} * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001361/3.502, allocations: 221.9 kB / 0.9371 GB, free: 55.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02576/3.528, allocations: 10.17 MB / 0.9471 GB, free: 50.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.159e-05/3.528, allocations: 0 / 0.9471 GB, free: 50.99 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01307/3.541, allocations: 4.513 MB / 0.9515 GB, free: 47.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008432/3.55, allocations: 0.9799 MB / 0.9524 GB, free: 46.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05478/3.605, allocations: 22.49 MB / 0.9744 GB, free: 26.17 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01403/3.619, allocations: 5.714 MB / 0.98 GB, free: 22.03 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002567/3.621, allocations: 445.1 kB / 0.9804 GB, free: 21.61 MB / 442.7 MB Notification: Performance of SimCode: time 1.333e-06/3.621, allocations: 0 / 0.9804 GB, free: 21.61 MB / 442.7 MB Notification: Performance of Templates: time 1.018/4.64, allocations: 195.7 MB / 1.171 GB, free: 97.18 MB / 474.7 MB