Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.PlanarLoopWithMove,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_PlanarLoopWithMove",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.408/2.408, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004461/0.0004457, allocations: 12 kB / 314.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3428, allocations: 54.86 MB / 369.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1761/0.519, allocations: 99.24 MB / 468.6 MB, free: 7.227 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/0.5193, allocations: 75.91 kB / 468.7 MB, free: 7.152 MB / 394.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2346:7-2347:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$combiTimeTable.getDerTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2312:7-2313:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$combiTimeTable.getTableValue. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2358:7-2359:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$combiTimeTable.getTableTimeTmin. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Blocks/Sources.mo:2369:7-2370:66:writable] Warning: Unused input variable tableAvailable in function .Modelica.Blocks.Sources.CombiTimeTable$combiTimeTable.getTableTimeTmax. Notification: Performance of FrontEnd - DAE generated: time 0.6555/1.175, allocations: 92.58 MB / 0.5481 GB, free: 23.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.004e-06/1.175, allocations: 0 / 0.5481 GB, free: 23.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002425/1.175, allocations: 88 kB / 0.5482 GB, free: 23.3 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: 1594 * Number of variables: 1594 Notification: Performance of Generate backend data structure: time 0.01934/1.194, allocations: 5.092 MB / 0.5531 GB, free: 18.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.195, allocations: 12.03 kB / 0.5532 GB, free: 18.11 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003251/1.198, allocations: 0.7997 MB / 0.5539 GB, free: 17.29 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01627/1.214, allocations: 2.244 MB / 0.5561 GB, free: 15.04 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01781/1.232, allocations: 5.109 MB / 0.5611 GB, free: 9.867 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003343/1.232, allocations: 324.5 kB / 0.5614 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002196/1.235, allocations: 431.8 kB / 0.5618 GB, free: 9.125 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0324/1.267, allocations: 11.57 MB / 0.5731 GB, free: 12.52 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002533/1.267, allocations: 67.39 kB / 0.5732 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001597/1.269, allocations: 203.9 kB / 0.5734 GB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002641/1.272, allocations: 1.148 MB / 0.5745 GB, free: 11.1 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03342/1.305, allocations: 10.02 MB / 0.5843 GB, free: 1.059 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1402/1.445, allocations: 50.77 MB / 0.6339 GB, free: 12.75 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0254/1.471, allocations: 5.91 MB / 0.6397 GB, free: 6.684 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3752/1.846, allocations: 9.295 MB / 0.6487 GB, free: 112.8 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01905/1.865, allocations: 3.413 MB / 0.6521 GB, free: 112.7 MB / 474.7 MB Notification: Performance of pre-optimization done (n=211): time 2.206e-05/1.865, allocations: 0 / 0.6521 GB, free: 112.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=285): time 0.2048/2.07, allocations: 34.27 MB / 0.6855 GB, free: 109.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.591e-05/2.07, allocations: 162 kB / 0.6857 GB, free: 109.7 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009225/2.079, allocations: 3.707 MB / 0.6893 GB, free: 109.3 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001115/2.081, allocations: 69.3 kB / 0.6894 GB, free: 109.3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004501/2.085, allocations: 3.148 MB / 0.6925 GB, free: 107.6 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002437/2.088, allocations: 1.047 MB / 0.6935 GB, free: 106.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001223/2.089, allocations: 133.3 kB / 0.6936 GB, free: 106.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006249/2.089, allocations: 0.5897 MB / 0.6942 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01184/2.101, allocations: 3.3 MB / 0.6974 GB, free: 105.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01534/2.117, allocations: 6.906 MB / 0.7041 GB, free: 99.22 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01521/2.132, allocations: 4.727 MB / 0.7088 GB, free: 97.48 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001537/2.132, allocations: 36 kB / 0.7088 GB, free: 97.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.04287/2.175, allocations: 12.36 MB / 0.7209 GB, free: 87.36 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/2.175, allocations: 93.72 kB / 0.721 GB, free: 87.27 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001756/2.175, allocations: 132 kB / 0.7211 GB, free: 87.14 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/2.188, allocations: 2.668 MB / 0.7237 GB, free: 85.17 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009814/2.198, allocations: 1.474 MB / 0.7251 GB, free: 83.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0433/2.241, allocations: 22.29 MB / 0.7469 GB, free: 64.01 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00823/2.25, allocations: 433.2 kB / 0.7473 GB, free: 63.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001728/2.251, allocations: 398.5 kB / 0.7477 GB, free: 63.29 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled,rod3.color[3],rod3.color[2],rod3.color[1],r4.cylinderColor[3],r4.cylinderColor[2],r4.cylinderColor[1],r3.cylinderColor[3],r3.cylinderColor[2],r3.cylinderColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.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 (765): * Single equations (assignments): 757 * Array equations: 3 * Algorithm blocks: 1 * 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 {(2,100.0%) 16,(2,100.0%) 14,(3,88.9%) 13} * Non-linear torn systems: 1 {2 27} Notification: Performance of prepare postOptimizeDAE: time 0.006534/2.258, allocations: 2.228 MB / 0.7499 GB, free: 61.33 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001122/2.259, allocations: 410.5 kB / 0.7503 GB, free: 60.93 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02383/2.283, allocations: 7.897 MB / 0.758 GB, free: 54.23 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.917e-05/2.283, allocations: 33.36 kB / 0.758 GB, free: 54.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.109e-05/2.283, allocations: 8 kB / 0.758 GB, free: 54.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.877e-05/2.283, allocations: 19.02 kB / 0.758 GB, free: 54.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04237/2.326, allocations: 14.66 MB / 0.7723 GB, free: 39.49 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.426e-05/2.326, allocations: 192 / 0.7723 GB, free: 39.49 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004092/2.33, allocations: 403.4 kB / 0.7727 GB, free: 39.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01108/2.341, allocations: 2.451 MB / 0.7751 GB, free: 36.63 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000866/2.342, allocations: 48 kB / 0.7752 GB, free: 36.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04233/2.384, allocations: 22.07 MB / 0.7967 GB, free: 14 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/2.384, allocations: 0 / 0.7967 GB, free: 14 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02441/2.409, allocations: 8.28 MB / 0.8048 GB, free: 5.508 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003654/2.412, allocations: 1.002 MB / 0.8058 GB, free: 4.484 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001638/2.414, allocations: 51.92 kB / 0.8058 GB, free: 4.434 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006861/2.421, allocations: 207.7 kB / 0.806 GB, free: 4.23 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00241/2.423, allocations: 187.3 kB / 0.8062 GB, free: 4.051 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001259/2.425, allocations: 83.27 kB / 0.8063 GB, free: 3.973 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008521/2.433, allocations: 2.594 MB / 0.8088 GB, free: 1.371 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.122e-06/2.433, allocations: 4 kB / 0.8088 GB, free: 1.367 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008956/2.442, allocations: 1.378 MB / 0.8102 GB, free: 0 / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 182 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(2,100.0%) 16,(3,88.9%) 13,(2,100.0%) 14} * Non-linear torn systems: 1 {2 31} Notification: Performance of Backend phase and start with SimCode phase: time 0.02982/2.472, allocations: 9.736 MB / 0.8197 GB, free: 6.227 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.3741/2.846, allocations: 8.818 MB / 0.8283 GB, free: 121.8 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/2.846, allocations: 0 / 0.8283 GB, free: 121.8 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01003/2.856, allocations: 4.001 MB / 0.8322 GB, free: 121.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003909/2.86, allocations: 435.7 kB / 0.8326 GB, free: 121.3 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06424/2.925, allocations: 109.8 MB / 0.9398 GB, free: 20.96 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008016/2.933, allocations: 3.673 MB / 0.9434 GB, free: 20.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006027/2.939, allocations: 2.126 MB / 0.9455 GB, free: 20.14 MB / 490.7 MB Notification: Performance of SimCode: time 1.342e-06/2.939, allocations: 2.25 kB / 0.9455 GB, free: 20.14 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.252/8.191, allocations: 169.1 MB / 1.111 GB, free: 78.5 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.PlanarLoopWithMove_res.mat does not exist to compare? outputFormat=mat