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.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.589/2.589, allocations: 234.9 MB / 250.5 MB, free: 9.676 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000454/0.000454, allocations: 12 kB / 314.5 MB, free: 9.602 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3878/0.3883, allocations: 54.85 MB / 369.3 MB, free: 12.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2404/0.6287, allocations: 96.04 MB / 465.4 MB, free: 12.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003025/0.6291, allocations: 87.77 kB / 465.5 MB, free: 12.4 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5939/1.223, allocations: 56.86 MB / 0.5101 GB, free: 104.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.717e-06/1.223, allocations: 0 / 0.5101 GB, free: 104.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001436/1.223, allocations: 61.28 kB / 0.5102 GB, free: 104.9 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1092 * Number of variables: 1092 Notification: Performance of Generate backend data structure: time 0.01029/1.234, allocations: 2.769 MB / 0.5129 GB, free: 103.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/1.234, allocations: 9.156 kB / 0.5129 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002699/1.236, allocations: 0.5545 MB / 0.5134 GB, free: 103.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01407/1.25, allocations: 1.834 MB / 0.5152 GB, free: 103.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005712/1.256, allocations: 1.756 MB / 0.5169 GB, free: 102.9 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002887/1.257, allocations: 223.5 kB / 0.5171 GB, free: 102.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001798/1.258, allocations: 293.1 kB / 0.5174 GB, free: 102.9 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02003/1.278, allocations: 6.807 MB / 0.5241 GB, free: 101.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001409/1.279, allocations: 16.36 kB / 0.5241 GB, free: 101.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001541/1.28, allocations: 134.3 kB / 0.5242 GB, free: 101.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001855/1.282, allocations: 0.705 MB / 0.5249 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02311/1.305, allocations: 5.941 MB / 0.5307 GB, free: 98.42 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05674/1.362, allocations: 23.83 MB / 0.554 GB, free: 77.08 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007392/1.369, allocations: 2.192 MB / 0.5561 GB, free: 74.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01162/1.381, allocations: 4.024 MB / 0.56 GB, free: 70.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/1.381, allocations: 47.17 kB / 0.5601 GB, free: 70.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=96): time 5.39e-06/1.381, allocations: 0 / 0.5601 GB, free: 70.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=96): time 0.01021/1.391, allocations: 2.505 MB / 0.5625 GB, free: 68.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/1.392, allocations: 64.06 kB / 0.5626 GB, free: 68.06 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003939/1.396, allocations: 1.788 MB / 0.5643 GB, free: 66.28 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001913/1.396, allocations: 37.7 kB / 0.5644 GB, free: 66.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/1.397, allocations: 2.015 MB / 0.5663 GB, free: 64.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005773/1.398, allocations: 379.5 kB / 0.5667 GB, free: 63.85 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000319/1.398, allocations: 64 kB / 0.5667 GB, free: 63.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002376/1.399, allocations: 449.7 kB / 0.5672 GB, free: 63.34 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/1.401, allocations: 0.9471 MB / 0.5681 GB, free: 62.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003635/1.405, allocations: 2.912 MB / 0.5709 GB, free: 58.49 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003691/1.408, allocations: 1.663 MB / 0.5726 GB, free: 56.83 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.825e-05/1.408, allocations: 20 kB / 0.5726 GB, free: 56.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=419) (initialization): time 0.009443/1.418, allocations: 3.708 MB / 0.5762 GB, free: 53.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.674e-05/1.418, allocations: 32 kB / 0.5762 GB, free: 53.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.502e-05/1.418, allocations: 79.78 kB / 0.5763 GB, free: 52.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001128/1.418, allocations: 100 kB / 0.5764 GB, free: 52.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004238/1.422, allocations: 0.7213 MB / 0.5771 GB, free: 52.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001618/1.423, allocations: 131.5 kB / 0.5772 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003533/1.426, allocations: 451.4 kB / 0.5777 GB, free: 51.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007066/1.427, allocations: 192 kB / 0.5779 GB, free: 51.41 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 317 * Number of states: 0 () * Number of discrete variables: 21 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (395): * Single equations (assignments): 392 * 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.003533/1.431, allocations: 1.453 MB / 0.5793 GB, free: 49.95 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003698/1.431, allocations: 169.8 kB / 0.5794 GB, free: 49.78 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003006/1.434, allocations: 1.248 MB / 0.5807 GB, free: 48.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.545e-05/1.434, allocations: 15.95 kB / 0.5807 GB, free: 48.5 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/1.434, allocations: 3.609 kB / 0.5807 GB, free: 48.5 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.616e-05/1.434, allocations: 3.984 kB / 0.5807 GB, free: 48.5 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01264/1.447, allocations: 5.024 MB / 0.5856 GB, free: 43.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/1.447, allocations: 8.938 kB / 0.5856 GB, free: 43.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001037/1.448, allocations: 143.8 kB / 0.5857 GB, free: 43.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-05/1.448, allocations: 20 kB / 0.5857 GB, free: 43.13 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.878e-05/1.448, allocations: 31.92 kB / 0.5858 GB, free: 43.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.789e-05/1.448, allocations: 15.94 kB / 0.5858 GB, free: 43.08 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-05/1.448, allocations: 15.94 kB / 0.5858 GB, free: 43.07 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002945/1.451, allocations: 2.316 MB / 0.5881 GB, free: 40.27 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005702/1.452, allocations: 278.5 kB / 0.5883 GB, free: 39.97 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003163/1.452, allocations: 35.84 kB / 0.5884 GB, free: 39.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/1.453, allocations: 35.89 kB / 0.5884 GB, free: 39.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/1.453, allocations: 79.7 kB / 0.5885 GB, free: 39.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.627e-05/1.453, allocations: 36 kB / 0.5885 GB, free: 39.79 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003093/1.456, allocations: 1.32 MB / 0.5898 GB, free: 38.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.152e-06/1.457, allocations: 4 kB / 0.5898 GB, free: 38.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004235/1.461, allocations: 0.7659 MB / 0.5906 GB, free: 37.68 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * 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 (76): * Single equations (assignments): 73 * 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.004121/1.465, allocations: 5.573 MB / 0.596 GB, free: 31.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005233/1.47, allocations: 2.229 MB / 0.5982 GB, free: 29.58 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.468e-05/1.47, allocations: 4 kB / 0.5982 GB, free: 29.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001203/1.472, allocations: 0.5616 MB / 0.5987 GB, free: 29.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001729/1.473, allocations: 231.4 kB / 0.5989 GB, free: 28.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05642/1.53, allocations: 64.85 MB / 0.6623 GB, free: 9.715 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005895/1.536, allocations: 2.512 MB / 0.6647 GB, free: 7.188 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003331/1.539, allocations: 1.187 MB / 0.6659 GB, free: 6 MB / 474.7 MB Notification: Performance of SimCode: time 2.084e-06/1.539, allocations: 0 / 0.6659 GB, free: 6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.769/5.308, allocations: 48.76 MB / 0.7135 GB, free: 125.5 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat does not exist to compare? outputFormat=mat