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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.233/2.233, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.415e-05/2.415e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3293/0.3293, allocations: 54.85 MB / 358.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1936/0.523, allocations: 98.15 MB / 456.3 MB, free: 12.65 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002976/0.5234, allocations: 75.91 kB / 456.3 MB, free: 12.57 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9211/1.444, allocations: 162.4 MB / 0.6043 GB, free: 9.855 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.395e-06/1.445, allocations: 0 / 0.6043 GB, free: 9.855 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005236/1.445, allocations: 164 kB / 0.6044 GB, free: 9.695 MB / 442.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.03268/1.478, allocations: 7.972 MB / 0.6122 GB, free: 1.641 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/1.478, allocations: 8.031 kB / 0.6122 GB, free: 1.633 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03275/1.511, allocations: 3.678 MB / 0.6158 GB, free: 13.94 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03442/1.545, allocations: 9.667 MB / 0.6252 GB, free: 4.188 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006625/1.546, allocations: 280 kB / 0.6255 GB, free: 3.914 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004605/1.55, allocations: 495.8 kB / 0.626 GB, free: 3.43 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3619/1.912, allocations: 11.6 MB / 0.6373 GB, free: 63.29 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04507/1.958, allocations: 16.96 MB / 0.6539 GB, free: 59.18 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004855/1.958, allocations: 86.44 kB / 0.654 GB, free: 59.18 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00388/1.962, allocations: 50.34 kB / 0.654 GB, free: 59.18 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004706/1.967, allocations: 1.87 MB / 0.6558 GB, free: 59.16 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1284/2.095, allocations: 82.12 MB / 0.736 GB, free: 24.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006421/2.102, allocations: 3.056 MB / 0.739 GB, free: 22.62 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003215/2.105, allocations: 1.495 MB / 0.7405 GB, free: 22.05 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002344/2.105, allocations: 43.14 kB / 0.7405 GB, free: 22.04 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/2.105, allocations: 56.31 kB / 0.7406 GB, free: 21.98 MB / 474.7 MB Notification: Performance of pre-optimization done (n=244): time 5.701e-06/2.105, allocations: 1.812 kB / 0.7406 GB, free: 21.98 MB / 474.7 MB Notification: Performance of matching and sorting (n=256): time 0.04027/2.146, allocations: 11.81 MB / 0.7521 GB, free: 16.21 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/2.146, allocations: 156.8 kB / 0.7522 GB, free: 16.05 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01165/2.157, allocations: 5.159 MB / 0.7573 GB, free: 14.22 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005514/2.158, allocations: 29.55 kB / 0.7573 GB, free: 14.19 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005808/2.164, allocations: 5.738 MB / 0.7629 GB, free: 9.793 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001725/2.165, allocations: 0.9703 MB / 0.7639 GB, free: 9.09 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001051/2.167, allocations: 4.125 kB / 0.7639 GB, free: 9.09 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007409/2.167, allocations: 0.7103 MB / 0.7646 GB, free: 8.602 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006356/2.174, allocations: 2.369 MB / 0.7669 GB, free: 7.77 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01238/2.186, allocations: 8.367 MB / 0.775 GB, free: 14.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01078/2.197, allocations: 4.382 MB / 0.7793 GB, free: 11.18 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002455/2.197, allocations: 67.38 kB / 0.7794 GB, free: 11.12 MB / 490.7 MB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.02733/2.225, allocations: 9.213 MB / 0.7884 GB, free: 3.07 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001809/2.225, allocations: 104 kB / 0.7885 GB, free: 2.969 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003612/2.225, allocations: 220 kB / 0.7887 GB, free: 2.754 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004312/2.226, allocations: 316 kB / 0.789 GB, free: 2.445 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01534/2.241, allocations: 2.319 MB / 0.7913 GB, free: 428 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004485/2.241, allocations: 419 kB / 0.7917 GB, free: 52 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0122/2.254, allocations: 493.4 kB / 0.7921 GB, free: 15.72 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002319/2.256, allocations: 0.5696 MB / 0.7927 GB, free: 15.16 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 988 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1210): * Single equations (assignments): 1207 * 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.002461/2.259, allocations: 0.6272 MB / 0.7933 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007697/2.266, allocations: 2.862 MB / 0.7961 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001523/2.268, allocations: 0.5513 MB / 0.7966 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007453/2.275, allocations: 2.587 MB / 0.7992 GB, free: 9.219 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.659e-05/2.275, allocations: 30.89 kB / 0.7992 GB, free: 9.191 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/2.275, allocations: 0 / 0.7992 GB, free: 9.191 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.087e-05/2.275, allocations: 10.88 kB / 0.7992 GB, free: 9.191 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3982/2.674, allocations: 21.24 MB / 0.8199 GB, free: 95.11 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.503e-05/2.674, allocations: 54.81 kB / 0.82 GB, free: 95.11 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003591/2.677, allocations: 0.5621 MB / 0.8205 GB, free: 95.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.743e-05/2.678, allocations: 84.28 kB / 0.8206 GB, free: 95.11 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002628/2.678, allocations: 80.12 kB / 0.8207 GB, free: 95.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.425e-05/2.678, allocations: 112.4 kB / 0.8208 GB, free: 95.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.785e-05/2.678, allocations: 89 kB / 0.8209 GB, free: 95.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01011/2.688, allocations: 14.79 MB / 0.8353 GB, free: 81.09 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002105/2.69, allocations: 0.6549 MB / 0.836 GB, free: 80.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001662/2.692, allocations: 88.02 kB / 0.8361 GB, free: 80.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005259/2.697, allocations: 154.5 kB / 0.8362 GB, free: 80.99 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008708/2.698, allocations: 385.9 kB / 0.8366 GB, free: 80.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003043/2.698, allocations: 157.9 kB / 0.8367 GB, free: 80.95 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008964/2.707, allocations: 3.467 MB / 0.8401 GB, free: 80.73 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.02e-07/2.707, allocations: 1.312 kB / 0.8401 GB, free: 80.73 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01175/2.719, allocations: 1.313 MB / 0.8414 GB, free: 80.73 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 256 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (300): * Single equations (assignments): 297 * 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.01283/2.732, allocations: 26.41 MB / 0.8672 GB, free: 56.2 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01227/2.744, allocations: 5.562 MB / 0.8726 GB, free: 56.17 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.726e-05/2.745, allocations: 10.56 kB / 0.8726 GB, free: 56.17 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003127/2.748, allocations: 1.408 MB / 0.874 GB, free: 56.17 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006776/2.754, allocations: 0.7359 MB / 0.8747 GB, free: 56.14 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05372/2.808, allocations: 17.69 MB / 0.892 GB, free: 51.17 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01419/2.822, allocations: 5.93 MB / 0.8978 GB, free: 50.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008338/2.831, allocations: 3.857 MB / 0.9016 GB, free: 50.26 MB / 0.4948 GB Notification: Performance of SimCode: time 2.104e-06/2.831, allocations: 0 / 0.9016 GB, free: 50.26 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.377/8.208, allocations: 139.6 MB / 1.038 GB, free: 110.6 MB / 0.5105 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