Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring.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.Forces.Spring,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_Spring",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.046/2.046, allocations: 209.2 MB / 224.8 MB, free: 0.6055 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006781/0.0006782, allocations: 16 kB / 282.7 MB, free: 9.547 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4293/0.43, allocations: 48.7 MB / 331.4 MB, free: 6.414 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1853/0.6154, allocations: 90.71 MB / 422.1 MB, free: 3.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003582/0.6158, allocations: 75.97 kB / 422.1 MB, free: 3.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6593/1.275, allocations: 84.76 MB / 0.495 GB, free: 91.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.317e-06/1.275, allocations: 3.344 kB / 0.495 GB, free: 91.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002434/1.275, allocations: 81.69 kB / 0.4951 GB, free: 91.21 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.01548/1.291, allocations: 4.148 MB / 0.4992 GB, free: 89.32 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/1.291, allocations: 16.58 kB / 0.4992 GB, free: 89.32 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003347/1.294, allocations: 0.7544 MB / 0.4999 GB, free: 89.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01938/1.314, allocations: 2.436 MB / 0.5023 GB, free: 88.45 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01755/1.331, allocations: 5.148 MB / 0.5073 GB, free: 85.72 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004743/1.332, allocations: 320.3 kB / 0.5076 GB, free: 85.59 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002525/1.334, allocations: 430 kB / 0.508 GB, free: 85.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03125/1.366, allocations: 10.48 MB / 0.5183 GB, free: 76.05 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002502/1.366, allocations: 71.34 kB / 0.5183 GB, free: 75.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001492/1.368, allocations: 212.4 kB / 0.5185 GB, free: 75.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002287/1.37, allocations: 1.014 MB / 0.5195 GB, free: 74.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0258/1.396, allocations: 8.221 MB / 0.5276 GB, free: 66.55 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07502/1.471, allocations: 47.44 MB / 0.5739 GB, free: 17.74 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01212/1.483, allocations: 3.053 MB / 0.5769 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0112/1.494, allocations: 5.209 MB / 0.582 GB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.179e-05/1.494, allocations: 51.2 kB / 0.582 GB, free: 9.043 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 5.37e-06/1.494, allocations: 0 / 0.582 GB, free: 9.043 MB / 394.7 MB Notification: Performance of matching and sorting (n=146): time 0.0361/1.53, allocations: 9.218 MB / 0.591 GB, free: 15.65 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/1.531, allocations: 200.9 kB / 0.5912 GB, free: 15.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01089/1.542, allocations: 3.646 MB / 0.5948 GB, free: 11.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003332/1.542, allocations: 48.67 kB / 0.5948 GB, free: 11.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003754/1.546, allocations: 3.069 MB / 0.5978 GB, free: 8.629 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001053/1.547, allocations: 0.595 MB / 0.5984 GB, free: 8.039 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007766/1.548, allocations: 116 kB / 0.5985 GB, free: 7.926 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0007226/1.548, allocations: 0.5587 MB / 0.599 GB, free: 7.355 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005724/1.554, allocations: 1.624 MB / 0.6006 GB, free: 5.727 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009716/1.564, allocations: 5.42 MB / 0.6059 GB, free: 14.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008527/1.573, allocations: 2.904 MB / 0.6088 GB, free: 11.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001309/1.573, allocations: 40 kB / 0.6088 GB, free: 11.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02101/1.594, allocations: 6.665 MB / 0.6153 GB, free: 4.777 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/1.594, allocations: 64 kB / 0.6154 GB, free: 4.715 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002482/1.594, allocations: 136 kB / 0.6155 GB, free: 4.582 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002797/1.594, allocations: 200 kB / 0.6157 GB, free: 4.387 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008972/1.603, allocations: 1.423 MB / 0.6171 GB, free: 2.961 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003642/1.604, allocations: 266.2 kB / 0.6173 GB, free: 2.703 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007188/1.611, allocations: 375.5 kB / 0.6177 GB, free: 2.336 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001538/1.613, allocations: 374.4 kB / 0.618 GB, free: 1.973 MB / 426.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.3066/1.919, allocations: 1.998 MB / 0.62 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001072/1.92, allocations: 343.8 kB / 0.6203 GB, free: 107.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004345/1.925, allocations: 1.252 MB / 0.6215 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.644e-05/1.925, allocations: 17.06 kB / 0.6216 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.579e-05/1.925, allocations: 3.578 kB / 0.6216 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-05/1.925, allocations: 7.062 kB / 0.6216 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01731/1.942, allocations: 5.552 MB / 0.627 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.653e-05/1.942, allocations: 15.56 kB / 0.627 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001932/1.944, allocations: 263.1 kB / 0.6273 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.236e-05/1.944, allocations: 31.33 kB / 0.6273 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000231/1.945, allocations: 46.27 kB / 0.6273 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.402e-05/1.945, allocations: 27.78 kB / 0.6274 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.239e-05/1.945, allocations: 28.09 kB / 0.6274 GB, free: 106.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007452/1.952, allocations: 4.87 MB / 0.6321 GB, free: 103.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002161/1.954, allocations: 0.5237 MB / 0.6327 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001221/1.956, allocations: 46.56 kB / 0.6327 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003218/1.959, allocations: 88.47 kB / 0.6328 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004226/1.959, allocations: 137.5 kB / 0.6329 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/1.96, allocations: 57.72 kB / 0.633 GB, free: 103.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008434/1.968, allocations: 2.549 MB / 0.6355 GB, free: 103 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.968, allocations: 0 / 0.6355 GB, free: 103 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00777/1.976, allocations: 0.8923 MB / 0.6363 GB, free: 103 MB / 426.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.008303/1.984, allocations: 9.221 MB / 0.6453 GB, free: 95.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00942/1.994, allocations: 3.678 MB / 0.6489 GB, free: 95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.167e-05/1.994, allocations: 7.219 kB / 0.6489 GB, free: 95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0017/1.996, allocations: 0.6947 MB / 0.6496 GB, free: 94.78 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003825/1.999, allocations: 422.7 kB / 0.65 GB, free: 94.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05935/2.059, allocations: 113.1 MB / 0.7604 GB, free: 15.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007698/2.067, allocations: 3.23 MB / 0.7636 GB, free: 14.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005014/2.072, allocations: 1.862 MB / 0.7654 GB, free: 13.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.293e-06/2.072, allocations: 0 / 0.7654 GB, free: 13.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.282/6.354, allocations: 74.41 MB / 0.8381 GB, free: 128.5 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat does not exist to compare? outputFormat=mat