Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadModel(ModelicaTest): time 2.289/2.289, allocations: 235 MB / 248.1 MB, free: 14.37 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.344e-05/2.356e-05, allocations: 0 / 309.7 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3197, allocations: 54.86 MB / 364.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1458/0.4655, allocations: 97.33 MB / 461.9 MB, free: 15.13 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.4658, allocations: 74.53 kB / 461.9 MB, free: 15.06 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5994/1.065, allocations: 84.83 MB / 0.5339 GB, free: 105.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.421e-06/1.065, allocations: 0 / 0.5339 GB, free: 105.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002304/1.066, allocations: 83.16 kB / 0.534 GB, free: 105.4 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.0118/1.077, allocations: 3.9 MB / 0.5378 GB, free: 103.7 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.829e-05/1.077, allocations: 13.09 kB / 0.5378 GB, free: 103.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01379/1.091, allocations: 2.442 MB / 0.5402 GB, free: 103.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01522/1.106, allocations: 5.138 MB / 0.5453 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004835/1.107, allocations: 319.6 kB / 0.5456 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001891/1.109, allocations: 428.1 kB / 0.546 GB, free: 102.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02452/1.133, allocations: 10.35 MB / 0.5561 GB, free: 99.91 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002498/1.134, allocations: 69.48 kB / 0.5561 GB, free: 99.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001463/1.135, allocations: 214.4 kB / 0.5563 GB, free: 99.91 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001773/1.137, allocations: 1.009 MB / 0.5573 GB, free: 99.89 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01934/1.156, allocations: 7.965 MB / 0.5651 GB, free: 99.75 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05186/1.208, allocations: 47.43 MB / 0.6114 GB, free: 62.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00922/1.218, allocations: 3.018 MB / 0.6144 GB, free: 61.27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001911/1.22, allocations: 0.9636 MB / 0.6153 GB, free: 60.89 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009764/1.229, allocations: 5.213 MB / 0.6204 GB, free: 57.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.452e-05/1.229, allocations: 46.25 kB / 0.6204 GB, free: 57.56 MB / 458.7 MB Notification: Performance of pre-optimization done (n=134): time 5.706e-06/1.229, allocations: 0 / 0.6204 GB, free: 57.56 MB / 458.7 MB Notification: Performance of matching and sorting (n=146): time 0.02671/1.256, allocations: 8.266 MB / 0.6285 GB, free: 52.61 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.397e-05/1.256, allocations: 204.1 kB / 0.6287 GB, free: 52.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007709/1.264, allocations: 3.534 MB / 0.6322 GB, free: 49.21 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002483/1.264, allocations: 45.7 kB / 0.6322 GB, free: 49.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002229/1.267, allocations: 3.087 MB / 0.6352 GB, free: 46.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006856/1.267, allocations: 0.59 MB / 0.6358 GB, free: 45.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005428/1.268, allocations: 113 kB / 0.6359 GB, free: 45.73 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004082/1.268, allocations: 0.5647 MB / 0.6365 GB, free: 45.23 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003045/1.271, allocations: 1.518 MB / 0.6379 GB, free: 43.85 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005311/1.277, allocations: 5.32 MB / 0.6431 GB, free: 36.86 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005268/1.282, allocations: 2.843 MB / 0.6459 GB, free: 34.42 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001068/1.282, allocations: 36 kB / 0.6459 GB, free: 34.39 MB / 458.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01422/1.296, allocations: 6.456 MB / 0.6522 GB, free: 28.64 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/1.296, allocations: 67.12 kB / 0.6523 GB, free: 28.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000144/1.297, allocations: 136 kB / 0.6524 GB, free: 28.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002149/1.297, allocations: 197.4 kB / 0.6526 GB, free: 28.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005664/1.303, allocations: 1.419 MB / 0.654 GB, free: 27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002308/1.303, allocations: 267.3 kB / 0.6543 GB, free: 26.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006251/1.309, allocations: 372.2 kB / 0.6546 GB, free: 26.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/1.31, allocations: 375.7 kB / 0.655 GB, free: 26.09 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.001186/1.311, allocations: 0.5634 MB / 0.6555 GB, free: 25.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007292/1.312, allocations: 351.4 kB / 0.6559 GB, free: 25.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002819/1.315, allocations: 1.219 MB / 0.6571 GB, free: 24.12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.427e-05/1.315, allocations: 16 kB / 0.6571 GB, free: 24.11 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/1.315, allocations: 7.375 kB / 0.6571 GB, free: 24.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/1.315, allocations: 3.281 kB / 0.6571 GB, free: 24.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01256/1.328, allocations: 5.531 MB / 0.6625 GB, free: 19.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.059e-05/1.328, allocations: 18.69 kB / 0.6625 GB, free: 19.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001279/1.329, allocations: 269 kB / 0.6628 GB, free: 19.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.157e-05/1.329, allocations: 24 kB / 0.6628 GB, free: 19 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001302/1.329, allocations: 47.84 kB / 0.6628 GB, free: 18.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.647e-05/1.329, allocations: 35.67 kB / 0.6629 GB, free: 18.93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.554e-05/1.329, allocations: 19.94 kB / 0.6629 GB, free: 18.91 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004552/1.334, allocations: 4.834 MB / 0.6676 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00169/1.336, allocations: 0.5304 MB / 0.6681 GB, free: 13.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009016/1.337, allocations: 47.42 kB / 0.6682 GB, free: 13.03 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002366/1.339, allocations: 88.39 kB / 0.6682 GB, free: 12.96 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002963/1.339, allocations: 137.6 kB / 0.6684 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001284/1.339, allocations: 64 kB / 0.6684 GB, free: 12.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005279/1.345, allocations: 2.448 MB / 0.6708 GB, free: 10.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.135e-06/1.345, allocations: 0 / 0.6708 GB, free: 10.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006483/1.351, allocations: 0.8867 MB / 0.6717 GB, free: 9.727 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.0005065/1.352, allocations: 193.6 kB / 0.6719 GB, free: 9.535 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006809/1.359, allocations: 3.556 MB / 0.6754 GB, free: 6.219 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.768e-05/1.359, allocations: 4 kB / 0.6754 GB, free: 6.215 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/1.36, allocations: 0.6893 MB / 0.676 GB, free: 5.527 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00305/1.363, allocations: 424.6 kB / 0.6764 GB, free: 5.117 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01748/1.381, allocations: 7.425 MB / 0.6837 GB, free: 13.46 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006668/1.387, allocations: 3.22 MB / 0.6868 GB, free: 10.22 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/1.388, allocations: 279.4 kB / 0.6871 GB, free: 9.945 MB / 474.7 MB Notification: Performance of SimCode: time 2.137e-06/1.388, allocations: 0 / 0.6871 GB, free: 9.945 MB / 474.7 MB Notification: Performance of Templates: time 0.3652/1.754, allocations: 51.01 MB / 0.7369 GB, free: 105.2 MB / 490.7 MB