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.Spring.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.Spring,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.423/2.423, allocations: 235 MB / 248 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.358e-05/4.382e-05, allocations: 4 kB / 309.8 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4928/0.4929, allocations: 54.86 MB / 364.6 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1937/0.6867, allocations: 97.32 MB / 461.9 MB, free: 15.16 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.687, allocations: 75.95 kB / 462 MB, free: 15.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7047/1.392, allocations: 84.84 MB / 0.534 GB, free: 105.1 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.114e-06/1.392, allocations: 0 / 0.534 GB, free: 105.1 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003131/1.392, allocations: 83.7 kB / 0.5341 GB, free: 105.1 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: 1500 * Number of variables: 1500 Notification: Performance of Generate backend data structure: time 0.0189/1.411, allocations: 3.901 MB / 0.5379 GB, free: 103.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.258e-05/1.411, allocations: 9.688 kB / 0.5379 GB, free: 103.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004187/1.415, allocations: 0.7632 MB / 0.5387 GB, free: 103.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02083/1.436, allocations: 2.435 MB / 0.5411 GB, free: 103.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02108/1.457, allocations: 5.132 MB / 0.5461 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006518/1.458, allocations: 321.3 kB / 0.5464 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002912/1.461, allocations: 428.8 kB / 0.5468 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03345/1.495, allocations: 10.35 MB / 0.5569 GB, free: 99.57 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003985/1.495, allocations: 69.33 kB / 0.557 GB, free: 99.56 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002159/1.497, allocations: 212 kB / 0.5572 GB, free: 99.56 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002586/1.5, allocations: 1.009 MB / 0.5582 GB, free: 99.55 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03027/1.53, allocations: 7.965 MB / 0.5659 GB, free: 99.15 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07992/1.61, allocations: 47.43 MB / 0.6122 GB, free: 62.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01192/1.622, allocations: 3.015 MB / 0.6152 GB, free: 60.69 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002409/1.625, allocations: 0.9653 MB / 0.6161 GB, free: 60.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01224/1.637, allocations: 5.216 MB / 0.6212 GB, free: 57.02 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/1.637, allocations: 53.25 kB / 0.6213 GB, free: 56.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=134): time 5.601e-06/1.637, allocations: 0 / 0.6213 GB, free: 56.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=146): time 0.03207/1.669, allocations: 8.262 MB / 0.6293 GB, free: 51.84 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.146e-05/1.669, allocations: 196.6 kB / 0.6295 GB, free: 51.61 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007114/1.676, allocations: 3.545 MB / 0.633 GB, free: 48.43 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002924/1.677, allocations: 45.7 kB / 0.633 GB, free: 48.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002329/1.679, allocations: 3.083 MB / 0.6361 GB, free: 45.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007856/1.68, allocations: 0.59 MB / 0.6366 GB, free: 45.07 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004609/1.68, allocations: 116 kB / 0.6367 GB, free: 44.96 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003369/1.681, allocations: 0.5594 MB / 0.6373 GB, free: 44.46 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003505/1.684, allocations: 1.521 MB / 0.6388 GB, free: 43.08 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005702/1.69, allocations: 5.313 MB / 0.644 GB, free: 36.09 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006096/1.696, allocations: 2.839 MB / 0.6467 GB, free: 33.65 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001027/1.696, allocations: 44.78 kB / 0.6468 GB, free: 33.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01629/1.712, allocations: 6.457 MB / 0.6531 GB, free: 27.86 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/1.713, allocations: 64 kB / 0.6531 GB, free: 27.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001712/1.713, allocations: 132.9 kB / 0.6533 GB, free: 27.66 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002099/1.713, allocations: 200 kB / 0.6535 GB, free: 27.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008487/1.722, allocations: 1.418 MB / 0.6548 GB, free: 26.22 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002997/1.722, allocations: 263.4 kB / 0.6551 GB, free: 25.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007107/1.729, allocations: 383 kB / 0.6555 GB, free: 25.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001066/1.73, allocations: 367.7 kB / 0.6558 GB, free: 25.31 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 36 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (746): * Single equations (assignments): 743 * 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.0009955/1.731, allocations: 0.5672 MB / 0.6564 GB, free: 24.74 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007566/1.732, allocations: 350.7 kB / 0.6567 GB, free: 24.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00282/1.735, allocations: 1.223 MB / 0.6579 GB, free: 23.34 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.951e-05/1.735, allocations: 16 kB / 0.6579 GB, free: 23.32 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/1.735, allocations: 0 / 0.6579 GB, free: 23.32 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.877e-05/1.735, allocations: 10.94 kB / 0.6579 GB, free: 23.32 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01304/1.748, allocations: 5.531 MB / 0.6633 GB, free: 18.48 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.507e-05/1.748, allocations: 16 kB / 0.6633 GB, free: 18.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/1.75, allocations: 259.1 kB / 0.6636 GB, free: 18.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.244e-05/1.75, allocations: 27.84 kB / 0.6636 GB, free: 18.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/1.75, allocations: 48 kB / 0.6637 GB, free: 18.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.482e-05/1.75, allocations: 31.81 kB / 0.6637 GB, free: 18.15 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.719e-05/1.75, allocations: 27.55 kB / 0.6637 GB, free: 18.13 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005213/1.755, allocations: 4.835 MB / 0.6684 GB, free: 12.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001446/1.757, allocations: 0.5241 MB / 0.6689 GB, free: 12.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004861/1.757, allocations: 51.8 kB / 0.669 GB, free: 12.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002152/1.759, allocations: 88.28 kB / 0.6691 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/1.76, allocations: 139.9 kB / 0.6692 GB, free: 12.08 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/1.76, allocations: 59.56 kB / 0.6693 GB, free: 12.02 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005572/1.765, allocations: 2.445 MB / 0.6717 GB, free: 9.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1.765, allocations: 0 / 0.6717 GB, free: 9.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006339/1.772, allocations: 0.8867 MB / 0.6725 GB, free: 8.953 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 69 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (134): * Single equations (assignments): 131 * 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.008003/1.78, allocations: 9.214 MB / 0.6815 GB, free: 15.52 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009977/1.79, allocations: 3.551 MB / 0.685 GB, free: 12 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.076e-05/1.79, allocations: 4.875 kB / 0.685 GB, free: 11.99 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001841/1.792, allocations: 0.6904 MB / 0.6857 GB, free: 11.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004234/1.796, allocations: 430.4 kB / 0.6861 GB, free: 10.89 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0321/1.828, allocations: 8.738 MB / 0.6946 GB, free: 1.902 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007817/1.836, allocations: 3.219 MB / 0.6978 GB, free: 14.67 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004851/1.841, allocations: 1.874 MB / 0.6996 GB, free: 12.79 MB / 490.7 MB Notification: Performance of SimCode: time 1.283e-06/1.841, allocations: 0 / 0.6996 GB, free: 12.79 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.784/6.625, allocations: 75.18 MB / 0.773 GB, free: 105.3 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat