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.ForceWithTwoMasses.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.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.43/2.43, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.286e-05/2.289e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3645/0.3645, allocations: 54.86 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1871/0.5517, allocations: 99.1 MB / 457.2 MB, free: 11.61 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003572/0.5521, allocations: 75.95 kB / 457.3 MB, free: 11.53 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6293/1.181, allocations: 74.86 MB / 0.5197 GB, free: 48.96 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.445e-06/1.182, allocations: 0 / 0.5197 GB, free: 48.96 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002076/1.182, allocations: 75.98 kB / 0.5198 GB, free: 48.88 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: 1315 * Number of variables: 1315 Notification: Performance of Generate backend data structure: time 0.01444/1.196, allocations: 3.581 MB / 0.5233 GB, free: 45.24 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/1.196, allocations: 8.031 kB / 0.5233 GB, free: 45.23 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0309/1.227, allocations: 4.32 MB / 0.5275 GB, free: 40.9 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01611/1.243, allocations: 4.46 MB / 0.5318 GB, free: 36.38 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/1.244, allocations: 116.5 kB / 0.5319 GB, free: 36.27 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001195/1.245, allocations: 215.9 kB / 0.5322 GB, free: 36.05 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01138/1.256, allocations: 5.14 MB / 0.5372 GB, free: 30.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0186/1.275, allocations: 8.204 MB / 0.5452 GB, free: 21.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002235/1.275, allocations: 59.41 kB / 0.5452 GB, free: 21.64 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008485/1.276, allocations: 28 kB / 0.5453 GB, free: 21.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001807/1.278, allocations: 0.8883 MB / 0.5461 GB, free: 20.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06175/1.34, allocations: 43.37 MB / 0.5885 GB, free: 7.789 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006064/1.346, allocations: 2.63 MB / 0.5911 GB, free: 5.016 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003426/1.349, allocations: 1.485 MB / 0.5925 GB, free: 3.523 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001706/1.351, allocations: 0.8572 MB / 0.5933 GB, free: 2.52 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.842e-05/1.351, allocations: 51.88 kB / 0.5934 GB, free: 2.457 MB / 426.7 MB Notification: Performance of pre-optimization done (n=159): time 5.42e-06/1.351, allocations: 0 / 0.5934 GB, free: 2.457 MB / 426.7 MB Notification: Performance of matching and sorting (n=193): time 0.07387/1.425, allocations: 16.51 MB / 0.6095 GB, free: 1.816 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001406/1.425, allocations: 201.2 kB / 0.6097 GB, free: 1.578 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007555/1.433, allocations: 2.878 MB / 0.6125 GB, free: 14.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004985/1.433, allocations: 25.7 kB / 0.6125 GB, free: 14.67 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003489/1.437, allocations: 2.833 MB / 0.6153 GB, free: 11.79 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001428/1.438, allocations: 0.7171 MB / 0.616 GB, free: 11.07 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007449/1.439, allocations: 0 / 0.616 GB, free: 11.07 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006036/1.44, allocations: 0.5709 MB / 0.6166 GB, free: 10.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005502/1.445, allocations: 1.921 MB / 0.6184 GB, free: 8.559 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009546/1.455, allocations: 5.553 MB / 0.6239 GB, free: 1.164 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3683/1.823, allocations: 3.242 MB / 0.627 GB, free: 110.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001533/1.823, allocations: 37.22 kB / 0.6271 GB, free: 110.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.02942/1.853, allocations: 8.333 MB / 0.6352 GB, free: 109.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/1.853, allocations: 63.38 kB / 0.6353 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001913/1.853, allocations: 127.5 kB / 0.6354 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009314/1.862, allocations: 1.564 MB / 0.6369 GB, free: 109.8 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008159/1.871, allocations: 1.336 MB / 0.6382 GB, free: 109.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02047/1.891, allocations: 8.669 MB / 0.6467 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006429/1.898, allocations: 210.9 kB / 0.6469 GB, free: 108.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001555/1.899, allocations: 369.4 kB / 0.6472 GB, free: 108.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 593 * Number of states: 0 () * Number of discrete variables: 33 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (724): * Single equations (assignments): 720 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001795/1.901, allocations: 435.9 kB / 0.6477 GB, free: 108 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01697/1.918, allocations: 4.375 MB / 0.6519 GB, free: 107.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001078/1.919, allocations: 318 kB / 0.6522 GB, free: 107.7 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01551/1.935, allocations: 3.747 MB / 0.6559 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.405e-05/1.935, allocations: 18.47 kB / 0.6559 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/1.935, allocations: 7.719 kB / 0.6559 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.686e-05/1.935, allocations: 11.02 kB / 0.6559 GB, free: 107.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02713/1.962, allocations: 7.66 MB / 0.6634 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.506e-05/1.962, allocations: 0 / 0.6634 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002437/1.965, allocations: 248 kB / 0.6636 GB, free: 104.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008081/1.973, allocations: 1.216 MB / 0.6648 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004219/1.973, allocations: 6.734 kB / 0.6648 GB, free: 104.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01613/1.989, allocations: 6.883 MB / 0.6716 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/1.989, allocations: 0 / 0.6716 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01862/2.008, allocations: 6.231 MB / 0.6776 GB, free: 97.5 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002159/2.01, allocations: 0.5807 MB / 0.6782 GB, free: 96.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007674/2.011, allocations: 7.953 kB / 0.6782 GB, free: 96.95 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/2.014, allocations: 63.28 kB / 0.6783 GB, free: 96.91 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005479/2.014, allocations: 121.5 kB / 0.6784 GB, free: 96.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001986/2.014, allocations: 44 kB / 0.6784 GB, free: 96.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004068/2.018, allocations: 1.914 MB / 0.6803 GB, free: 95.14 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.245e-06/2.018, allocations: 0 / 0.6803 GB, free: 95.14 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007011/2.025, allocations: 0.8376 MB / 0.6811 GB, free: 94.32 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (138): * Single equations (assignments): 134 * 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%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0195/2.045, allocations: 7.21 MB / 0.6882 GB, free: 88.06 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01053/2.056, allocations: 4.736 MB / 0.6928 GB, free: 83.77 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.838e-06/2.056, allocations: 2.375 kB / 0.6928 GB, free: 83.77 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00322/2.059, allocations: 1.561 MB / 0.6943 GB, free: 82.33 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002654/2.062, allocations: 290.2 kB / 0.6946 GB, free: 82.07 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02595/2.088, allocations: 8.281 MB / 0.7027 GB, free: 74.93 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006628/2.094, allocations: 3.044 MB / 0.7057 GB, free: 72.59 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004092/2.098, allocations: 1.692 MB / 0.7073 GB, free: 71.02 MB / 458.7 MB Notification: Performance of SimCode: time 1.463e-06/2.098, allocations: 0 / 0.7073 GB, free: 71.02 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.12/6.218, allocations: 87.76 MB / 0.793 GB, free: 1.781 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat