Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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) 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.921/1.921, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003604, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0807/0.08109, allocations: 44.51 MB / 308.5 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3451/0.4262, allocations: 88.11 MB / 396.6 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.4265, allocations: 91.92 kB / 396.7 MB, free: 18.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.314/0.7405, allocations: 83.57 MB / 480.2 MB, free: 9.625 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.7406, allocations: 0 / 480.2 MB, free: 9.625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002237/0.7408, allocations: 79.94 kB / 480.3 MB, free: 9.547 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.013/0.7538, allocations: 4.03 MB / 484.3 MB, free: 5.453 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.7539, allocations: 12.03 kB / 484.3 MB, free: 5.441 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01455/0.7684, allocations: 2.44 MB / 486.8 MB, free: 2.992 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01641/0.7849, allocations: 5.066 MB / 491.9 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005052/0.7855, allocations: 308.1 kB / 492.2 MB, free: 13.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001894/0.7874, allocations: 403.9 kB / 492.5 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02753/0.8149, allocations: 9.936 MB / 0.4907 GB, free: 2.152 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002386/0.8152, allocations: 67.41 kB / 0.4908 GB, free: 2.086 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001404/0.8166, allocations: 199.9 kB / 0.491 GB, free: 1.891 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002123/0.8188, allocations: 0.9901 MB / 0.4919 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02211/0.8409, allocations: 7.78 MB / 0.4995 GB, free: 9.086 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3032/1.144, allocations: 45.37 MB / 0.5438 GB, free: 61.44 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008259/1.152, allocations: 2.725 MB / 0.5465 GB, free: 60.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007561/1.16, allocations: 3.46 MB / 0.5499 GB, free: 59.47 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/1.16, allocations: 46.42 kB / 0.5499 GB, free: 59.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 5.267e-06/1.16, allocations: 1.438 kB / 0.5499 GB, free: 59.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.02977/1.19, allocations: 9.079 MB / 0.5588 GB, free: 56.41 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.594e-05/1.19, allocations: 142.9 kB / 0.5589 GB, free: 56.26 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007877/1.198, allocations: 3.527 MB / 0.5624 GB, free: 55.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002292/1.198, allocations: 46.58 kB / 0.5624 GB, free: 55.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002153/1.2, allocations: 3.005 MB / 0.5653 GB, free: 54.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006582/1.201, allocations: 0.5902 MB / 0.5659 GB, free: 53.95 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005276/1.202, allocations: 115.8 kB / 0.566 GB, free: 53.95 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004006/1.202, allocations: 0.546 MB / 0.5666 GB, free: 53.63 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004004/1.206, allocations: 1.569 MB / 0.5681 GB, free: 53.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005908/1.212, allocations: 5.285 MB / 0.5733 GB, free: 48.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005587/1.218, allocations: 2.824 MB / 0.576 GB, free: 48.75 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001161/1.218, allocations: 39.77 kB / 0.5761 GB, free: 48.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01581/1.234, allocations: 6.478 MB / 0.5824 GB, free: 48.36 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/1.234, allocations: 63.62 kB / 0.5824 GB, free: 48.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001807/1.234, allocations: 137.1 kB / 0.5826 GB, free: 48.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002081/1.234, allocations: 194.7 kB / 0.5828 GB, free: 48.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00552/1.24, allocations: 1.384 MB / 0.5841 GB, free: 48.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000244/1.24, allocations: 259.7 kB / 0.5844 GB, free: 48.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00613/1.246, allocations: 362.8 kB / 0.5847 GB, free: 48.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001071/1.247, allocations: 365 kB / 0.5851 GB, free: 48.16 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.004607/1.252, allocations: 1.962 MB / 0.587 GB, free: 47.83 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000713/1.253, allocations: 337.6 kB / 0.5873 GB, free: 47.65 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/1.256, allocations: 1.199 MB / 0.5885 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.06e-05/1.256, allocations: 15.27 kB / 0.5885 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/1.256, allocations: 3.031 kB / 0.5885 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.008e-05/1.256, allocations: 10.41 kB / 0.5885 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0133/1.269, allocations: 5.637 MB / 0.594 GB, free: 44.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-05/1.269, allocations: 18.03 kB / 0.594 GB, free: 44.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001323/1.27, allocations: 275.3 kB / 0.5943 GB, free: 44.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.001e-05/1.27, allocations: 25.75 kB / 0.5943 GB, free: 44.81 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/1.271, allocations: 45.22 kB / 0.5943 GB, free: 44.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.753e-05/1.271, allocations: 33.2 kB / 0.5944 GB, free: 44.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.821e-05/1.271, allocations: 30.28 kB / 0.5944 GB, free: 44.78 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004912/1.276, allocations: 5.15 MB / 0.5994 GB, free: 40.59 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0015/1.277, allocations: 0.515 MB / 0.5999 GB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000696/1.278, allocations: 49.25 kB / 0.6 GB, free: 40.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002128/1.28, allocations: 87.55 kB / 0.6001 GB, free: 40.21 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002613/1.28, allocations: 140.4 kB / 0.6002 GB, free: 40.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/1.28, allocations: 72.23 kB / 0.6003 GB, free: 40.15 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00603/1.286, allocations: 2.459 MB / 0.6027 GB, free: 39.36 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.219e-06/1.287, allocations: 0 / 0.6027 GB, free: 39.36 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006602/1.293, allocations: 0.8666 MB / 0.6035 GB, free: 39.25 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.0005641/1.294, allocations: 214.3 kB / 0.6037 GB, free: 39.1 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007736/1.302, allocations: 3.584 MB / 0.6072 GB, free: 37.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.645e-05/1.302, allocations: 3.5 kB / 0.6072 GB, free: 37.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/1.303, allocations: 0.7098 MB / 0.6079 GB, free: 37.69 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002872/1.306, allocations: 421.8 kB / 0.6083 GB, free: 37.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01906/1.325, allocations: 10.42 MB / 0.6185 GB, free: 31.55 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006003/1.331, allocations: 3.159 MB / 0.6216 GB, free: 29.26 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009301/1.332, allocations: 274.1 kB / 0.6218 GB, free: 29 MB / 410.7 MB Notification: Performance of SimCode: time 1.681e-06/1.332, allocations: 0 / 0.6218 GB, free: 29 MB / 410.7 MB Notification: Performance of Templates: time 0.07934/1.411, allocations: 49.44 MB / 0.6701 GB, free: 4.926 MB / 426.7 MB