Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.028/2.028, allocations: 209.2 MB / 224.8 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005982/0.0005982, allocations: 12 kB / 282.7 MB, free: 9.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4435/0.4441, allocations: 48.7 MB / 331.4 MB, free: 6.422 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1974/0.6416, allocations: 92.18 MB / 423.5 MB, free: 2.109 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004522/0.6421, allocations: 83.95 kB / 423.6 MB, free: 2.027 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9876/1.63, allocations: 166.1 MB / 0.5759 GB, free: 19.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.996e-06/1.63, allocations: 0 / 0.5759 GB, free: 19.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004731/1.63, allocations: 156 kB / 0.576 GB, free: 18.94 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: 2932 * Number of variables: 2932 Notification: Performance of Generate backend data structure: time 0.03385/1.664, allocations: 8.532 MB / 0.5843 GB, free: 10.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/1.664, allocations: 12.03 kB / 0.5844 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00675/1.671, allocations: 1.462 MB / 0.5858 GB, free: 8.828 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03151/1.703, allocations: 3.678 MB / 0.5894 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03355/1.736, allocations: 9.712 MB / 0.5989 GB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00121/1.737, allocations: 0.6336 MB / 0.5995 GB, free: 10.7 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005583/1.743, allocations: 0.82 MB / 0.6003 GB, free: 9.879 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08968/1.833, allocations: 19.65 MB / 0.6195 GB, free: 4.691 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006104/1.834, allocations: 99.06 kB / 0.6196 GB, free: 4.594 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004457/1.838, allocations: 403.8 kB / 0.62 GB, free: 4.199 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005518/1.844, allocations: 1.865 MB / 0.6218 GB, free: 2.328 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4317/2.275, allocations: 15.52 MB / 0.6369 GB, free: 62.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1654/2.441, allocations: 81.52 MB / 0.7165 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03772/2.479, allocations: 5.994 MB / 0.7224 GB, free: 12.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04759/2.526, allocations: 11.32 MB / 0.7335 GB, free: 7.281 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.041e-05/2.526, allocations: 65.41 kB / 0.7335 GB, free: 7.223 MB / 426.7 MB Notification: Performance of pre-optimization done (n=250): time 8.836e-06/2.526, allocations: 3.469 kB / 0.7335 GB, free: 7.223 MB / 426.7 MB Notification: Performance of matching and sorting (n=274): time 0.1421/2.668, allocations: 16.58 MB / 0.7497 GB, free: 184 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.798e-05/2.669, allocations: 160.3 kB / 0.7499 GB, free: 16 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03256/2.701, allocations: 6.03 MB / 0.7558 GB, free: 12.62 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006462/2.702, allocations: 69.06 kB / 0.7558 GB, free: 12.55 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006847/2.709, allocations: 5.558 MB / 0.7612 GB, free: 7.551 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001945/2.711, allocations: 1.058 MB / 0.7623 GB, free: 6.621 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/2.712, allocations: 188 kB / 0.7625 GB, free: 6.441 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009859/2.713, allocations: 0.6945 MB / 0.7631 GB, free: 5.844 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01001/2.723, allocations: 2.683 MB / 0.7658 GB, free: 3.641 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0214/2.745, allocations: 8.439 MB / 0.774 GB, free: 9.121 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01677/2.761, allocations: 4.61 MB / 0.7785 GB, free: 5.16 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002418/2.762, allocations: 60 kB / 0.7786 GB, free: 5.102 MB / 458.7 MB Notification: Performance of matching and sorting (n=1192) (initialization): time 0.0352/2.797, allocations: 10.61 MB / 0.7889 GB, free: 11.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001839/2.797, allocations: 92 kB / 0.789 GB, free: 11.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000442/2.798, allocations: 208 kB / 0.7892 GB, free: 11.46 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004412/2.798, allocations: 300 kB / 0.7895 GB, free: 11.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01502/2.813, allocations: 2.245 MB / 0.7917 GB, free: 9.207 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005488/2.814, allocations: 406.5 kB / 0.7921 GB, free: 8.852 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01183/2.826, allocations: 0.6133 MB / 0.7927 GB, free: 8.332 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002297/2.828, allocations: 0.5612 MB / 0.7932 GB, free: 7.777 MB / 474.7 MB 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.01157/2.84, allocations: 3.742 MB / 0.7969 GB, free: 4.504 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001651/2.841, allocations: 0.59 MB / 0.7974 GB, free: 3.906 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01028/2.852, allocations: 2.994 MB / 0.8004 GB, free: 1.363 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.974e-05/2.852, allocations: 28 kB / 0.8004 GB, free: 1.336 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/2.852, allocations: 0 / 0.8004 GB, free: 1.336 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.948e-05/2.852, allocations: 18.3 kB / 0.8004 GB, free: 1.332 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4086/3.26, allocations: 24.82 MB / 0.8247 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002355/3.261, allocations: 64.22 kB / 0.8247 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004097/3.265, allocations: 0.5998 MB / 0.8253 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001107/3.265, allocations: 90.59 kB / 0.8254 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006541/3.266, allocations: 137.4 kB / 0.8255 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000102/3.266, allocations: 115.7 kB / 0.8256 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.364e-05/3.266, allocations: 99.16 kB / 0.8257 GB, free: 101.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01379/3.28, allocations: 16.91 MB / 0.8422 GB, free: 85.9 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002892/3.283, allocations: 0.7171 MB / 0.8429 GB, free: 85.8 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002461/3.285, allocations: 145 kB / 0.8431 GB, free: 85.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006212/3.291, allocations: 211.8 kB / 0.8433 GB, free: 85.8 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001064/3.292, allocations: 412.9 kB / 0.8437 GB, free: 85.76 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003809/3.293, allocations: 169.4 kB / 0.8438 GB, free: 85.76 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01309/3.306, allocations: 4.277 MB / 0.848 GB, free: 85.54 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.082e-06/3.306, allocations: 0 / 0.848 GB, free: 85.54 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01276/3.319, allocations: 1.55 MB / 0.8495 GB, free: 85.54 MB / 474.7 MB 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.01585/3.335, allocations: 28.94 MB / 0.8778 GB, free: 58.77 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01688/3.352, allocations: 6.248 MB / 0.8839 GB, free: 58.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.782e-05/3.352, allocations: 7.75 kB / 0.8839 GB, free: 58.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004216/3.356, allocations: 1.6 MB / 0.8855 GB, free: 58.19 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008229/3.364, allocations: 0.9137 MB / 0.8864 GB, free: 58.14 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5434/3.908, allocations: 206.5 MB / 1.088 GB, free: 40.03 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01619/3.924, allocations: 5.96 MB / 1.094 GB, free: 39.13 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009655/3.934, allocations: 3.922 MB / 1.098 GB, free: 39.12 MB / 0.4948 GB Notification: Performance of SimCode: time 1.513e-06/3.934, allocations: 3.375 kB / 1.098 GB, free: 39.12 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.761/9.695, allocations: 143.5 MB / 1.238 GB, free: 114.4 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat