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: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadModel(ModelicaTest): time 2.043/2.043, allocations: 209.2 MB / 225.4 MB, free: 0.6094 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000436/0.0004364, allocations: 12 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3953, allocations: 48.7 MB / 331.8 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1699/0.5653, allocations: 90.7 MB / 422.5 MB, free: 3.734 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.5656, allocations: 79.95 kB / 422.6 MB, free: 3.656 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6507/1.216, allocations: 85.62 MB / 0.4963 GB, free: 88.44 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.854e-06/1.216, allocations: 0 / 0.4963 GB, free: 88.44 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002991/1.217, allocations: 79.12 kB / 0.4964 GB, free: 88.44 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.01527/1.232, allocations: 4.145 MB / 0.5004 GB, free: 86.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/1.232, allocations: 9.531 kB / 0.5004 GB, free: 86.55 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01942/1.251, allocations: 2.438 MB / 0.5028 GB, free: 86.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01821/1.27, allocations: 5.148 MB / 0.5078 GB, free: 84.43 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004415/1.27, allocations: 328.3 kB / 0.5081 GB, free: 84.31 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002426/1.273, allocations: 428.8 kB / 0.5085 GB, free: 84.18 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03102/1.304, allocations: 10.52 MB / 0.5188 GB, free: 75.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002963/1.304, allocations: 59.5 kB / 0.5189 GB, free: 75.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002048/1.306, allocations: 207.3 kB / 0.5191 GB, free: 74.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00244/1.309, allocations: 1.013 MB / 0.5201 GB, free: 73.9 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02621/1.335, allocations: 8.221 MB / 0.5281 GB, free: 65.66 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06478/1.4, allocations: 47.44 MB / 0.5744 GB, free: 16.86 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/1.412, allocations: 3.051 MB / 0.5774 GB, free: 13.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/1.424, allocations: 5.213 MB / 0.5825 GB, free: 8.215 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/1.424, allocations: 51.16 kB / 0.5825 GB, free: 8.156 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 5.46e-06/1.424, allocations: 0 / 0.5825 GB, free: 8.156 MB / 394.7 MB Notification: Performance of matching and sorting (n=146): time 0.03602/1.46, allocations: 9.22 MB / 0.5915 GB, free: 14.76 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001249/1.46, allocations: 196.9 kB / 0.5917 GB, free: 14.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01096/1.471, allocations: 4.071 MB / 0.5957 GB, free: 10.43 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003292/1.471, allocations: 49.7 kB / 0.5958 GB, free: 10.37 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00347/1.475, allocations: 3.078 MB / 0.5988 GB, free: 7.301 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001041/1.476, allocations: 0.5897 MB / 0.5993 GB, free: 6.715 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007647/1.477, allocations: 120 kB / 0.5995 GB, free: 6.602 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006016/1.477, allocations: 0.5548 MB / 0.6 GB, free: 6.035 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005798/1.483, allocations: 1.624 MB / 0.6016 GB, free: 4.406 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009623/1.493, allocations: 5.451 MB / 0.6069 GB, free: 13.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008385/1.501, allocations: 2.909 MB / 0.6097 GB, free: 10.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001593/1.501, allocations: 40 kB / 0.6098 GB, free: 10.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02081/1.522, allocations: 6.653 MB / 0.6163 GB, free: 3.426 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/1.522, allocations: 64.19 kB / 0.6163 GB, free: 3.363 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002166/1.523, allocations: 140 kB / 0.6165 GB, free: 3.227 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002807/1.523, allocations: 199.8 kB / 0.6167 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008927/1.532, allocations: 1.419 MB / 0.618 GB, free: 1.613 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003948/1.532, allocations: 266.5 kB / 0.6183 GB, free: 1.355 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007235/1.54, allocations: 379.4 kB / 0.6187 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001495/1.541, allocations: 372 kB / 0.619 GB, free: 0.6211 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.3259/1.867, allocations: 1.995 MB / 0.621 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009118/1.868, allocations: 354.2 kB / 0.6213 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004113/1.872, allocations: 1.245 MB / 0.6225 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.895e-05/1.872, allocations: 18.06 kB / 0.6225 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/1.872, allocations: 1.156 kB / 0.6225 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.99e-05/1.872, allocations: 7.781 kB / 0.6225 GB, free: 105.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01702/1.889, allocations: 5.551 MB / 0.628 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.695e-05/1.889, allocations: 19.23 kB / 0.628 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001892/1.891, allocations: 263.4 kB / 0.6282 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.207e-05/1.891, allocations: 24.25 kB / 0.6283 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001276/1.892, allocations: 49.48 kB / 0.6283 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.701e-05/1.892, allocations: 27.16 kB / 0.6283 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.781e-05/1.892, allocations: 26.09 kB / 0.6284 GB, free: 104.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006254/1.898, allocations: 3.081 MB / 0.6314 GB, free: 103.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002009/1.9, allocations: 0.5279 MB / 0.6319 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008108/1.901, allocations: 54.58 kB / 0.6319 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002311/1.903, allocations: 90.72 kB / 0.632 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002581/1.903, allocations: 131.2 kB / 0.6321 GB, free: 103.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001617/1.904, allocations: 59.22 kB / 0.6322 GB, free: 103.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.009039/1.913, allocations: 2.541 MB / 0.6347 GB, free: 103.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.913, allocations: 1.594 kB / 0.6347 GB, free: 103.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00774/1.92, allocations: 0.8945 MB / 0.6356 GB, free: 103.3 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.0007797/1.921, allocations: 198.8 kB / 0.6358 GB, free: 103.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009251/1.93, allocations: 3.678 MB / 0.6393 GB, free: 102.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.308e-05/1.931, allocations: 1.75 kB / 0.6393 GB, free: 102.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001756/1.932, allocations: 0.7052 MB / 0.64 GB, free: 102.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003651/1.936, allocations: 418.4 kB / 0.6404 GB, free: 102.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02389/1.96, allocations: 10.61 MB / 0.6508 GB, free: 96.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006069/1.966, allocations: 3.223 MB / 0.6539 GB, free: 95.71 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/1.967, allocations: 280.7 kB / 0.6542 GB, free: 95.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.433e-06/1.967, allocations: 0 / 0.6542 GB, free: 95.7 MB / 426.7 MB Notification: Performance of Templates: time 0.1068/2.074, allocations: 51.01 MB / 0.704 GB, free: 64.63 MB / 426.7 MB