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.Fourbar1.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.Fourbar1,fileNamePrefix="Modelica_3_2_2_Modelica_Mechanics_MultiBody_Examples_Loops_Fourbar1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.882/1.882, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000347/0.0003471, allocations: 8 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3383/0.3386, allocations: 44.51 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1587/0.4974, allocations: 88.83 MB / 397.4 MB, free: 3.801 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.4977, allocations: 91.94 kB / 397.5 MB, free: 3.711 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7717/1.269, allocations: 122.6 MB / 0.5079 GB, free: 4.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.176e-06/1.269, allocations: 3.938 kB / 0.5079 GB, free: 4.547 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004629/1.27, allocations: 124 kB / 0.508 GB, free: 4.426 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: 2055 * Number of variables: 2055 Notification: Performance of Generate backend data structure: time 0.03208/1.302, allocations: 7.112 MB / 0.515 GB, free: 13.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.272e-05/1.302, allocations: 12.03 kB / 0.515 GB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006108/1.308, allocations: 1.205 MB / 0.5162 GB, free: 12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09781/1.406, allocations: 9.418 MB / 0.5254 GB, free: 2.562 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03769/1.444, allocations: 8.594 MB / 0.5338 GB, free: 9.887 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007798/1.445, allocations: 435.4 kB / 0.5342 GB, free: 9.461 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003757/1.448, allocations: 0.5817 MB / 0.5347 GB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05126/1.5, allocations: 14.82 MB / 0.5492 GB, free: 8.883 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004696/1.5, allocations: 91.14 kB / 0.5493 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002874/1.503, allocations: 275.9 kB / 0.5496 GB, free: 8.523 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003832/1.507, allocations: 1.431 MB / 0.551 GB, free: 7.082 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3523/1.859, allocations: 13 MB / 0.5636 GB, free: 65.69 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1053/1.965, allocations: 64.64 MB / 0.6268 GB, free: 30.21 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03168/1.996, allocations: 7.862 MB / 0.6345 GB, free: 27.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03232/2.029, allocations: 12.97 MB / 0.6471 GB, free: 21.93 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.447e-05/2.029, allocations: 73.72 kB / 0.6472 GB, free: 21.87 MB / 394.7 MB Notification: Performance of pre-optimization done (n=340): time 8.907e-06/2.029, allocations: 2.516 kB / 0.6472 GB, free: 21.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=604): time 3.682/5.711, allocations: 266.1 MB / 0.9071 GB, free: 93.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/5.711, allocations: 271.2 kB / 0.9074 GB, free: 93.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009822/5.721, allocations: 4.754 MB / 0.912 GB, free: 92.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002082/5.723, allocations: 117.8 kB / 0.9121 GB, free: 91.94 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003408/5.727, allocations: 4.001 MB / 0.916 GB, free: 89.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003946/5.731, allocations: 2.12 MB / 0.9181 GB, free: 87.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00192/5.733, allocations: 185.1 kB / 0.9183 GB, free: 87.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005512/5.733, allocations: 0.711 MB / 0.919 GB, free: 86.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01888/5.752, allocations: 8.67 MB / 0.9274 GB, free: 83.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02159/5.774, allocations: 12.76 MB / 0.9399 GB, free: 75.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02365/5.797, allocations: 10.58 MB / 0.9502 GB, free: 69.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002277/5.798, allocations: 36 kB / 0.9503 GB, free: 69.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.1721/5.97, allocations: 40.31 MB / 0.9896 GB, free: 36.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001702/5.97, allocations: 64 kB / 0.9897 GB, free: 36.51 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002694/5.97, allocations: 136 kB / 0.9898 GB, free: 36.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1432/6.113, allocations: 21.55 MB / 1.011 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008348/6.122, allocations: 1.434 MB / 1.012 GB, free: 13.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6771/6.799, allocations: 151.1 MB / 1.16 GB, free: 7.633 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01759/6.817, allocations: 0.7246 MB / 1.161 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003384/6.82, allocations: 0.5271 MB / 1.161 GB, free: 6.66 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (772): * Single equations (assignments): 765 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.01132/6.831, allocations: 3.119 MB / 1.164 GB, free: 4.137 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002883/6.834, allocations: 0.5908 MB / 1.165 GB, free: 3.688 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4724/7.307, allocations: 36.29 MB / 1.2 GB, free: 97.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/7.307, allocations: 60.88 kB / 1.2 GB, free: 97.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002147/7.307, allocations: 63.47 kB / 1.2 GB, free: 97.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001466/7.307, allocations: 34.11 kB / 1.2 GB, free: 97.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2272/7.535, allocations: 57.22 MB / 1.256 GB, free: 83.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001194/7.535, allocations: 3.062 kB / 1.256 GB, free: 83.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002711/7.537, allocations: 269.5 kB / 1.256 GB, free: 83.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1096/7.647, allocations: 20.76 MB / 1.277 GB, free: 64.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002268/7.649, allocations: 96 kB / 1.277 GB, free: 64.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6609/8.31, allocations: 138.9 MB / 1.412 GB, free: 71.83 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/8.31, allocations: 2.062 kB / 1.412 GB, free: 71.83 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1706/8.481, allocations: 48.8 MB / 1.46 GB, free: 33.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009206/8.49, allocations: 2.401 MB / 1.462 GB, free: 30.91 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003566/8.494, allocations: 101 kB / 1.462 GB, free: 30.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01247/8.506, allocations: 0.489 MB / 1.463 GB, free: 30.53 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005071/8.512, allocations: 0.5129 MB / 1.463 GB, free: 30.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001871/8.513, allocations: 147 kB / 1.464 GB, free: 30.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008632/8.522, allocations: 3.406 MB / 1.467 GB, free: 27.3 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.61e-07/8.522, allocations: 0 / 1.467 GB, free: 27.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0181/8.54, allocations: 3.436 MB / 1.47 GB, free: 23.88 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.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 (148): * Single equations (assignments): 141 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.4961/9.036, allocations: 49.45 MB / 1.519 GB, free: 81.84 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.06454/9.101, allocations: 24.51 MB / 1.543 GB, free: 80.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.485e-06/9.101, allocations: 3.562 kB / 1.543 GB, free: 80.69 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04012/9.141, allocations: 13.79 MB / 1.556 GB, free: 76.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007583/9.149, allocations: 0.7106 MB / 1.557 GB, free: 76.23 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6648/9.814, allocations: 200.4 MB / 1.752 GB, free: 76.15 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01308/9.827, allocations: 5.317 MB / 1.758 GB, free: 75.28 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01037/9.837, allocations: 2.078 MB / 1.76 GB, free: 75.21 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007395/9.845, allocations: 3.049 MB / 1.763 GB, free: 73.97 MB / 474.7 MB Notification: Performance of SimCode: time 3.146e-06/9.845, allocations: 0 / 1.763 GB, free: 73.97 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.28/11.12, allocations: 291.1 MB / 2.047 GB, free: 106.2 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/11.13, allocations: 212 kB / 2.047 GB, free: 106 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/22.67, allocations: 0 / 2.047 GB, free: 106 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1_res.mat does not exist to compare? outputFormat=mat