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.Engine1b.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.009/2.009, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003603, allocations: 15.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09838/0.09877, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4305/0.5294, allocations: 92.25 MB / 400.8 MB, free: 14.16 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003083/0.5297, allocations: 97.72 kB / 400.9 MB, free: 14.15 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9735/1.503, allocations: 165.1 MB / 0.5527 GB, free: 62.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.936e-06/1.503, allocations: 3.531 kB / 0.5527 GB, free: 62.63 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007747/1.504, allocations: 165.6 kB / 0.5529 GB, free: 62.63 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: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.03858/1.543, allocations: 9.315 MB / 0.562 GB, free: 59.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/1.543, allocations: 10.09 kB / 0.562 GB, free: 59.09 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00598/1.549, allocations: 1.256 MB / 0.5632 GB, free: 59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1177/1.666, allocations: 16.54 MB / 0.5794 GB, free: 58.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04471/1.711, allocations: 13.84 MB / 0.5929 GB, free: 57.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007008/1.712, allocations: 0.5475 MB / 0.5934 GB, free: 57.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004078/1.716, allocations: 0.7557 MB / 0.5941 GB, free: 57.17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06202/1.778, allocations: 16.96 MB / 0.6107 GB, free: 52.79 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007477/1.779, allocations: 113.9 kB / 0.6108 GB, free: 52.76 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003444/1.782, allocations: 346.3 kB / 0.6112 GB, free: 52.55 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004585/1.787, allocations: 1.53 MB / 0.6126 GB, free: 52.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0525/1.84, allocations: 13.34 MB / 0.6257 GB, free: 43.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.466/2.306, allocations: 74.76 MB / 0.6987 GB, free: 45.43 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03312/2.339, allocations: 7.078 MB / 0.7056 GB, free: 44.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02804/2.367, allocations: 11.94 MB / 0.7173 GB, free: 42.48 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.262e-05/2.367, allocations: 66.25 kB / 0.7173 GB, free: 42.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 6.202e-06/2.367, allocations: 2.188 kB / 0.7173 GB, free: 42.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=366): time 0.3239/2.691, allocations: 42.59 MB / 0.7589 GB, free: 37.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001485/2.691, allocations: 407.8 kB / 0.7593 GB, free: 36.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01509/2.706, allocations: 6.412 MB / 0.7656 GB, free: 36.35 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009034/2.707, allocations: 81.39 kB / 0.7656 GB, free: 36.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004596/2.712, allocations: 5.074 MB / 0.7706 GB, free: 33.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002156/2.714, allocations: 1.339 MB / 0.7719 GB, free: 33.11 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001084/2.715, allocations: 179.4 kB / 0.7721 GB, free: 33.11 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005556/2.716, allocations: 0.6796 MB / 0.7727 GB, free: 32.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008588/2.724, allocations: 3.535 MB / 0.7762 GB, free: 32.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01197/2.736, allocations: 8.392 MB / 0.7844 GB, free: 25.38 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01244/2.749, allocations: 5.32 MB / 0.7896 GB, free: 23.48 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001389/2.749, allocations: 47.72 kB / 0.7896 GB, free: 23.48 MB / 442.7 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04578/2.795, allocations: 14.61 MB / 0.8039 GB, free: 14.59 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001329/2.795, allocations: 76 kB / 0.804 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002675/2.795, allocations: 168 kB / 0.8041 GB, free: 14.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02002/2.815, allocations: 3.735 MB / 0.8078 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01193/2.827, allocations: 1.859 MB / 0.8096 GB, free: 9.969 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06282/2.89, allocations: 24.74 MB / 0.8337 GB, free: 4.328 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01141/2.902, allocations: 498.8 kB / 0.8342 GB, free: 3.906 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002361/2.904, allocations: 0.4963 MB / 0.8347 GB, free: 3.422 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 768 * 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 (1001): * Single equations (assignments): 995 * 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.01207/2.916, allocations: 3.629 MB / 0.8383 GB, free: 272 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002301/2.918, allocations: 0.6843 MB / 0.8389 GB, free: 15.57 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03527/2.954, allocations: 8.929 MB / 0.8476 GB, free: 8.477 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-05/2.954, allocations: 40.7 kB / 0.8477 GB, free: 8.438 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.436e-05/2.954, allocations: 20 kB / 0.8477 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.983e-05/2.954, allocations: 19.81 kB / 0.8477 GB, free: 8.418 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06876/3.023, allocations: 19.52 MB / 0.8668 GB, free: 6.562 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.3e-05/3.023, allocations: 8 kB / 0.8668 GB, free: 6.555 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00416/3.027, allocations: 452 kB / 0.8672 GB, free: 6.113 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01981/3.047, allocations: 3.497 MB / 0.8706 GB, free: 2.605 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009684/3.048, allocations: 68 kB / 0.8707 GB, free: 2.539 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.413/3.461, allocations: 24.01 MB / 0.8941 GB, free: 120.3 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.284e-05/3.461, allocations: 14.78 kB / 0.8942 GB, free: 120.3 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04094/3.502, allocations: 15.05 MB / 0.9089 GB, free: 117.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005032/3.507, allocations: 1.216 MB / 0.91 GB, free: 117.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002909/3.51, allocations: 73.62 kB / 0.9101 GB, free: 117.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007049/3.517, allocations: 214.8 kB / 0.9103 GB, free: 117.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001765/3.519, allocations: 273.9 kB / 0.9106 GB, free: 117.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007062/3.52, allocations: 96.62 kB / 0.9107 GB, free: 117.5 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.013/3.533, allocations: 4.641 MB / 0.9152 GB, free: 117.3 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.82e-07/3.533, allocations: 2.625 kB / 0.9152 GB, free: 117.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01383/3.547, allocations: 2.005 MB / 0.9172 GB, free: 117.3 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (243): * Single equations (assignments): 237 * 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.04275/3.59, allocations: 17.05 MB / 0.9338 GB, free: 110.4 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02417/3.614, allocations: 9.391 MB / 0.943 GB, free: 107.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.666e-05/3.614, allocations: 4 kB / 0.943 GB, free: 107.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01246/3.626, allocations: 4.196 MB / 0.9471 GB, free: 105.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0097/3.636, allocations: 1.021 MB / 0.9481 GB, free: 105.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5778/4.214, allocations: 194.5 MB / 1.138 GB, free: 53.66 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01585/4.23, allocations: 5.934 MB / 1.144 GB, free: 52.75 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009905/4.24, allocations: 4.014 MB / 1.148 GB, free: 52.74 MB / 490.7 MB Notification: Performance of SimCode: time 1.473e-06/4.24, allocations: 0 / 1.148 GB, free: 52.74 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.072/11.31, allocations: 250.9 MB / 1.393 GB, free: 88.14 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat