Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Mechanics_MultiBody_Examples_Loops_Engine1b_analytic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.014/2.014, allocations: 194.9 MB / 211.1 MB, free: 7.777 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004765/0.0004766, allocations: 8 kB / 264.1 MB, free: 2.695 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3496, allocations: 44.5 MB / 308.6 MB, free: 12.57 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1809/0.5305, allocations: 103.9 MB / 412.5 MB, free: 4.512 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003579/0.531, allocations: 91.95 kB / 412.6 MB, free: 4.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.293/1.824, allocations: 182.3 MB / 0.5809 GB, free: 41.66 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.306e-06/1.825, allocations: 0 / 0.5809 GB, free: 41.66 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000838/1.825, allocations: 181.9 kB / 0.5811 GB, free: 41.65 MB / 394.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.04341/1.869, allocations: 10.3 MB / 0.5911 GB, free: 37.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.04e-05/1.869, allocations: 7.406 kB / 0.5911 GB, free: 37.89 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006675/1.876, allocations: 1.396 MB / 0.5925 GB, free: 37.78 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1212/1.997, allocations: 16.63 MB / 0.6087 GB, free: 37.17 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04977/2.047, allocations: 14.65 MB / 0.623 GB, free: 35.89 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008568/2.048, allocations: 0.627 MB / 0.6237 GB, free: 35.87 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004875/2.052, allocations: 0.8627 MB / 0.6245 GB, free: 35.85 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06397/2.116, allocations: 19.41 MB / 0.6435 GB, free: 31.72 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008831/2.117, allocations: 102.9 kB / 0.6436 GB, free: 31.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004427/2.122, allocations: 396.9 kB / 0.6439 GB, free: 31.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003802/2.126, allocations: 1.598 MB / 0.6455 GB, free: 31.16 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05301/2.179, allocations: 15.59 MB / 0.6607 GB, free: 21.14 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4862/2.665, allocations: 80.54 MB / 0.7394 GB, free: 24.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03745/2.703, allocations: 7.897 MB / 0.7471 GB, free: 23.34 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03461/2.737, allocations: 14.1 MB / 0.7609 GB, free: 19.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.439e-05/2.737, allocations: 71.7 kB / 0.7609 GB, free: 19.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=308): time 7.384e-06/2.737, allocations: 3.594 kB / 0.7609 GB, free: 19.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=408): time 0.3422/3.08, allocations: 47.58 MB / 0.8074 GB, free: 13.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/3.08, allocations: 403.5 kB / 0.8078 GB, free: 13.48 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01526/3.095, allocations: 6.649 MB / 0.8143 GB, free: 12.95 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001004/3.096, allocations: 87.33 kB / 0.8143 GB, free: 12.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005487/3.102, allocations: 5.856 MB / 0.8201 GB, free: 10.44 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002171/3.104, allocations: 1.481 MB / 0.8215 GB, free: 9.555 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001044/3.105, allocations: 183.7 kB / 0.8217 GB, free: 9.555 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005175/3.105, allocations: 0.6982 MB / 0.8224 GB, free: 9.227 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0102/3.116, allocations: 4.181 MB / 0.8265 GB, free: 7.875 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01391/3.13, allocations: 9.201 MB / 0.8354 GB, free: 15.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01563/3.145, allocations: 6.088 MB / 0.8414 GB, free: 10.03 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001843/3.146, allocations: 48 kB / 0.8414 GB, free: 9.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=1213) (initialization): time 0.06862/3.214, allocations: 17.62 MB / 0.8586 GB, free: 13.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000164/3.214, allocations: 81.56 kB / 0.8587 GB, free: 13.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003198/3.215, allocations: 176.1 kB / 0.8589 GB, free: 12.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02753/3.242, allocations: 4.72 MB / 0.8635 GB, free: 9.441 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01318/3.255, allocations: 1.963 MB / 0.8654 GB, free: 7.719 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0706/3.326, allocations: 26.22 MB / 0.891 GB, free: 1.305 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01159/3.338, allocations: 0.534 MB / 0.8915 GB, free: 0.8516 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002342/3.34, allocations: 0.5149 MB / 0.892 GB, free: 352 kB / 474.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.3599/3.7, allocations: 4.314 MB / 0.8963 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002154/3.702, allocations: 0.7105 MB / 0.8969 GB, free: 104.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04725/3.75, allocations: 10.96 MB / 0.9077 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001393/3.75, allocations: 41.41 kB / 0.9077 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001051/3.75, allocations: 23 kB / 0.9077 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000116/3.75, allocations: 21.22 kB / 0.9077 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08161/3.832, allocations: 23.78 MB / 0.931 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.461e-05/3.832, allocations: 13.39 kB / 0.931 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004772/3.837, allocations: 0.5252 MB / 0.9315 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02482/3.861, allocations: 4.162 MB / 0.9355 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001022/3.862, allocations: 83.84 kB / 0.9356 GB, free: 102.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05682/3.919, allocations: 22.92 MB / 0.958 GB, free: 94.96 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/3.919, allocations: 11.12 kB / 0.958 GB, free: 94.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05023/3.97, allocations: 17.64 MB / 0.9753 GB, free: 86.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005988/3.976, allocations: 1.37 MB / 0.9766 GB, free: 86.21 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00292/3.979, allocations: 76.94 kB / 0.9767 GB, free: 86.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007517/3.986, allocations: 247.9 kB / 0.9769 GB, free: 86.11 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001738/3.988, allocations: 283.1 kB / 0.9772 GB, free: 86.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004993/3.989, allocations: 117.3 kB / 0.9773 GB, free: 86.04 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01449/4.003, allocations: 4.795 MB / 0.982 GB, free: 84.45 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.001e-06/4.003, allocations: 0 / 0.982 GB, free: 84.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01481/4.018, allocations: 2.2 MB / 0.9841 GB, free: 84.23 MB / 474.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.0547/4.073, allocations: 19.58 MB / 1.003 GB, free: 70.62 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02499/4.098, allocations: 10.61 MB / 1.014 GB, free: 61.72 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.709e-05/4.098, allocations: 0 / 1.014 GB, free: 61.72 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01086/4.109, allocations: 4.434 MB / 1.018 GB, free: 57.77 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0101/4.119, allocations: 1.046 MB / 1.019 GB, free: 56.92 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4478/4.567, allocations: 158.3 MB / 1.174 GB, free: 28.27 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02191/4.589, allocations: 6.559 MB / 1.18 GB, free: 27.34 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01939/4.608, allocations: 2.938 MB / 1.183 GB, free: 27.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01264/4.621, allocations: 4.268 MB / 1.187 GB, free: 27.27 MB / 0.4948 GB Notification: Performance of SimCode: time 1.283e-06/4.621, allocations: 0 / 1.187 GB, free: 27.27 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7726/5.394, allocations: 175.7 MB / 1.359 GB, free: 119 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003096/5.394, allocations: 214.7 kB / 1.359 GB, free: 118.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.869/15.26, allocations: 4 kB / 1.359 GB, free: 118.7 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Engine1b_analytic_res.mat does not exist to compare? outputFormat=mat