Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.BodyShape.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.Parts.BodyShape,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Parts_BodyShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.924/1.924, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007006/0.0007007, allocations: 12 kB / 282.7 MB, free: 9.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1554, allocations: 48.7 MB / 331.4 MB, free: 8.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4736/0.6291, allocations: 92.82 MB / 424.2 MB, free: 8.129 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002583/0.6294, allocations: 83.89 kB / 424.3 MB, free: 8.047 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6443/1.274, allocations: 81.86 MB / 0.4943 GB, free: 87.55 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.076e-06/1.274, allocations: 0 / 0.4943 GB, free: 87.55 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002944/1.274, allocations: 83.64 kB / 0.4943 GB, free: 87.55 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1491 * Number of variables: 1491 Notification: Performance of Generate backend data structure: time 0.01763/1.292, allocations: 4.181 MB / 0.4984 GB, free: 85.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.858e-05/1.292, allocations: 13.27 kB / 0.4984 GB, free: 85.7 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003732/1.296, allocations: 0.7595 MB / 0.4992 GB, free: 85.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01906/1.315, allocations: 2.32 MB / 0.5014 GB, free: 85.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01935/1.334, allocations: 5.207 MB / 0.5065 GB, free: 84.78 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004721/1.335, allocations: 317.5 kB / 0.5068 GB, free: 84.77 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00258/1.337, allocations: 419.7 kB / 0.5072 GB, free: 84.76 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0304/1.368, allocations: 10.4 MB / 0.5174 GB, free: 81.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002907/1.368, allocations: 58.44 kB / 0.5174 GB, free: 81.95 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001826/1.37, allocations: 205.5 kB / 0.5176 GB, free: 81.95 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002223/1.372, allocations: 1.001 MB / 0.5186 GB, free: 81.93 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02595/1.398, allocations: 8.441 MB / 0.5269 GB, free: 80.76 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06807/1.466, allocations: 48.3 MB / 0.574 GB, free: 43.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01446/1.481, allocations: 3.575 MB / 0.5775 GB, free: 41.99 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01542/1.496, allocations: 6.986 MB / 0.5843 GB, free: 38.02 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/1.496, allocations: 50.52 kB / 0.5844 GB, free: 37.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 5.58e-06/1.496, allocations: 0 / 0.5844 GB, free: 37.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.05645/1.553, allocations: 14.08 MB / 0.5981 GB, free: 25.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001294/1.554, allocations: 1.595 MB / 0.5997 GB, free: 24.21 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0071/1.561, allocations: 3.474 MB / 0.6031 GB, free: 21.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004171/1.562, allocations: 45.7 kB / 0.6031 GB, free: 21.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002435/1.564, allocations: 3.08 MB / 0.6062 GB, free: 18.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001043/1.565, allocations: 0.6286 MB / 0.6068 GB, free: 17.91 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007065/1.566, allocations: 120 kB / 0.6069 GB, free: 17.79 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003774/1.566, allocations: 0.5624 MB / 0.6074 GB, free: 17.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00516/1.571, allocations: 1.999 MB / 0.6094 GB, free: 15.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007535/1.579, allocations: 5.777 MB / 0.615 GB, free: 7.648 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007379/1.587, allocations: 3.322 MB / 0.6183 GB, free: 4.328 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001229/1.587, allocations: 40 kB / 0.6183 GB, free: 4.289 MB / 410.7 MB Notification: Performance of matching and sorting (n=785) (initialization): time 0.02499/1.612, allocations: 8.132 MB / 0.6262 GB, free: 12.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001297/1.612, allocations: 60 kB / 0.6263 GB, free: 12.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008716/1.621, allocations: 2.45 MB / 0.6287 GB, free: 9.629 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005441/1.626, allocations: 1.052 MB / 0.6297 GB, free: 8.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008639/1.635, allocations: 1.404 MB / 0.6311 GB, free: 7.164 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007426/1.642, allocations: 4.361 MB / 0.6354 GB, free: 2.539 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007358/1.65, allocations: 387.2 kB / 0.6357 GB, free: 2.164 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001627/1.651, allocations: 382.9 kB / 0.6361 GB, free: 1.793 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * Number of states: 0 () * Number of discrete variables: 36 (freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (750): * Single equations (assignments): 741 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006233/1.658, allocations: 2.06 MB / 0.6381 GB, free: 15.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009816/1.659, allocations: 339.6 kB / 0.6384 GB, free: 15.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/1.669, allocations: 2.949 MB / 0.6413 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008796/1.678, allocations: 2.468 MB / 0.6437 GB, free: 9.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.756e-05/1.678, allocations: 4 kB / 0.6437 GB, free: 9.926 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.179e-05/1.678, allocations: 7.969 kB / 0.6437 GB, free: 9.918 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02921/1.708, allocations: 9.229 MB / 0.6527 GB, free: 0.5547 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.926e-05/1.708, allocations: 4 kB / 0.6527 GB, free: 0.5508 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002275/1.71, allocations: 247.6 kB / 0.653 GB, free: 316 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3126/2.022, allocations: 1.007 MB / 0.654 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004728/2.023, allocations: 42.66 kB / 0.654 GB, free: 106.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009603/2.033, allocations: 4.929 MB / 0.6588 GB, free: 104 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001225/2.034, allocations: 1.463 MB / 0.6602 GB, free: 102.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01541/2.049, allocations: 5.6 MB / 0.6657 GB, free: 101.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/2.051, allocations: 396.2 kB / 0.6661 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001202/2.052, allocations: 40.95 kB / 0.6661 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003248/2.055, allocations: 125.3 kB / 0.6662 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006/2.056, allocations: 109.2 kB / 0.6664 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002083/2.056, allocations: 51.83 kB / 0.6664 GB, free: 101.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007195/2.063, allocations: 2.404 MB / 0.6687 GB, free: 101.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.01e-07/2.063, allocations: 0.9688 kB / 0.6687 GB, free: 101.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007929/2.071, allocations: 1.006 MB / 0.6697 GB, free: 101.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (124): * Single equations (assignments): 117 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01566/2.087, allocations: 7.077 MB / 0.6766 GB, free: 99.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01442/2.102, allocations: 5.332 MB / 0.6818 GB, free: 98.79 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/2.102, allocations: 3.562 kB / 0.6819 GB, free: 98.79 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006723/2.108, allocations: 2.115 MB / 0.6839 GB, free: 98.34 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003653/2.112, allocations: 408.3 kB / 0.6843 GB, free: 98.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1209/2.233, allocations: 126.9 MB / 0.8083 GB, free: 168 kB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006943/2.24, allocations: 3.294 MB / 0.8115 GB, free: 14.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005054/2.245, allocations: 1.894 MB / 0.8133 GB, free: 13.4 MB / 474.7 MB Notification: Performance of SimCode: time 1.412e-06/2.245, allocations: 0 / 0.8133 GB, free: 13.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.048/7.293, allocations: 147.4 MB / 0.9573 GB, free: 68.3 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Parts.BodyShape_res.mat does not exist to compare? outputFormat=mat