Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.626/1.626, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003758/0.0003757, allocations: 8 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09013/0.09053, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.4526, allocations: 86.53 MB / 358.6 MB, free: 3.172 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.453, allocations: 93.81 kB / 358.7 MB, free: 3.121 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9164/1.369, allocations: 165.1 MB / 0.5116 GB, free: 38.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.715e-06/1.369, allocations: 0 / 0.5116 GB, free: 38.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007377/1.37, allocations: 168 kB / 0.5117 GB, free: 38.44 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: 2486 * Number of variables: 2486 Notification: Performance of Generate backend data structure: time 0.03829/1.409, allocations: 9.315 MB / 0.5208 GB, free: 29.03 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/1.409, allocations: 12.03 kB / 0.5208 GB, free: 29.02 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006053/1.415, allocations: 1.256 MB / 0.5221 GB, free: 27.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1175/1.532, allocations: 16.54 MB / 0.5382 GB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5496/2.082, allocations: 13.82 MB / 0.5517 GB, free: 41.13 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007681/2.083, allocations: 0.5527 MB / 0.5522 GB, free: 41.12 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004127/2.087, allocations: 0.7563 MB / 0.553 GB, free: 41.12 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0549/2.142, allocations: 16.96 MB / 0.5695 GB, free: 37.51 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006862/2.142, allocations: 112.7 kB / 0.5696 GB, free: 37.51 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003365/2.146, allocations: 347.7 kB / 0.57 GB, free: 37.51 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003549/2.149, allocations: 1.534 MB / 0.5715 GB, free: 37.49 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0427/2.192, allocations: 13.33 MB / 0.5845 GB, free: 37.44 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1222/2.314, allocations: 74.76 MB / 0.6575 GB, free: 1.707 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04288/2.357, allocations: 7.718 MB / 0.665 GB, free: 13.91 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03087/2.388, allocations: 11.93 MB / 0.6767 GB, free: 3.773 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.992e-05/2.388, allocations: 68.19 kB / 0.6768 GB, free: 3.703 MB / 378.8 MB Notification: Performance of pre-optimization done (n=293): time 7.975e-06/2.388, allocations: 4 kB / 0.6768 GB, free: 3.699 MB / 378.8 MB Notification: Performance of matching and sorting (n=366): time 0.5515/2.94, allocations: 43.24 MB / 0.719 GB, free: 83.19 MB / 394.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/2.94, allocations: 397.8 kB / 0.7194 GB, free: 82.75 MB / 394.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01594/2.956, allocations: 6.427 MB / 0.7256 GB, free: 82.27 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009801/2.957, allocations: 83.95 kB / 0.7257 GB, free: 82.23 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005009/2.962, allocations: 5.067 MB / 0.7307 GB, free: 79.73 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002233/2.964, allocations: 1.341 MB / 0.732 GB, free: 78.94 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001022/2.965, allocations: 176.1 kB / 0.7322 GB, free: 78.94 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 0.0004922/2.966, allocations: 0.6807 MB / 0.7328 GB, free: 78.61 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008429/2.974, allocations: 3.536 MB / 0.7363 GB, free: 78.58 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0126/2.987, allocations: 8.393 MB / 0.7445 GB, free: 72.38 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01215/2.999, allocations: 5.322 MB / 0.7497 GB, free: 72.33 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001736/2.999, allocations: 47.31 kB / 0.7497 GB, free: 72.33 MB / 394.8 MB Notification: Performance of matching and sorting (n=1137) (initialization): time 0.04568/3.045, allocations: 14.62 MB / 0.764 GB, free: 68.14 MB / 394.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/3.045, allocations: 78.97 kB / 0.7641 GB, free: 68.14 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002674/3.046, allocations: 169.3 kB / 0.7642 GB, free: 68.14 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01887/3.065, allocations: 3.736 MB / 0.7679 GB, free: 67.44 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01119/3.076, allocations: 1.855 MB / 0.7697 GB, free: 67.21 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05222/3.128, allocations: 24.74 MB / 0.7938 GB, free: 51.11 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0125/3.141, allocations: 0.4912 MB / 0.7943 GB, free: 50.69 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002311/3.143, allocations: 0.4908 MB / 0.7948 GB, free: 50.21 MB / 394.8 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.0114/3.154, allocations: 3.62 MB / 0.7983 GB, free: 47.06 MB / 394.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002189/3.157, allocations: 0.6857 MB / 0.799 GB, free: 46.37 MB / 394.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03181/3.189, allocations: 8.925 MB / 0.8077 GB, free: 39.3 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.331e-05/3.189, allocations: 40.7 kB / 0.8078 GB, free: 39.26 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.56e-05/3.189, allocations: 16 kB / 0.8078 GB, free: 39.25 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.232e-05/3.189, allocations: 21.06 kB / 0.8078 GB, free: 39.24 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06444/3.253, allocations: 19.52 MB / 0.8269 GB, free: 23.38 MB / 394.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.923e-05/3.253, allocations: 8 kB / 0.8269 GB, free: 23.38 MB / 394.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003847/3.257, allocations: 447.9 kB / 0.8273 GB, free: 23.01 MB / 394.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01821/3.275, allocations: 3.5 MB / 0.8307 GB, free: 20.48 MB / 394.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009218/3.276, allocations: 68 kB / 0.8308 GB, free: 20.41 MB / 394.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3392/3.616, allocations: 24.01 MB / 0.8542 GB, free: 74.12 MB / 394.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-05/3.616, allocations: 10.06 kB / 0.8542 GB, free: 74.12 MB / 394.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03946/3.655, allocations: 15.05 MB / 0.8689 GB, free: 71.49 MB / 394.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004981/3.66, allocations: 1.23 MB / 0.8701 GB, free: 71.4 MB / 394.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002835/3.663, allocations: 73.83 kB / 0.8702 GB, free: 71.4 MB / 394.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006978/3.67, allocations: 215 kB / 0.8704 GB, free: 71.4 MB / 394.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001745/3.672, allocations: 267.5 kB / 0.8707 GB, free: 71.39 MB / 394.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007908/3.673, allocations: 103 kB / 0.8708 GB, free: 71.39 MB / 394.8 MB Notification: Performance of sorting global known variables: time 0.0129/3.686, allocations: 4.639 MB / 0.8753 GB, free: 71.17 MB / 394.8 MB Notification: Performance of sort global known variables: time 2.375e-06/3.686, allocations: 3.312 kB / 0.8753 GB, free: 71.17 MB / 394.8 MB Notification: Performance of remove unused functions: time 0.01363/3.699, allocations: 2.01 MB / 0.8773 GB, free: 71.17 MB / 394.8 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.04181/3.741, allocations: 17.04 MB / 0.8939 GB, free: 63.52 MB / 394.8 MB Notification: Performance of simCode: created initialization part: time 0.02265/3.764, allocations: 9.397 MB / 0.9031 GB, free: 60.37 MB / 394.8 MB Notification: Performance of simCode: created event and clocks part: time 1.604e-05/3.764, allocations: 1.312 kB / 0.9031 GB, free: 60.37 MB / 394.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01173/3.776, allocations: 4.201 MB / 0.9072 GB, free: 58.59 MB / 394.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009142/3.785, allocations: 1.018 MB / 0.9082 GB, free: 58.21 MB / 394.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5314/4.316, allocations: 194.6 MB / 1.098 GB, free: 15.77 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01446/4.331, allocations: 5.94 MB / 1.104 GB, free: 14.86 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008887/4.34, allocations: 4.01 MB / 1.108 GB, free: 14.85 MB / 426.8 MB Notification: Performance of SimCode: time 1.543e-06/4.34, allocations: 0 / 1.108 GB, free: 14.85 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.75/11.09, allocations: 250.9 MB / 1.353 GB, free: 117.7 MB / 442.8 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_res.mat does not exist to compare? outputFormat=mat