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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1a",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.245/2.245, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003413/0.0003413, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.09451, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4423/0.5368, allocations: 90.74 MB / 399.3 MB, free: 14.91 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.5372, allocations: 87.84 kB / 399.4 MB, free: 14.91 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9132/1.45, allocations: 159.9 MB / 0.5461 GB, free: 62.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.857e-06/1.451, allocations: 0 / 0.5461 GB, free: 62.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007587/1.451, allocations: 156.3 kB / 0.5463 GB, free: 62.4 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.03717/1.488, allocations: 8.973 MB / 0.5551 GB, free: 59.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/1.489, allocations: 10.53 kB / 0.5551 GB, free: 59.01 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00621/1.495, allocations: 1.2 MB / 0.5562 GB, free: 58.91 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1164/1.611, allocations: 16.47 MB / 0.5723 GB, free: 58.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04479/1.656, allocations: 13.55 MB / 0.5856 GB, free: 57.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008072/1.657, allocations: 0.525 MB / 0.5861 GB, free: 57.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004158/1.661, allocations: 0.7205 MB / 0.5868 GB, free: 57.16 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05201/1.713, allocations: 16.39 MB / 0.6028 GB, free: 53.54 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007188/1.714, allocations: 110.2 kB / 0.6029 GB, free: 53.52 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003417/1.717, allocations: 341.2 kB / 0.6032 GB, free: 53.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003406/1.721, allocations: 1.482 MB / 0.6047 GB, free: 53.49 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04449/1.765, allocations: 12.91 MB / 0.6173 GB, free: 48.95 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4227/2.188, allocations: 73.49 MB / 0.689 GB, free: 66.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03412/2.222, allocations: 7.499 MB / 0.6964 GB, free: 65.63 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02961/2.252, allocations: 11.57 MB / 0.7077 GB, free: 63.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.14e-05/2.252, allocations: 66.84 kB / 0.7077 GB, free: 63.84 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.314e-06/2.252, allocations: 0 / 0.7077 GB, free: 63.84 MB / 426.7 MB Notification: Performance of matching and sorting (n=339): time 0.3533/2.605, allocations: 45.52 MB / 0.7522 GB, free: 59.03 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/2.606, allocations: 404.1 kB / 0.7526 GB, free: 58.59 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01553/2.621, allocations: 6.235 MB / 0.7586 GB, free: 58.11 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009204/2.622, allocations: 83.98 kB / 0.7587 GB, free: 58.08 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004698/2.627, allocations: 4.868 MB / 0.7635 GB, free: 55.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002121/2.629, allocations: 1.247 MB / 0.7647 GB, free: 55.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001251/2.63, allocations: 169.2 kB / 0.7649 GB, free: 55.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006708/2.631, allocations: 0.6605 MB / 0.7655 GB, free: 54.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009217/2.64, allocations: 3.787 MB / 0.7692 GB, free: 53.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01234/2.653, allocations: 8.448 MB / 0.7775 GB, free: 45.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01239/2.665, allocations: 5.5 MB / 0.7828 GB, free: 43.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001719/2.665, allocations: 46.69 kB / 0.7829 GB, free: 43.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=1080) (initialization): time 0.05393/2.719, allocations: 16.35 MB / 0.7988 GB, free: 31.51 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001184/2.719, allocations: 72 kB / 0.7989 GB, free: 31.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002294/2.72, allocations: 164.9 kB / 0.7991 GB, free: 31.28 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02841/2.748, allocations: 5.511 MB / 0.8044 GB, free: 27.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01062/2.759, allocations: 1.786 MB / 0.8062 GB, free: 25.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06778/2.827, allocations: 28.96 MB / 0.8345 GB, free: 0.8242 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01536/2.842, allocations: 0.5129 MB / 0.835 GB, free: 408 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003248/2.845, allocations: 0.498 MB / 0.8355 GB, free: 0 / 426.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.01448/2.86, allocations: 3.479 MB / 0.8389 GB, free: 12.83 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002735/2.863, allocations: 0.6556 MB / 0.8395 GB, free: 12.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3584/3.221, allocations: 10.95 MB / 0.8502 GB, free: 77.99 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.988e-05/3.221, allocations: 39.78 kB / 0.8502 GB, free: 77.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.297e-05/3.221, allocations: 24.03 kB / 0.8502 GB, free: 77.99 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.635e-05/3.221, allocations: 15.02 kB / 0.8503 GB, free: 77.99 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07465/3.296, allocations: 24 MB / 0.8737 GB, free: 75.15 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-05/3.296, allocations: 7.844 kB / 0.8737 GB, free: 75.15 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003769/3.3, allocations: 431.8 kB / 0.8741 GB, free: 75.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02761/3.328, allocations: 5.091 MB / 0.8791 GB, free: 75.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000949/3.329, allocations: 62.5 kB / 0.8791 GB, free: 75.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06291/3.391, allocations: 27.7 MB / 0.9062 GB, free: 66.71 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/3.392, allocations: 6.625 kB / 0.9062 GB, free: 66.71 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05061/3.442, allocations: 16.87 MB / 0.9227 GB, free: 59.78 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004705/3.447, allocations: 1.269 MB / 0.9239 GB, free: 59.42 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002697/3.45, allocations: 60.86 kB / 0.924 GB, free: 59.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006836/3.457, allocations: 256.2 kB / 0.9242 GB, free: 59.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001592/3.458, allocations: 236.9 kB / 0.9244 GB, free: 59.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007609/3.459, allocations: 96.11 kB / 0.9245 GB, free: 59.28 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01278/3.472, allocations: 4.518 MB / 0.9289 GB, free: 57.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.82e-07/3.472, allocations: 0 / 0.9289 GB, free: 57.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01296/3.485, allocations: 1.963 MB / 0.9309 GB, free: 57.63 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.05178/3.537, allocations: 18.59 MB / 0.949 GB, free: 47.98 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.05561/3.592, allocations: 10.13 MB / 0.9589 GB, free: 39.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.747e-05/3.592, allocations: 0 / 0.9589 GB, free: 39.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.028/3.62, allocations: 4.483 MB / 0.9633 GB, free: 35.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008723/3.629, allocations: 0.9788 MB / 0.9642 GB, free: 34.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5627/4.192, allocations: 190.2 MB / 1.15 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0151/4.207, allocations: 5.713 MB / 1.156 GB, free: 23.15 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009693/4.217, allocations: 3.802 MB / 1.159 GB, free: 23.14 MB / 0.5105 GB Notification: Performance of SimCode: time 1.533e-06/4.217, allocations: 0 / 1.159 GB, free: 23.14 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.857/11.07, allocations: 243.1 MB / 1.397 GB, free: 117 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1a_res.mat does not exist to compare? outputFormat=mat