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.Engine1a.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a") Notification: Performance of loadModel(Modelica): time 1.556/1.556, allocations: 171.3 MB / 179.2 MB, free: 7.508 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.472e-05/1.477e-05, allocations: 0 / 222.5 MB, free: 8.699 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06929/0.06933, allocations: 38.77 MB / 261.3 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3005/0.3699, allocations: 84.25 MB / 345.5 MB, free: 3.961 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/0.3702, allocations: 86.39 kB / 345.6 MB, free: 3.918 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7775/1.148, allocations: 156.9 MB / 0.4907 GB, free: 48.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.359e-06/1.148, allocations: 0 / 0.4907 GB, free: 48.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005524/1.148, allocations: 159.2 kB / 0.4909 GB, free: 48.25 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2382 * Number of variables: 2382 Notification: Performance of Generate backend data structure: time 0.02377/1.172, allocations: 7.88 MB / 0.4986 GB, free: 40.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/1.172, allocations: 12.03 kB / 0.4986 GB, free: 40.29 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07994/1.252, allocations: 16.49 MB / 0.5147 GB, free: 23.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03536/1.287, allocations: 13.46 MB / 0.5278 GB, free: 10.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003888/1.288, allocations: 228 kB / 0.5281 GB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002764/1.291, allocations: 451.6 kB / 0.5285 GB, free: 9.688 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0202/1.311, allocations: 9.461 MB / 0.5377 GB, free: 232 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4861/1.797, allocations: 14.25 MB / 0.5516 GB, free: 44.72 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006066/1.798, allocations: 113.9 kB / 0.5518 GB, free: 44.72 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002409/1.8, allocations: 38.88 kB / 0.5518 GB, free: 44.72 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002945/1.803, allocations: 1.484 MB / 0.5532 GB, free: 44.71 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09454/1.898, allocations: 71.21 MB / 0.6228 GB, free: 16.44 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008526/1.906, allocations: 5.323 MB / 0.628 GB, free: 13.79 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006412/1.913, allocations: 3.874 MB / 0.6318 GB, free: 12.08 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001314/1.914, allocations: 0.8277 MB / 0.6326 GB, free: 11.39 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.61e-05/1.914, allocations: 62.25 kB / 0.6326 GB, free: 11.33 MB / 362.8 MB Notification: Performance of pre-optimization done (n=287): time 8.412e-06/1.914, allocations: 2.406 kB / 0.6326 GB, free: 11.33 MB / 362.8 MB Notification: Performance of matching and sorting (n=347): time 0.1362/2.05, allocations: 40.62 MB / 0.6723 GB, free: 3.414 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002706/2.051, allocations: 398 kB / 0.6727 GB, free: 2.938 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2391/2.29, allocations: 5.533 MB / 0.6781 GB, free: 76.33 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007338/2.291, allocations: 27.39 kB / 0.6781 GB, free: 76.3 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004385/2.295, allocations: 4.952 MB / 0.6829 GB, free: 74.77 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001719/2.297, allocations: 1.235 MB / 0.6842 GB, free: 74.02 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008783/2.298, allocations: 0 / 0.6842 GB, free: 74.02 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0006417/2.298, allocations: 0.6663 MB / 0.6848 GB, free: 73.68 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007612/2.306, allocations: 3.625 MB / 0.6883 GB, free: 73.66 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01064/2.317, allocations: 8.379 MB / 0.6965 GB, free: 67.54 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01057/2.327, allocations: 5.402 MB / 0.7018 GB, free: 67.48 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002299/2.328, allocations: 48.09 kB / 0.7018 GB, free: 67.48 MB / 378.8 MB Notification: Performance of matching and sorting (n=1112) (initialization): time 0.04238/2.37, allocations: 15.31 MB / 0.7168 GB, free: 66.79 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001585/2.37, allocations: 86.94 kB / 0.7169 GB, free: 66.78 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002053/2.37, allocations: 165.2 kB / 0.717 GB, free: 66.78 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02149/2.392, allocations: 5.367 MB / 0.7223 GB, free: 66.08 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007977/2.4, allocations: 1.859 MB / 0.7241 GB, free: 65.86 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04695/2.447, allocations: 25.96 MB / 0.7494 GB, free: 53.46 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/2.457, allocations: 371.3 kB / 0.7498 GB, free: 53.44 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002184/2.459, allocations: 492.4 kB / 0.7503 GB, free: 53.38 MB / 378.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: B1.frame_b.r_0[2]:DUMMY_STATE(flow=false unit = "m" ) "Position vector from world frame to the connector frame origin, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 761 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (976): * Single equations (assignments): 970 * 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%) 94,(2,100.0%) 6} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.002918/2.462, allocations: 0.5391 MB / 0.7508 GB, free: 52.95 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001592/2.464, allocations: 0.6193 MB / 0.7514 GB, free: 52.61 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02922/2.493, allocations: 10.59 MB / 0.7617 GB, free: 49.05 MB / 378.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.055e-05/2.493, allocations: 37.09 kB / 0.7618 GB, free: 49.02 MB / 378.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.554e-05/2.493, allocations: 16 kB / 0.7618 GB, free: 49 MB / 378.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.426e-05/2.493, allocations: 16.78 kB / 0.7618 GB, free: 49 MB / 378.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0536/2.547, allocations: 22.82 MB / 0.7841 GB, free: 30.17 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.634e-05/2.547, allocations: 8.031 kB / 0.7841 GB, free: 30.16 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002475/2.55, allocations: 440.9 kB / 0.7845 GB, free: 29.81 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01887/2.568, allocations: 5.016 MB / 0.7894 GB, free: 26.43 MB / 378.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007567/2.569, allocations: 11.52 kB / 0.7894 GB, free: 26.42 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3103/2.88, allocations: 24.69 MB / 0.8135 GB, free: 64.01 MB / 378.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.646e-05/2.88, allocations: 8.312 kB / 0.8136 GB, free: 64.01 MB / 378.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0381/2.918, allocations: 16.52 MB / 0.8297 GB, free: 61.98 MB / 378.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004051/2.922, allocations: 1.23 MB / 0.8309 GB, free: 61.88 MB / 378.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001953/2.924, allocations: 13.14 kB / 0.8309 GB, free: 61.88 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005265/2.929, allocations: 203.9 kB / 0.8311 GB, free: 61.88 MB / 378.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001251/2.93, allocations: 242.9 kB / 0.8313 GB, free: 61.87 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006887/2.931, allocations: 93.72 kB / 0.8314 GB, free: 61.87 MB / 378.8 MB Notification: Performance of sorting global known variables: time 0.009105/2.94, allocations: 3.808 MB / 0.8351 GB, free: 61.66 MB / 378.8 MB Notification: Performance of sort global known variables: time 2.148e-06/2.94, allocations: 6.906 kB / 0.8351 GB, free: 61.66 MB / 378.8 MB Notification: Performance of remove unused functions: time 0.01165/2.952, allocations: 1.735 MB / 0.8368 GB, free: 61.66 MB / 378.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 216 * 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.001056/2.953, allocations: 170 kB / 0.837 GB, free: 61.57 MB / 378.8 MB Notification: Performance of simCode: created initialization part: time 0.01942/2.972, allocations: 9.592 MB / 0.8464 GB, free: 61.11 MB / 378.8 MB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/2.973, allocations: 7 kB / 0.8464 GB, free: 61.11 MB / 378.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009417/2.982, allocations: 4.333 MB / 0.8506 GB, free: 60.69 MB / 378.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006417/2.988, allocations: 0.8554 MB / 0.8514 GB, free: 60.65 MB / 378.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04263/3.031, allocations: 16.46 MB / 0.8675 GB, free: 55.29 MB / 378.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01336/3.045, allocations: 5.716 MB / 0.8731 GB, free: 53.52 MB / 378.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001921/3.046, allocations: 436.4 kB / 0.8735 GB, free: 53.51 MB / 378.8 MB Notification: Performance of SimCode: time 1.844e-06/3.046, allocations: 0 / 0.8735 GB, free: 53.51 MB / 378.8 MB Notification: Performance of Templates: time 0.5872/3.634, allocations: 192.5 MB / 1.062 GB, free: 12.03 MB / 394.8 MB