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_analytic.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_analytic,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.03/2.03, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003468, allocations: 11.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09442/0.0948, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4455/0.5404, allocations: 103.9 MB / 412.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/0.5407, allocations: 97.66 kB / 412.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.091/1.632, allocations: 182.3 MB / 0.5809 GB, free: 67.35 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.632, allocations: 0 / 0.5809 GB, free: 67.35 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008473/1.633, allocations: 185.8 kB / 0.581 GB, free: 67.34 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: 2751 * Number of variables: 2751 Notification: Performance of Generate backend data structure: time 0.0437/1.677, allocations: 10.3 MB / 0.5911 GB, free: 63.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/1.677, allocations: 10.78 kB / 0.5911 GB, free: 63.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006732/1.683, allocations: 1.394 MB / 0.5925 GB, free: 63.38 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1238/1.807, allocations: 16.63 MB / 0.6087 GB, free: 62.74 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.09284/1.9, allocations: 14.66 MB / 0.623 GB, free: 54.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007927/1.901, allocations: 0.6311 MB / 0.6236 GB, free: 54.11 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004599/1.906, allocations: 0.8565 MB / 0.6245 GB, free: 53.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06324/1.969, allocations: 19.41 MB / 0.6434 GB, free: 32.74 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008142/1.97, allocations: 107 kB / 0.6435 GB, free: 32.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0042/1.974, allocations: 392.7 kB / 0.6439 GB, free: 32.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003574/1.978, allocations: 1.598 MB / 0.6455 GB, free: 30.69 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05059/2.028, allocations: 15.59 MB / 0.6607 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4648/2.493, allocations: 80.54 MB / 0.7394 GB, free: 42.75 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03905/2.532, allocations: 7.896 MB / 0.7471 GB, free: 42.06 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03776/2.57, allocations: 14.09 MB / 0.7608 GB, free: 38.09 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.974e-05/2.57, allocations: 83.11 kB / 0.7609 GB, free: 38.02 MB / 442.7 MB Notification: Performance of pre-optimization done (n=308): time 8.445e-06/2.57, allocations: 0 / 0.7609 GB, free: 38.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=408): time 0.299/2.869, allocations: 47.57 MB / 0.8074 GB, free: 24.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002373/2.869, allocations: 404.2 kB / 0.8077 GB, free: 24.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01835/2.888, allocations: 6.647 MB / 0.8142 GB, free: 18.77 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001104/2.889, allocations: 89.7 kB / 0.8143 GB, free: 18.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005311/2.894, allocations: 5.487 MB / 0.8197 GB, free: 13.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002461/2.897, allocations: 1.479 MB / 0.8211 GB, free: 12.49 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001535/2.898, allocations: 188 kB / 0.8213 GB, free: 12.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0008997/2.899, allocations: 0.7022 MB / 0.822 GB, free: 11.71 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01077/2.91, allocations: 4.181 MB / 0.8261 GB, free: 8.117 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4029/3.313, allocations: 9.197 MB / 0.8351 GB, free: 83.39 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01562/3.329, allocations: 6.088 MB / 0.841 GB, free: 83.34 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000219/3.329, allocations: 49.66 kB / 0.841 GB, free: 83.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.0596/3.389, allocations: 16.89 MB / 0.8575 GB, free: 82.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001727/3.389, allocations: 80 kB / 0.8576 GB, free: 82.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003197/3.389, allocations: 171.2 kB / 0.8578 GB, free: 82.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0262/3.415, allocations: 4.727 MB / 0.8624 GB, free: 82.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01212/3.428, allocations: 1.959 MB / 0.8643 GB, free: 82.44 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0631/3.491, allocations: 26.22 MB / 0.8899 GB, free: 74.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01202/3.503, allocations: 0.5389 MB / 0.8904 GB, free: 74.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002449/3.505, allocations: 0.5162 MB / 0.8909 GB, free: 74.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 70 (jointRRP.jointUSP.prismatic.positiveBranch,jointRRP.jointUSP.rod1Color[3],jointRRP.jointUSP.rod1Color[2],jointRRP.jointUSP.rod1Color[1],jointRRP.jointUSP.cylinderColor[3],jointRRP.jointUSP.cylinderColor[2],jointRRP.jointUSP.cylinderColor[1],jointRRP.jointUSP.sphereColor[3],jointRRP.jointUSP.sphereColor[2],jointRRP.jointUSP.sphereColor[1],jointRRP.rodColor[3],jointRRP.rodColor[2],jointRRP.rodColor[1],jointRRP.cylinderColor[3],jointRRP.cylinderColor[2],jointRRP.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 (1061): * Single equations (assignments): 1056 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 124} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01235/3.518, allocations: 4.081 MB / 0.8949 GB, free: 72.54 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002187/3.52, allocations: 0.7079 MB / 0.8956 GB, free: 72.54 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04241/3.562, allocations: 10.96 MB / 0.9063 GB, free: 68.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.009e-05/3.563, allocations: 42.97 kB / 0.9064 GB, free: 68.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.189e-05/3.563, allocations: 21.34 kB / 0.9064 GB, free: 68.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001422/3.563, allocations: 22.39 kB / 0.9064 GB, free: 68.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08445/3.647, allocations: 23.79 MB / 0.9296 GB, free: 58.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.109e-05/3.647, allocations: 8 kB / 0.9297 GB, free: 58.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004765/3.652, allocations: 0.5242 MB / 0.9302 GB, free: 57.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02477/3.677, allocations: 4.165 MB / 0.9342 GB, free: 55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001131/3.678, allocations: 76.95 kB / 0.9343 GB, free: 54.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0607/3.739, allocations: 22.93 MB / 0.9567 GB, free: 35.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/3.739, allocations: 13.91 kB / 0.9567 GB, free: 35.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05086/3.79, allocations: 17.65 MB / 0.9739 GB, free: 20.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005429/3.795, allocations: 1.369 MB / 0.9753 GB, free: 18.83 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00268/3.798, allocations: 81.36 kB / 0.9754 GB, free: 18.76 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007302/3.805, allocations: 244.5 kB / 0.9756 GB, free: 18.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001848/3.807, allocations: 286.6 kB / 0.9759 GB, free: 18.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000815/3.808, allocations: 113.1 kB / 0.976 GB, free: 18.31 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01374/3.822, allocations: 4.801 MB / 0.9807 GB, free: 14.22 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.322e-06/3.822, allocations: 0 / 0.9807 GB, free: 14.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0148/3.837, allocations: 2.202 MB / 0.9828 GB, free: 12.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * 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 (284): * Single equations (assignments): 280 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 108} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4438/4.281, allocations: 19.58 MB / 1.002 GB, free: 77.77 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02992/4.311, allocations: 10.6 MB / 1.012 GB, free: 77.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.632e-05/4.311, allocations: 0 / 1.012 GB, free: 77.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01153/4.322, allocations: 4.432 MB / 1.017 GB, free: 77.24 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009185/4.332, allocations: 1.049 MB / 1.018 GB, free: 77.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5289/4.86, allocations: 159.3 MB / 1.173 GB, free: 145 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02074/4.881, allocations: 6.568 MB / 1.18 GB, free: 144.1 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01283/4.894, allocations: 4.333 MB / 1.184 GB, free: 144.1 MB / 0.5105 GB Notification: Performance of SimCode: time 1.904e-06/4.894, allocations: 0 / 1.184 GB, free: 144.1 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.926/11.82, allocations: 206.1 MB / 1.385 GB, free: 156.4 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.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat