Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.805/1.805, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003395/0.0003397, allocations: 8 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08955/0.08992, allocations: 44.5 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4006/0.4906, allocations: 88.1 MB / 397.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.4909, allocations: 93.09 kB / 397.2 MB, free: 14.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3315/0.8224, allocations: 84.43 MB / 481.6 MB, free: 6.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.8224, allocations: 0 / 481.6 MB, free: 6.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002255/0.8227, allocations: 91.84 kB / 481.7 MB, free: 6.395 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.01476/0.8374, allocations: 4.025 MB / 485.7 MB, free: 2.328 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.8375, allocations: 8.031 kB / 485.7 MB, free: 2.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01981/0.8573, allocations: 2.436 MB / 488.2 MB, free: 15.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0182/0.8756, allocations: 5.067 MB / 493.2 MB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003476/0.876, allocations: 306.4 kB / 493.5 MB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001597/0.8776, allocations: 406.3 kB / 493.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02799/0.9056, allocations: 9.964 MB / 0.4921 GB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00023/0.9059, allocations: 67.39 kB / 0.4921 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001085/0.907, allocations: 201.5 kB / 0.4923 GB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002323/0.9093, allocations: 0.9936 MB / 0.4933 GB, free: 13.99 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02552/0.9348, allocations: 7.776 MB / 0.5009 GB, free: 6.184 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3395/1.274, allocations: 45.37 MB / 0.5452 GB, free: 61.03 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01041/1.285, allocations: 2.723 MB / 0.5479 GB, free: 60.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008838/1.294, allocations: 3.452 MB / 0.5512 GB, free: 59.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.663e-05/1.294, allocations: 46.31 kB / 0.5513 GB, free: 59.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 5.922e-06/1.294, allocations: 1.312 kB / 0.5513 GB, free: 59.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.03415/1.328, allocations: 9.076 MB / 0.5601 GB, free: 56.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/1.328, allocations: 148.3 kB / 0.5603 GB, free: 55.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00874/1.337, allocations: 3.95 MB / 0.5641 GB, free: 55.52 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002727/1.337, allocations: 46.11 kB / 0.5642 GB, free: 55.49 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002198/1.339, allocations: 3.011 MB / 0.5671 GB, free: 53.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006963/1.34, allocations: 0.581 MB / 0.5677 GB, free: 53.54 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003839/1.341, allocations: 114.3 kB / 0.5678 GB, free: 53.54 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003222/1.341, allocations: 0.5533 MB / 0.5683 GB, free: 53.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004161/1.345, allocations: 1.561 MB / 0.5699 GB, free: 53.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0062/1.351, allocations: 5.317 MB / 0.5751 GB, free: 48.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006868/1.358, allocations: 2.816 MB / 0.5778 GB, free: 48.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001199/1.358, allocations: 39.16 kB / 0.5778 GB, free: 48.33 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01682/1.375, allocations: 6.475 MB / 0.5842 GB, free: 47.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.222e-05/1.375, allocations: 68.72 kB / 0.5842 GB, free: 47.91 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001397/1.376, allocations: 133.6 kB / 0.5844 GB, free: 47.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001988/1.376, allocations: 192.9 kB / 0.5845 GB, free: 47.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007505/1.383, allocations: 1.384 MB / 0.5859 GB, free: 47.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000221/1.384, allocations: 267.3 kB / 0.5861 GB, free: 47.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006261/1.39, allocations: 366.6 kB / 0.5865 GB, free: 47.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008879/1.391, allocations: 361.4 kB / 0.5868 GB, free: 47.71 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (726): * Single equations (assignments): 723 * 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.00432/1.395, allocations: 1.96 MB / 0.5888 GB, free: 47.39 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007065/1.396, allocations: 337.4 kB / 0.5891 GB, free: 47.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002955/1.399, allocations: 1.193 MB / 0.5902 GB, free: 46.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.297e-05/1.399, allocations: 19.5 kB / 0.5903 GB, free: 46.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/1.399, allocations: 0 / 0.5903 GB, free: 46.79 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.687e-05/1.399, allocations: 12.36 kB / 0.5903 GB, free: 46.79 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/1.411, allocations: 5.644 MB / 0.5958 GB, free: 44.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.693e-05/1.411, allocations: 18.97 kB / 0.5958 GB, free: 44.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001752/1.413, allocations: 270 kB / 0.5961 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.939e-05/1.413, allocations: 27.62 kB / 0.5961 GB, free: 44.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/1.413, allocations: 52.56 kB / 0.5961 GB, free: 44.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-05/1.413, allocations: 34.38 kB / 0.5962 GB, free: 44.13 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-05/1.413, allocations: 35.66 kB / 0.5962 GB, free: 44.12 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00493/1.418, allocations: 3.151 MB / 0.5993 GB, free: 42.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/1.419, allocations: 0.5137 MB / 0.5998 GB, free: 41.86 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006005/1.42, allocations: 54.67 kB / 0.5998 GB, free: 41.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002106/1.422, allocations: 81.39 kB / 0.5999 GB, free: 41.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/1.422, allocations: 143.9 kB / 0.6001 GB, free: 41.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/1.423, allocations: 68.12 kB / 0.6001 GB, free: 41.76 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006194/1.429, allocations: 2.462 MB / 0.6025 GB, free: 40.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.429, allocations: 0 / 0.6025 GB, free: 40.97 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006281/1.435, allocations: 0.8656 MB / 0.6034 GB, free: 40.86 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (138): * Single equations (assignments): 135 * 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.0004866/1.436, allocations: 212.2 kB / 0.6036 GB, free: 40.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008346/1.444, allocations: 3.584 MB / 0.6071 GB, free: 39.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.879e-05/1.444, allocations: 3.562 kB / 0.6071 GB, free: 39.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001529/1.446, allocations: 0.7074 MB / 0.6078 GB, free: 39.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003269/1.449, allocations: 422.3 kB / 0.6082 GB, free: 39.12 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02128/1.47, allocations: 10.45 MB / 0.6184 GB, free: 32.74 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005193/1.476, allocations: 3.157 MB / 0.6215 GB, free: 30.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001096/1.477, allocations: 282.6 kB / 0.6217 GB, free: 30.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/1.477, allocations: 0 / 0.6217 GB, free: 30.07 MB / 410.7 MB Notification: Performance of Templates: time 0.09769/1.574, allocations: 49.44 MB / 0.67 GB, free: 5.625 MB / 426.7 MB