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.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b") Notification: Performance of loadModel(Modelica): time 1.175/1.175, allocations: 111.1 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003641/0.0003642, allocations: 4 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0541/0.0545, allocations: 25.17 MB / 184 MB, free: 6.016 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2747/0.3293, allocations: 51.2 MB / 235.3 MB, free: 11.63 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.3296, allocations: 84.02 kB / 235.3 MB, free: 11.59 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.49/5.82, allocations: 0.6077 GB / 0.8375 GB, free: 4.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.554e-06/5.82, allocations: 0 / 0.8375 GB, free: 4.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000924/5.821, allocations: 192 kB / 0.8377 GB, free: 3.832 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: 3136 * Number of variables: 3136 Notification: Performance of Generate backend data structure: time 0.8064/6.627, allocations: 51.04 MB / 0.8876 GB, free: 22.75 MB / 266.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/6.627, allocations: 9.312 kB / 0.8876 GB, free: 22.75 MB / 266.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 12.3/18.93, allocations: 1.156 GB / 2.043 GB, free: 46.01 MB / 298.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1099/19.04, allocations: 28.62 MB / 2.071 GB, free: 40.86 MB / 298.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001081/19.04, allocations: 0.6897 MB / 2.072 GB, free: 40.59 MB / 298.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.02364/19.06, allocations: 0.9272 MB / 2.073 GB, free: 40.32 MB / 298.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.573/22.64, allocations: 375.3 MB / 2.439 GB, free: 30.19 MB / 298.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008578/22.64, allocations: 88.42 kB / 2.44 GB, free: 30.18 MB / 298.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.02086/22.66, allocations: 408.8 kB / 2.44 GB, free: 29.93 MB / 298.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009227/22.67, allocations: 2.441 MB / 2.442 GB, free: 28.04 MB / 298.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.423/30.09, allocations: 0.7092 GB / 3.151 GB, free: 1.164 MB / 298.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.97/39.06, allocations: 1.033 GB / 4.184 GB, free: 48.33 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.8279/39.89, allocations: 71.06 MB / 4.254 GB, free: 101.1 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.156/40.04, allocations: 56.31 MB / 4.309 GB, free: 69.54 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.879e-05/40.04, allocations: 70.59 kB / 4.309 GB, free: 69.48 MB / 362.8 MB Notification: Performance of pre-optimization done (n=352): time 7.615e-06/40.04, allocations: 3.094 kB / 4.309 GB, free: 69.48 MB / 362.8 MB Notification: Performance of matching and sorting (n=421): time 2.101/42.14, allocations: 189.1 MB / 4.493 GB, free: 94.7 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001545/42.14, allocations: 405.8 kB / 4.494 GB, free: 94.26 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1271/42.27, allocations: 19.27 MB / 4.513 GB, free: 92.96 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00402/42.28, allocations: 94.12 kB / 4.513 GB, free: 92.88 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005695/42.28, allocations: 6.225 MB / 4.519 GB, free: 87.93 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.005431/42.29, allocations: 1.561 MB / 4.52 GB, free: 86.77 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00578/42.29, allocations: 222.2 kB / 4.521 GB, free: 86.6 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0009491/42.29, allocations: 0.7757 MB / 4.521 GB, free: 86.09 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.7492/43.04, allocations: 66.89 MB / 4.587 GB, free: 97.59 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.7552/43.8, allocations: 73.2 MB / 4.658 GB, free: 89.54 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.4696/44.27, allocations: 55.84 MB / 4.713 GB, free: 89.47 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003875/44.27, allocations: 65.56 kB / 4.713 GB, free: 89.47 MB / 362.8 MB Notification: Performance of matching and sorting (n=1438) (initialization): time 1.314/45.58, allocations: 130.7 MB / 4.84 GB, free: 83.24 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003883/45.58, allocations: 96 kB / 4.84 GB, free: 83.14 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004992/45.58, allocations: 220 kB / 4.841 GB, free: 82.93 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0233/45.61, allocations: 3.637 MB / 4.844 GB, free: 79.53 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.5047/46.11, allocations: 28.13 MB / 4.872 GB, free: 86.3 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0569/46.17, allocations: 24.06 MB / 4.895 GB, free: 81.06 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.3467/46.52, allocations: 32.75 MB / 4.927 GB, free: 80.88 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007767/46.52, allocations: 1.395 MB / 4.929 GB, free: 80.71 MB / 362.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 997 * Number of states: 0 () * Number of discrete variables: 69 (Rod3.color[3],Rod3.color[2],Rod3.color[1],Rod1.color[3],Rod1.color[2],Rod1.color[1],Cylinder.boxColor[3],Cylinder.boxColor[2],Cylinder.boxColor[1],B1.cylinderColor[3],B1.cylinderColor[2],B1.cylinderColor[1],B2.cylinderColor[3],B2.cylinderColor[2],B2.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 (1302): * Single equations (assignments): 1296 * 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 {(5,72.0%) 101,(1,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.01912/46.54, allocations: 4.326 MB / 4.933 GB, free: 79.01 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006122/46.55, allocations: 0.7875 MB / 4.934 GB, free: 79.01 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03097/46.58, allocations: 8.959 MB / 4.942 GB, free: 75.81 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.407e-05/46.58, allocations: 48.11 kB / 4.942 GB, free: 75.81 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.225e-05/46.58, allocations: 19 kB / 4.942 GB, free: 75.81 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001139/46.58, allocations: 24.8 kB / 4.942 GB, free: 75.81 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3824/46.96, allocations: 46.71 MB / 4.988 GB, free: 85.94 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.734e-05/46.96, allocations: 7.781 kB / 4.988 GB, free: 85.94 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1872/47.15, allocations: 21.94 MB / 5.009 GB, free: 85.94 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0184/47.17, allocations: 3.335 MB / 5.013 GB, free: 85.9 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004378/47.17, allocations: 0.6163 MB / 5.013 GB, free: 85.9 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05132/47.22, allocations: 23.21 MB / 5.036 GB, free: 77.62 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.286e-05/47.22, allocations: 10.84 kB / 5.036 GB, free: 77.62 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.481/48.71, allocations: 168.3 MB / 5.2 GB, free: 54.66 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2761/48.98, allocations: 4.401 MB / 5.205 GB, free: 86.43 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.009005/48.99, allocations: 77.98 kB / 5.205 GB, free: 86.43 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2306/49.22, allocations: 24.48 MB / 5.229 GB, free: 86.43 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00176/49.22, allocations: 304.1 kB / 5.229 GB, free: 86.43 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003776/49.23, allocations: 0.6793 MB / 5.23 GB, free: 86.43 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.1201/49.35, allocations: 15.56 MB / 5.245 GB, free: 86.18 MB / 362.8 MB Notification: Performance of sort global known variables: time 8.22e-07/49.35, allocations: 3.938 kB / 5.245 GB, free: 86.18 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.03264/49.38, allocations: 3.674 MB / 5.248 GB, free: 86.18 MB / 362.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * 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 (298): * Single equations (assignments): 292 * 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 {(9,69.1%) 92,(1,100.0%) 4} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004118/49.38, allocations: 250.7 kB / 5.249 GB, free: 86.09 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 1.243/50.63, allocations: 127 MB / 5.373 GB, free: 89.98 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 1.799e-05/50.63, allocations: 6.656 kB / 5.373 GB, free: 89.98 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.6607/51.29, allocations: 57.68 MB / 5.429 GB, free: 90.82 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01328/51.3, allocations: 1.052 MB / 5.43 GB, free: 90.78 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5384/51.84, allocations: 79.01 MB / 5.507 GB, free: 81.41 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01761/51.86, allocations: 6.901 MB / 5.514 GB, free: 79.53 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0287/51.89, allocations: 2.743 MB / 5.517 GB, free: 78.72 MB / 362.8 MB Notification: Performance of SimCode: time 2.335e-06/51.89, allocations: 0 / 5.517 GB, free: 78.72 MB / 362.8 MB Notification: Performance of Templates: time 2.152/54.04, allocations: 441.6 MB / 5.948 GB, free: 88.25 MB / 378.8 MB