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.135/2.135, allocations: 234.9 MB / 250.5 MB, free: 9.531 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004338/0.0004339, allocations: 15.98 kB / 314.4 MB, free: 9.547 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2733, allocations: 54.87 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1443/0.4177, allocations: 97.41 MB / 466.7 MB, free: 9.152 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/0.418, allocations: 83.89 kB / 466.8 MB, free: 9.07 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5368/0.9548, allocations: 84.78 MB / 0.5386 GB, free: 33.21 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.9548, allocations: 3.938 kB / 0.5386 GB, free: 33.21 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002186/0.9551, allocations: 84 kB / 0.5387 GB, free: 33.13 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.01183/0.9669, allocations: 4.133 MB / 0.5427 GB, free: 28.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.967, allocations: 8.031 kB / 0.5427 GB, free: 28.92 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01324/0.9802, allocations: 2.436 MB / 0.5451 GB, free: 26.47 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01378/0.994, allocations: 5.144 MB / 0.5501 GB, free: 21.26 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003649/0.9945, allocations: 325.2 kB / 0.5505 GB, free: 20.94 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001689/0.9962, allocations: 431.8 kB / 0.5509 GB, free: 20.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02296/1.019, allocations: 10.49 MB / 0.5611 GB, free: 8.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001886/1.019, allocations: 55.5 kB / 0.5612 GB, free: 8.855 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001119/1.02, allocations: 211.9 kB / 0.5614 GB, free: 8.648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001604/1.022, allocations: 1.01 MB / 0.5624 GB, free: 7.633 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01965/1.042, allocations: 8.222 MB / 0.5704 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06687/1.109, allocations: 47.44 MB / 0.6167 GB, free: 14.36 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01004/1.119, allocations: 3.052 MB / 0.6197 GB, free: 11.14 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0112/1.13, allocations: 5.208 MB / 0.6248 GB, free: 5.676 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/1.13, allocations: 47.22 kB / 0.6248 GB, free: 5.621 MB / 458.7 MB Notification: Performance of pre-optimization done (n=134): time 5.644e-06/1.13, allocations: 0 / 0.6248 GB, free: 5.621 MB / 458.7 MB Notification: Performance of matching and sorting (n=146): time 0.05127/1.181, allocations: 9.222 MB / 0.6338 GB, free: 12.22 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001848/1.182, allocations: 196.9 kB / 0.634 GB, free: 11.98 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01448/1.196, allocations: 3.646 MB / 0.6376 GB, free: 8.316 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003341/1.197, allocations: 49.7 kB / 0.6376 GB, free: 8.262 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005137/1.202, allocations: 3.069 MB / 0.6406 GB, free: 5.152 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001341/1.203, allocations: 0.5903 MB / 0.6412 GB, free: 4.555 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008024/1.204, allocations: 120 kB / 0.6413 GB, free: 4.438 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0008927/1.205, allocations: 0.5548 MB / 0.6419 GB, free: 3.871 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0078/1.213, allocations: 1.624 MB / 0.6434 GB, free: 2.242 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2845/1.497, allocations: 5.42 MB / 0.6487 GB, free: 114.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006956/1.504, allocations: 2.902 MB / 0.6516 GB, free: 114.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002595/1.505, allocations: 38.91 kB / 0.6516 GB, free: 114.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01669/1.521, allocations: 6.654 MB / 0.6581 GB, free: 114.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001948/1.521, allocations: 64.06 kB / 0.6582 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002418/1.522, allocations: 135.1 kB / 0.6583 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000231/1.522, allocations: 199.8 kB / 0.6585 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00568/1.528, allocations: 1.416 MB / 0.6599 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002355/1.528, allocations: 269.7 kB / 0.6601 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006191/1.534, allocations: 376 kB / 0.6605 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00118/1.535, allocations: 368.5 kB / 0.6608 GB, free: 114 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.004995/1.54, allocations: 2.017 MB / 0.6628 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007112/1.541, allocations: 347 kB / 0.6631 GB, free: 113.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002828/1.544, allocations: 1.245 MB / 0.6644 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-05/1.544, allocations: 17.09 kB / 0.6644 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.665e-06/1.544, allocations: 0 / 0.6644 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/1.544, allocations: 8.016 kB / 0.6644 GB, free: 113.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01282/1.557, allocations: 5.554 MB / 0.6698 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.122e-05/1.557, allocations: 16.75 kB / 0.6698 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001289/1.558, allocations: 261.9 kB / 0.6701 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-05/1.558, allocations: 29 kB / 0.6701 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/1.559, allocations: 41.52 kB / 0.6701 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.467e-05/1.559, allocations: 30.25 kB / 0.6702 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-05/1.559, allocations: 27.09 kB / 0.6702 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004996/1.564, allocations: 4.873 MB / 0.6749 GB, free: 109.4 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/1.565, allocations: 0.5304 MB / 0.6755 GB, free: 109.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000732/1.566, allocations: 48.59 kB / 0.6755 GB, free: 109.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002183/1.568, allocations: 92.61 kB / 0.6756 GB, free: 109.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002956/1.568, allocations: 125.2 kB / 0.6757 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/1.569, allocations: 67.3 kB / 0.6758 GB, free: 109.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006079/1.575, allocations: 2.546 MB / 0.6783 GB, free: 109 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.334e-06/1.575, allocations: 3.25 kB / 0.6783 GB, free: 109 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006919/1.582, allocations: 0.8833 MB / 0.6791 GB, free: 109 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.0005752/1.582, allocations: 195.2 kB / 0.6793 GB, free: 108.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007998/1.59, allocations: 3.682 MB / 0.6829 GB, free: 108 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/1.59, allocations: 2.594 kB / 0.6829 GB, free: 108 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001326/1.592, allocations: 0.7007 MB / 0.6836 GB, free: 107.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002711/1.594, allocations: 424.5 kB / 0.684 GB, free: 107.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01974/1.614, allocations: 10.57 MB / 0.6943 GB, free: 101.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006306/1.621, allocations: 3.222 MB / 0.6975 GB, free: 100.4 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001033/1.622, allocations: 276.9 kB / 0.6977 GB, free: 100.4 MB / 474.7 MB Notification: Performance of SimCode: time 2.025e-06/1.622, allocations: 0 / 0.6977 GB, free: 100.4 MB / 474.7 MB Notification: Performance of Templates: time 0.07658/1.698, allocations: 51.02 MB / 0.7476 GB, free: 65.34 MB / 474.7 MB