Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.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.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.448/2.448, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.0004389, allocations: 16 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3512/0.3517, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1858/0.5375, allocations: 98.9 MB / 468.3 MB, free: 7.566 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000312/0.5379, allocations: 87.91 kB / 468.3 MB, free: 7.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.972/1.51, allocations: 166.1 MB / 0.6195 GB, free: 13.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.51, allocations: 0 / 0.6195 GB, free: 13.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005474/1.511, allocations: 167.9 kB / 0.6197 GB, free: 13.55 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2932 * Number of variables: 2932 Notification: Performance of Generate backend data structure: time 0.03675/1.547, allocations: 8.532 MB / 0.628 GB, free: 4.926 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.333e-05/1.547, allocations: 8.031 kB / 0.628 GB, free: 4.918 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007569/1.555, allocations: 1.458 MB / 0.6295 GB, free: 3.445 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.7927/2.348, allocations: 3.671 MB / 0.633 GB, free: 55.49 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03533/2.383, allocations: 9.721 MB / 0.6425 GB, free: 55.22 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009471/2.384, allocations: 0.631 MB / 0.6432 GB, free: 55.2 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005039/2.389, allocations: 0.8271 MB / 0.644 GB, free: 55.2 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06412/2.453, allocations: 19.65 MB / 0.6632 GB, free: 51.05 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007065/2.454, allocations: 91.22 kB / 0.6632 GB, free: 51.05 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004893/2.459, allocations: 400.2 kB / 0.6636 GB, free: 51.05 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005016/2.464, allocations: 1.871 MB / 0.6654 GB, free: 51.02 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05291/2.517, allocations: 15.53 MB / 0.6806 GB, free: 50.95 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1437/2.661, allocations: 81.53 MB / 0.7602 GB, free: 12.08 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02875/2.69, allocations: 5.986 MB / 0.7661 GB, free: 9.078 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03651/2.726, allocations: 11.33 MB / 0.7772 GB, free: 15.5 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.318e-05/2.726, allocations: 60.56 kB / 0.7772 GB, free: 15.44 MB / 490.8 MB Notification: Performance of pre-optimization done (n=250): time 8.927e-06/2.726, allocations: 3.375 kB / 0.7772 GB, free: 15.44 MB / 490.8 MB Notification: Performance of matching and sorting (n=274): time 0.08067/2.807, allocations: 16.59 MB / 0.7934 GB, free: 1.156 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/2.807, allocations: 154.5 kB / 0.7936 GB, free: 0.9727 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03758/2.845, allocations: 6.989 MB / 0.8004 GB, free: 14.27 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0006985/2.846, allocations: 72.23 kB / 0.8005 GB, free: 14.2 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006997/2.853, allocations: 5.562 MB / 0.8059 GB, free: 9.176 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002281/2.855, allocations: 1.062 MB / 0.8069 GB, free: 8.242 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001552/2.857, allocations: 184 kB / 0.8071 GB, free: 8.062 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001281/2.858, allocations: 0.694 MB / 0.8078 GB, free: 7.465 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01025/2.868, allocations: 2.682 MB / 0.8104 GB, free: 5.262 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01738/2.886, allocations: 8.443 MB / 0.8186 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01462/2.9, allocations: 4.604 MB / 0.8231 GB, free: 6.641 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002627/2.901, allocations: 60 kB / 0.8232 GB, free: 6.582 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1192) (initialization): time 0.4373/3.338, allocations: 10.62 MB / 0.8336 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002229/3.338, allocations: 96.38 kB / 0.8337 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000519/3.339, allocations: 205.9 kB / 0.8339 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005448/3.339, allocations: 300.7 kB / 0.8341 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0144/3.354, allocations: 2.253 MB / 0.8363 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005557/3.354, allocations: 403.4 kB / 0.8367 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01223/3.367, allocations: 0.6213 MB / 0.8373 GB, free: 100.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002312/3.369, allocations: 0.5507 MB / 0.8379 GB, free: 100.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 940 * Number of states: 0 () * Number of discrete variables: 57 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1168): * Single equations (assignments): 1165 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01173/3.381, allocations: 3.742 MB / 0.8415 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001655/3.382, allocations: 0.5858 MB / 0.8421 GB, free: 100.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009369/3.392, allocations: 3.003 MB / 0.845 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.36e-05/3.392, allocations: 27.81 kB / 0.8451 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/3.392, allocations: 2.406 kB / 0.8451 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-05/3.392, allocations: 13.27 kB / 0.8451 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05617/3.448, allocations: 24.82 MB / 0.8693 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001708/3.448, allocations: 62.53 kB / 0.8694 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003875/3.452, allocations: 0.5906 MB / 0.8699 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001007/3.452, allocations: 91.34 kB / 0.87 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005266/3.453, allocations: 133.6 kB / 0.8702 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.793e-05/3.453, allocations: 125 kB / 0.8703 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.435e-05/3.453, allocations: 94.38 kB / 0.8704 GB, free: 97.73 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01333/3.467, allocations: 16.91 MB / 0.8869 GB, free: 82.37 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002506/3.469, allocations: 0.717 MB / 0.8876 GB, free: 82.28 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002375/3.472, allocations: 144.4 kB / 0.8877 GB, free: 82.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005989/3.478, allocations: 216.5 kB / 0.8879 GB, free: 82.27 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001046/3.479, allocations: 408.7 kB / 0.8883 GB, free: 82.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003525/3.479, allocations: 170 kB / 0.8885 GB, free: 82.23 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.013/3.492, allocations: 4.274 MB / 0.8927 GB, free: 82.01 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.11e-07/3.492, allocations: 3.562 kB / 0.8927 GB, free: 82.01 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01322/3.505, allocations: 1.545 MB / 0.8942 GB, free: 82.01 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 280 * Number of states: 0 () * 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 (318): * Single equations (assignments): 315 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01704/3.522, allocations: 28.95 MB / 0.9224 GB, free: 54.94 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01676/3.539, allocations: 6.255 MB / 0.9286 GB, free: 54.83 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.364e-05/3.539, allocations: 6.688 kB / 0.9286 GB, free: 54.83 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004196/3.544, allocations: 1.598 MB / 0.9301 GB, free: 54.62 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008341/3.552, allocations: 0.919 MB / 0.931 GB, free: 54.43 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6397/4.192, allocations: 206.5 MB / 1.133 GB, free: 36.34 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01597/4.208, allocations: 5.956 MB / 1.139 GB, free: 35.44 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009522/4.217, allocations: 3.925 MB / 1.142 GB, free: 35.43 MB / 0.5418 GB Notification: Performance of SimCode: time 1.533e-06/4.217, allocations: 0 / 1.142 GB, free: 35.43 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.839/10.06, allocations: 143.5 MB / 1.283 GB, free: 112.9 MB / 0.5418 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat