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.377/2.377, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000445/0.000445, allocations: 12 kB / 314.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3702, allocations: 54.87 MB / 369.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1918/0.5621, allocations: 97.41 MB / 466.8 MB, free: 9.164 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003261/0.5625, allocations: 75.97 kB / 466.8 MB, free: 9.09 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7113/1.274, allocations: 84.79 MB / 0.5387 GB, free: 33.23 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.274, allocations: 3.938 kB / 0.5387 GB, free: 33.22 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003432/1.274, allocations: 87.94 kB / 0.5388 GB, free: 33.14 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: 1500 * Number of variables: 1500 Notification: Performance of Generate backend data structure: time 0.02086/1.295, allocations: 4.148 MB / 0.5428 GB, free: 28.92 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.984e-05/1.295, allocations: 8.031 kB / 0.5429 GB, free: 28.91 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004703/1.3, allocations: 0.7583 MB / 0.5436 GB, free: 28.14 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02791/1.328, allocations: 2.432 MB / 0.546 GB, free: 25.7 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02536/1.353, allocations: 5.141 MB / 0.551 GB, free: 20.49 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006161/1.354, allocations: 324.5 kB / 0.5513 GB, free: 20.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003271/1.357, allocations: 431.8 kB / 0.5517 GB, free: 19.75 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04133/1.399, allocations: 10.49 MB / 0.5619 GB, free: 8.145 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002658/1.399, allocations: 63.34 kB / 0.562 GB, free: 8.082 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001718/1.401, allocations: 211.9 kB / 0.5622 GB, free: 7.875 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002301/1.403, allocations: 1.01 MB / 0.5632 GB, free: 6.859 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02626/1.429, allocations: 8.222 MB / 0.5712 GB, free: 14.61 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09124/1.521, allocations: 47.43 MB / 0.6175 GB, free: 13.59 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01948/1.54, allocations: 3.052 MB / 0.6205 GB, free: 10.37 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01866/1.559, allocations: 5.2 MB / 0.6256 GB, free: 4.914 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.509e-05/1.559, allocations: 59.2 kB / 0.6257 GB, free: 4.848 MB / 458.7 MB Notification: Performance of pre-optimization done (n=134): time 8.807e-06/1.559, allocations: 0 / 0.6257 GB, free: 4.848 MB / 458.7 MB Notification: Performance of matching and sorting (n=146): time 0.05587/1.615, allocations: 9.221 MB / 0.6347 GB, free: 11.45 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001405/1.615, allocations: 196.9 kB / 0.6349 GB, free: 11.21 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01109/1.626, allocations: 3.642 MB / 0.6384 GB, free: 7.547 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003799/1.627, allocations: 45.7 kB / 0.6385 GB, free: 7.496 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003787/1.631, allocations: 3.081 MB / 0.6415 GB, free: 4.375 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00104/1.632, allocations: 0.5903 MB / 0.642 GB, free: 3.777 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000744/1.632, allocations: 116 kB / 0.6422 GB, free: 3.664 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005397/1.633, allocations: 0.5585 MB / 0.6427 GB, free: 3.098 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005725/1.639, allocations: 1.624 MB / 0.6443 GB, free: 1.469 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3411/1.98, allocations: 5.42 MB / 0.6496 GB, free: 115 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008638/1.989, allocations: 2.898 MB / 0.6524 GB, free: 115 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002716/1.989, allocations: 38.8 kB / 0.6524 GB, free: 115 MB / 474.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02041/2.009, allocations: 6.661 MB / 0.6589 GB, free: 114.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001589/2.01, allocations: 63 kB / 0.659 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000232/2.01, allocations: 140.4 kB / 0.6591 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002262/2.01, allocations: 195.8 kB / 0.6593 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008529/2.019, allocations: 1.419 MB / 0.6607 GB, free: 114.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002652/2.019, allocations: 264.5 kB / 0.661 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007355/2.026, allocations: 377.4 kB / 0.6613 GB, free: 114.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001524/2.028, allocations: 368.3 kB / 0.6617 GB, free: 114.3 MB / 474.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 () * Number of clocked 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.00623/2.034, allocations: 2.016 MB / 0.6636 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008547/2.035, allocations: 344.6 kB / 0.664 GB, free: 114.1 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003787/2.039, allocations: 1.248 MB / 0.6652 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.077e-05/2.039, allocations: 14.5 kB / 0.6652 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/2.039, allocations: 2.875 kB / 0.6652 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-05/2.039, allocations: 6.828 kB / 0.6652 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01688/2.056, allocations: 5.552 MB / 0.6706 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.506e-05/2.056, allocations: 19.12 kB / 0.6707 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002406/2.058, allocations: 257.3 kB / 0.6709 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.734e-05/2.059, allocations: 24.03 kB / 0.6709 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002172/2.059, allocations: 45.48 kB / 0.671 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.42e-05/2.059, allocations: 38.17 kB / 0.671 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.449e-05/2.059, allocations: 24.94 kB / 0.671 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008414/2.067, allocations: 4.872 MB / 0.6758 GB, free: 109.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002398/2.07, allocations: 0.5279 MB / 0.6763 GB, free: 109.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001342/2.071, allocations: 46.62 kB / 0.6763 GB, free: 109.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01413/2.085, allocations: 90.44 kB / 0.6764 GB, free: 109.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005348/2.088, allocations: 131.3 kB / 0.6766 GB, free: 109.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000205/2.088, allocations: 67.33 kB / 0.6766 GB, free: 109.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.01786/2.106, allocations: 2.54 MB / 0.6791 GB, free: 109.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.32e-07/2.106, allocations: 0 / 0.6791 GB, free: 109.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0106/2.117, allocations: 0.8892 MB / 0.68 GB, free: 109.3 MB / 474.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 () * Number of clocked 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.009607/2.126, allocations: 9.234 MB / 0.689 GB, free: 101.6 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01234/2.139, allocations: 3.676 MB / 0.6926 GB, free: 100.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.034e-05/2.139, allocations: 3.25 kB / 0.6926 GB, free: 100.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002188/2.141, allocations: 0.7031 MB / 0.6933 GB, free: 100.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004673/2.146, allocations: 434.7 kB / 0.6937 GB, free: 99.95 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05797/2.204, allocations: 113 MB / 0.8041 GB, free: 4.938 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007378/2.211, allocations: 3.214 MB / 0.8072 GB, free: 3.707 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004875/2.216, allocations: 1.868 MB / 0.809 GB, free: 2.23 MB / 490.7 MB Notification: Performance of SimCode: time 4.409e-06/2.216, allocations: 0 / 0.809 GB, free: 2.23 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.291/6.507, allocations: 74.95 MB / 0.8822 GB, free: 141.9 MB / 0.4948 GB 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