Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces.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.Forces.DifferentiationOfForces,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_DifferentiationOfForces",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.309/2.309, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.053e-05/3.071e-05, allocations: 0 / 309.8 MB, free: 1.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3891/0.3891, allocations: 54.86 MB / 364.6 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1922/0.5814, allocations: 103.8 MB / 468.4 MB, free: 8.637 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002885/0.5817, allocations: 75.97 kB / 468.5 MB, free: 8.562 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7192/1.301, allocations: 91.12 MB / 0.5465 GB, free: 106.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.104e-06/1.301, allocations: 0 / 0.5465 GB, free: 106.5 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002587/1.301, allocations: 89.84 kB / 0.5466 GB, free: 106.5 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: 1642 * Number of variables: 1642 Notification: Performance of Generate backend data structure: time 0.01727/1.319, allocations: 4.15 MB / 0.5506 GB, free: 104.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/1.319, allocations: 9.125 kB / 0.5506 GB, free: 104.7 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003364/1.322, allocations: 0.8311 MB / 0.5515 GB, free: 104.6 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03203/1.354, allocations: 4.438 MB / 0.5558 GB, free: 104.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01735/1.371, allocations: 4.72 MB / 0.5604 GB, free: 103.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003428/1.372, allocations: 355.4 kB / 0.5607 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002364/1.374, allocations: 460.7 kB / 0.5612 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02692/1.401, allocations: 10.56 MB / 0.5715 GB, free: 99.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002891/1.402, allocations: 67.27 kB / 0.5716 GB, free: 99.88 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001701/1.403, allocations: 219 kB / 0.5718 GB, free: 99.76 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00201/1.405, allocations: 0.9879 MB / 0.5727 GB, free: 99.59 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02301/1.428, allocations: 8.45 MB / 0.581 GB, free: 96.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08527/1.514, allocations: 46.88 MB / 0.6268 GB, free: 59.44 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008745/1.522, allocations: 2.917 MB / 0.6296 GB, free: 56.73 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003402/1.526, allocations: 1.582 MB / 0.6312 GB, free: 55.28 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005717/1.527, allocations: 344.4 kB / 0.6315 GB, free: 54.91 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.923e-05/1.527, allocations: 55.56 kB / 0.6315 GB, free: 54.85 MB / 458.7 MB Notification: Performance of pre-optimization done (n=176): time 5.83e-06/1.527, allocations: 0 / 0.6315 GB, free: 54.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=194): time 0.03891/1.566, allocations: 11.27 MB / 0.6425 GB, free: 44.66 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.032e-05/1.566, allocations: 205.2 kB / 0.6427 GB, free: 44.41 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007187/1.573, allocations: 3.341 MB / 0.646 GB, free: 41.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004726/1.573, allocations: 49.7 kB / 0.646 GB, free: 41.04 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00243/1.576, allocations: 3.161 MB / 0.6491 GB, free: 37.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001116/1.577, allocations: 0.7353 MB / 0.6499 GB, free: 37.14 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006681/1.578, allocations: 123.9 kB / 0.65 GB, free: 37.02 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003969/1.578, allocations: 0.559 MB / 0.6505 GB, free: 36.45 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004889/1.583, allocations: 1.999 MB / 0.6525 GB, free: 34.45 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007297/1.59, allocations: 5.639 MB / 0.658 GB, free: 26.97 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007167/1.598, allocations: 3.331 MB / 0.6612 GB, free: 23.64 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001115/1.598, allocations: 36 kB / 0.6613 GB, free: 23.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01897/1.617, allocations: 7.505 MB / 0.6686 GB, free: 16.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.364e-05/1.617, allocations: 67.94 kB / 0.6687 GB, free: 16.03 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/1.617, allocations: 131.8 kB / 0.6688 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/1.618, allocations: 386.7 kB / 0.6692 GB, free: 15.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008705/1.627, allocations: 1.419 MB / 0.6705 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00467/1.632, allocations: 3.003 MB / 0.6735 GB, free: 10.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006545/1.638, allocations: 351.7 kB / 0.6738 GB, free: 10.63 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001261/1.64, allocations: 368 kB / 0.6742 GB, free: 10.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 590 * Number of states: 0 () * Number of discrete variables: 27 (forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],cutForce.forceColor[3],cutForce.forceColor[2],cutForce.forceColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 740 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001385/1.641, allocations: 0.5593 MB / 0.6747 GB, free: 9.703 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008148/1.642, allocations: 335.7 kB / 0.675 GB, free: 9.371 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006714/1.649, allocations: 2.621 MB / 0.6776 GB, free: 6.738 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.063e-05/1.649, allocations: 30.8 kB / 0.6776 GB, free: 6.711 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/1.649, allocations: 4 kB / 0.6776 GB, free: 6.707 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.847e-05/1.649, allocations: 11.44 kB / 0.6776 GB, free: 6.699 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02123/1.67, allocations: 7.45 MB / 0.6849 GB, free: 15.23 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.852e-05/1.67, allocations: 0 / 0.6849 GB, free: 15.23 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003505/1.674, allocations: 343.6 kB / 0.6852 GB, free: 14.89 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009637/1.675, allocations: 184.6 kB / 0.6854 GB, free: 14.71 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004154/1.675, allocations: 35.98 kB / 0.6854 GB, free: 14.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00468/1.68, allocations: 2.55 MB / 0.6879 GB, free: 11.99 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/1.68, allocations: 3.938 kB / 0.6879 GB, free: 11.98 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01301/1.693, allocations: 5.155 MB / 0.693 GB, free: 6.801 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/1.695, allocations: 0.6365 MB / 0.6936 GB, free: 6.145 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009789/1.696, allocations: 35.64 kB / 0.6936 GB, free: 6.113 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003278/1.7, allocations: 115.9 kB / 0.6937 GB, free: 6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007392/1.7, allocations: 129.1 kB / 0.6939 GB, free: 5.871 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002534/1.701, allocations: 51.98 kB / 0.6939 GB, free: 5.82 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006513/1.707, allocations: 2.322 MB / 0.6962 GB, free: 3.516 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.152e-06/1.707, allocations: 0 / 0.6962 GB, free: 3.516 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006954/1.714, allocations: 0.9844 MB / 0.6971 GB, free: 2.531 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 160 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01349/1.728, allocations: 5.967 MB / 0.703 GB, free: 12.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01247/1.74, allocations: 4.877 MB / 0.7077 GB, free: 7.656 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/1.74, allocations: 0 / 0.7077 GB, free: 7.656 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003945/1.744, allocations: 1.543 MB / 0.7092 GB, free: 6.102 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003201/1.748, allocations: 387.9 kB / 0.7096 GB, free: 5.727 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3501/2.098, allocations: 9.651 MB / 0.719 GB, free: 122.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009918/2.108, allocations: 3.541 MB / 0.7225 GB, free: 121.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005551/2.113, allocations: 2.048 MB / 0.7245 GB, free: 121.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.893e-06/2.113, allocations: 0 / 0.7245 GB, free: 121.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.295/6.409, allocations: 103.1 MB / 0.8252 GB, free: 66.42 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.DifferentiationOfForces_res.mat does not exist to compare? outputFormat=mat