Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.BodyShape.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.Parts.BodyShape,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Parts_BodyShape",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.605/2.605, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004652/0.0004652, allocations: 16 kB / 314.5 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3584, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1809/0.5394, allocations: 99.55 MB / 468.9 MB, free: 6.914 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/0.5398, allocations: 83.95 kB / 469 MB, free: 6.832 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.743/1.283, allocations: 82.06 MB / 0.5381 GB, free: 33.75 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.096e-06/1.283, allocations: 0 / 0.5381 GB, free: 33.75 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002546/1.283, allocations: 87.98 kB / 0.5382 GB, free: 33.67 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: 1491 * Number of variables: 1491 Notification: Performance of Generate backend data structure: time 0.01547/1.299, allocations: 4.172 MB / 0.5423 GB, free: 29.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/1.299, allocations: 8.031 kB / 0.5423 GB, free: 29.42 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003276/1.302, allocations: 0.7619 MB / 0.543 GB, free: 28.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01838/1.32, allocations: 2.326 MB / 0.5453 GB, free: 26.31 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0175/1.338, allocations: 5.227 MB / 0.5504 GB, free: 21.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003898/1.338, allocations: 316.3 kB / 0.5507 GB, free: 20.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002386/1.341, allocations: 423.8 kB / 0.5511 GB, free: 20.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02893/1.37, allocations: 10.4 MB / 0.5613 GB, free: 8.828 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002601/1.37, allocations: 67.39 kB / 0.5613 GB, free: 8.762 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001749/1.372, allocations: 203.9 kB / 0.5615 GB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00223/1.374, allocations: 0.9945 MB / 0.5625 GB, free: 7.562 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02458/1.399, allocations: 8.445 MB / 0.5708 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08094/1.48, allocations: 48.3 MB / 0.6179 GB, free: 13.14 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01577/1.496, allocations: 3.565 MB / 0.6214 GB, free: 9.426 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01743/1.513, allocations: 7.001 MB / 0.6282 GB, free: 2.164 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.151e-05/1.513, allocations: 51.5 kB / 0.6283 GB, free: 2.105 MB / 458.7 MB Notification: Performance of pre-optimization done (n=139): time 6.071e-06/1.513, allocations: 0 / 0.6283 GB, free: 2.105 MB / 458.7 MB Notification: Performance of matching and sorting (n=155): time 0.06378/1.577, allocations: 14.06 MB / 0.642 GB, free: 3.805 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001866/1.579, allocations: 1.604 MB / 0.6436 GB, free: 2.031 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3455/1.924, allocations: 3.473 MB / 0.647 GB, free: 119.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004343/1.925, allocations: 46.06 kB / 0.647 GB, free: 119.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003136/1.928, allocations: 3.087 MB / 0.65 GB, free: 118.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001172/1.929, allocations: 0.6324 MB / 0.6507 GB, free: 117.9 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007448/1.93, allocations: 117.5 kB / 0.6508 GB, free: 117.9 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004639/1.931, allocations: 0.5636 MB / 0.6513 GB, free: 117.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005721/1.936, allocations: 2.002 MB / 0.6533 GB, free: 117.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008441/1.945, allocations: 5.786 MB / 0.6589 GB, free: 112.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008042/1.953, allocations: 3.314 MB / 0.6622 GB, free: 112.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001645/1.953, allocations: 39.84 kB / 0.6622 GB, free: 112.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=785) (initialization): time 0.0252/1.978, allocations: 8.215 MB / 0.6702 GB, free: 111.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/1.978, allocations: 61.34 kB / 0.6703 GB, free: 111.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008658/1.987, allocations: 2.534 MB / 0.6728 GB, free: 111.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005994/1.993, allocations: 1.135 MB / 0.6739 GB, free: 111.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008019/2.001, allocations: 1.383 MB / 0.6752 GB, free: 111.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007566/2.009, allocations: 4.751 MB / 0.6799 GB, free: 109 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007283/2.016, allocations: 381.9 kB / 0.6802 GB, free: 109 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001618/2.018, allocations: 382.9 kB / 0.6806 GB, free: 109 MB / 474.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 (747): * Single equations (assignments): 738 * 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 {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 prepare postOptimizeDAE: time 0.00652/2.024, allocations: 2.064 MB / 0.6826 GB, free: 108.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001094/2.026, allocations: 342 kB / 0.6829 GB, free: 107.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01065/2.036, allocations: 2.948 MB / 0.6858 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008761/2.045, allocations: 2.466 MB / 0.6882 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.543e-05/2.045, allocations: 3.812 kB / 0.6882 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.196e-05/2.045, allocations: 3.75 kB / 0.6882 GB, free: 106.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02942/2.075, allocations: 9.22 MB / 0.6972 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.311e-05/2.075, allocations: 6.906 kB / 0.6972 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002367/2.077, allocations: 251.2 kB / 0.6975 GB, free: 102.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00531/2.083, allocations: 1.011 MB / 0.6985 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004386/2.083, allocations: 40.91 kB / 0.6985 GB, free: 102.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008286/2.091, allocations: 4.921 MB / 0.7033 GB, free: 99.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001206/2.093, allocations: 1.471 MB / 0.7047 GB, free: 97.68 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/2.107, allocations: 5.605 MB / 0.7102 GB, free: 95.08 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/2.108, allocations: 398.8 kB / 0.7106 GB, free: 94.77 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00142/2.11, allocations: 41.19 kB / 0.7106 GB, free: 94.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003284/2.113, allocations: 130.7 kB / 0.7108 GB, free: 94.74 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006384/2.114, allocations: 101.5 kB / 0.7109 GB, free: 94.72 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001867/2.114, allocations: 53.67 kB / 0.7109 GB, free: 94.71 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006277/2.12, allocations: 2.399 MB / 0.7132 GB, free: 93.5 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.61e-07/2.12, allocations: 3.781 kB / 0.7132 GB, free: 93.5 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007427/2.128, allocations: 1.011 MB / 0.7142 GB, free: 92.5 MB / 474.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.01407/2.142, allocations: 7.087 MB / 0.7212 GB, free: 86.07 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01405/2.156, allocations: 5.419 MB / 0.7264 GB, free: 81.34 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.154e-05/2.156, allocations: 0 / 0.7264 GB, free: 81.34 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006854/2.163, allocations: 2.122 MB / 0.7285 GB, free: 79.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003887/2.167, allocations: 418 kB / 0.7289 GB, free: 79.15 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4512/2.618, allocations: 127 MB / 0.8529 GB, free: 135.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007283/2.625, allocations: 3.295 MB / 0.8562 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00438/2.63, allocations: 1.893 MB / 0.858 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.443e-06/2.63, allocations: 0 / 0.858 GB, free: 135.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.793/7.422, allocations: 147.7 MB / 1.002 GB, free: 17.71 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Parts.BodyShape_res.mat does not exist to compare? outputFormat=mat