Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic") Notification: Performance of loadModel(Modelica): time 1.233/1.233, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000282/0.0002821, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05585/0.05615, allocations: 25.18 MB / 184 MB, free: 6.012 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2577/0.3139, allocations: 60.96 MB / 245 MB, free: 1.93 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.3143, allocations: 83.83 kB / 245.1 MB, free: 1.887 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.942/5.256, allocations: 0.5726 GB / 0.812 GB, free: 14.85 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.685e-06/5.256, allocations: 0 / 0.812 GB, free: 14.85 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.001131/5.257, allocations: 218.7 kB / 0.8122 GB, free: 14.84 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3326 * Number of variables: 3326 Notification: Performance of Generate backend data structure: time 0.3585/5.616, allocations: 47.84 MB / 0.8589 GB, free: 468 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/5.616, allocations: 8.031 kB / 0.8589 GB, free: 460 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 11.41/17.03, allocations: 1.04 GB / 1.899 GB, free: 48.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09858/17.13, allocations: 28.04 MB / 1.927 GB, free: 44.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001073/17.13, allocations: 0.7506 MB / 1.927 GB, free: 44.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.02146/17.15, allocations: 1.006 MB / 1.928 GB, free: 43.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.341/20.49, allocations: 341 MB / 2.261 GB, free: 44.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000899/20.49, allocations: 92.39 kB / 2.262 GB, free: 44.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01965/20.51, allocations: 446.9 kB / 2.262 GB, free: 44.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009546/20.52, allocations: 2.429 MB / 2.264 GB, free: 44.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.359/26.88, allocations: 0.6404 GB / 2.905 GB, free: 23.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.035/34.92, allocations: 0.9411 GB / 3.846 GB, free: 32.79 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.7463/35.66, allocations: 66.64 MB / 3.911 GB, free: 86.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1253/35.79, allocations: 54.57 MB / 3.964 GB, free: 55.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.4e-05/35.79, allocations: 79.61 kB / 3.964 GB, free: 55.1 MB / 346.7 MB Notification: Performance of pre-optimization done (n=357): time 7.754e-06/35.79, allocations: 0 / 3.964 GB, free: 55.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=458): time 1.957/37.74, allocations: 198.1 MB / 4.158 GB, free: 82.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/37.75, allocations: 409.1 kB / 4.158 GB, free: 81.7 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.07524/37.82, allocations: 14.1 MB / 4.172 GB, free: 81.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.004072/37.82, allocations: 96.8 kB / 4.172 GB, free: 81.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006343/37.83, allocations: 6.507 MB / 4.178 GB, free: 78.15 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005618/37.84, allocations: 1.674 MB / 4.18 GB, free: 76.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005685/37.84, allocations: 226 kB / 4.18 GB, free: 76.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.001187/37.84, allocations: 0.787 MB / 4.181 GB, free: 76.22 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.7177/38.56, allocations: 62.48 MB / 4.242 GB, free: 83.05 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4915/39.05, allocations: 68.82 MB / 4.309 GB, free: 69.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.6514/39.7, allocations: 52.56 MB / 4.361 GB, free: 74.74 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002597/39.7, allocations: 68.19 kB / 4.361 GB, free: 74.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=1474) (initialization): time 1.177/40.88, allocations: 122.9 MB / 4.481 GB, free: 72.56 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001819/40.88, allocations: 101.2 kB / 4.481 GB, free: 72.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003677/40.88, allocations: 219.4 kB / 4.481 GB, free: 72.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02547/40.91, allocations: 4.536 MB / 4.485 GB, free: 72.53 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2182/41.13, allocations: 25.97 MB / 4.511 GB, free: 72.53 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/41.14, allocations: 6.924 MB / 4.518 GB, free: 70.8 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2763/41.42, allocations: 26.69 MB / 4.544 GB, free: 46.92 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007175/41.42, allocations: 1.313 MB / 4.545 GB, free: 45.61 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 999 * 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 (1322): * Single equations (assignments): 1317 * 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: 0 * Non-linear torn systems: 1 {3 124} Notification: Performance of prepare postOptimizeDAE: time 0.345/41.77, allocations: 4.73 MB / 4.549 GB, free: 74.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009506/41.78, allocations: 0.8025 MB / 4.55 GB, free: 74.29 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04938/41.83, allocations: 9.85 MB / 4.56 GB, free: 74.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001427/41.83, allocations: 49.48 kB / 4.56 GB, free: 74.03 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.433e-05/41.83, allocations: 8.734 kB / 4.56 GB, free: 74.03 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001345/41.83, allocations: 21.19 kB / 4.56 GB, free: 74.03 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.131/41.96, allocations: 49.37 MB / 4.608 GB, free: 49.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001136/41.96, allocations: 12.05 kB / 4.608 GB, free: 49.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1867/42.15, allocations: 22.03 MB / 4.63 GB, free: 49.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0241/42.17, allocations: 3.893 MB / 4.633 GB, free: 48.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004326/42.18, allocations: 0.6189 MB / 4.634 GB, free: 48.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/42.19, allocations: 6.07 MB / 4.64 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.175e-05/42.19, allocations: 11.12 kB / 4.64 GB, free: 45.71 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.714/43.9, allocations: 169.9 MB / 4.806 GB, free: 73.92 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01673/43.92, allocations: 4.305 MB / 4.81 GB, free: 73.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008244/43.93, allocations: 87.5 kB / 4.81 GB, free: 73.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2053/44.13, allocations: 22.49 MB / 4.832 GB, free: 73.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001466/44.13, allocations: 264.9 kB / 4.832 GB, free: 73.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003735/44.14, allocations: 0.6871 MB / 4.833 GB, free: 73.81 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.06732/44.21, allocations: 10.63 MB / 4.844 GB, free: 72.59 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.41e-07/44.21, allocations: 0 / 4.844 GB, free: 72.59 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.02705/44.23, allocations: 3.452 MB / 4.847 GB, free: 72.34 MB / 346.7 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 (334): * Single equations (assignments): 330 * 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: 0 * Non-linear torn systems: 1 {3 108} Notification: Performance of Backend phase and start with SimCode phase: time 0.004232/44.24, allocations: 295.7 kB / 4.847 GB, free: 72.19 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 1.17/45.41, allocations: 122.2 MB / 4.967 GB, free: 71.71 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.712e-05/45.41, allocations: 4 kB / 4.967 GB, free: 71.71 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.7088/46.12, allocations: 57.25 MB / 5.022 GB, free: 76.29 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0167/46.13, allocations: 1.086 MB / 5.023 GB, free: 76.26 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4796/46.61, allocations: 81.83 MB / 5.103 GB, free: 45.14 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2947/46.91, allocations: 7.385 MB / 5.111 GB, free: 66.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02687/46.93, allocations: 2.565 MB / 5.113 GB, free: 66.93 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/46.93, allocations: 0 / 5.113 GB, free: 66.93 MB / 346.7 MB Notification: Performance of Templates: time 1.244/48.18, allocations: 356.2 MB / 5.461 GB, free: 12.46 MB / 362.7 MB