Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.595/1.595, allocations: 171.2 MB / 184.2 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.942e-05/2.966e-05, allocations: 4 kB / 228.8 MB, free: 15.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2075, allocations: 38.78 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1259/0.3334, allocations: 82.4 MB / 350 MB, free: 6.91 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/0.3337, allocations: 83.95 kB / 350.1 MB, free: 6.828 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4862/0.8199, allocations: 83.61 MB / 433.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.02e-06/0.82, allocations: 0 / 433.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001897/0.8202, allocations: 79.94 kB / 433.8 MB, free: 12.41 MB / 298.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.01006/0.8303, allocations: 3.798 MB / 437.6 MB, free: 8.551 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.8303, allocations: 8.031 kB / 437.6 MB, free: 8.543 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0135/0.8439, allocations: 2.436 MB / 440 MB, free: 6.098 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0136/0.8575, allocations: 5.027 MB / 445 MB, free: 1.004 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003459/0.8579, allocations: 308.1 kB / 445.3 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00162/0.8595, allocations: 411.8 kB / 445.7 MB, free: 304 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02542/0.885, allocations: 9.801 MB / 455.5 MB, free: 5.422 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000237/0.8853, allocations: 67.41 kB / 455.6 MB, free: 5.355 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001402/0.8867, allocations: 199.9 kB / 455.8 MB, free: 5.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002082/0.8888, allocations: 0.9824 MB / 456.8 MB, free: 4.172 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02013/0.9089, allocations: 7.535 MB / 464.3 MB, free: 12.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2837/1.193, allocations: 45.37 MB / 0.4978 GB, free: 39.1 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007674/1.2, allocations: 2.71 MB / 0.5004 GB, free: 38.43 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001688/1.202, allocations: 0.819 MB / 0.5012 GB, free: 38.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007356/1.21, allocations: 3.462 MB / 0.5046 GB, free: 37.11 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.374e-05/1.21, allocations: 51.55 kB / 0.5046 GB, free: 37.06 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 6.105e-06/1.21, allocations: 0 / 0.5046 GB, free: 37.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.02788/1.238, allocations: 8.195 MB / 0.5126 GB, free: 34.32 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/1.238, allocations: 146.3 kB / 0.5128 GB, free: 34.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007218/1.245, allocations: 3.424 MB / 0.5161 GB, free: 33.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002303/1.245, allocations: 44.2 kB / 0.5162 GB, free: 33.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00212/1.247, allocations: 3.016 MB / 0.5191 GB, free: 32.13 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006626/1.248, allocations: 0.5788 MB / 0.5197 GB, free: 31.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000533/1.249, allocations: 113.2 kB / 0.5198 GB, free: 31.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004654/1.249, allocations: 0.5502 MB / 0.5203 GB, free: 31.49 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003425/1.252, allocations: 1.468 MB / 0.5217 GB, free: 31.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005373/1.258, allocations: 5.176 MB / 0.5268 GB, free: 26.63 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00538/1.263, allocations: 2.768 MB / 0.5295 GB, free: 26.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001249/1.263, allocations: 38.44 kB / 0.5295 GB, free: 26.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01441/1.278, allocations: 6.277 MB / 0.5357 GB, free: 26.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001169/1.278, allocations: 60.38 kB / 0.5357 GB, free: 26.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001575/1.278, allocations: 133.6 kB / 0.5359 GB, free: 26.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002233/1.278, allocations: 199.6 kB / 0.536 GB, free: 26.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006138/1.285, allocations: 1.38 MB / 0.5374 GB, free: 26.16 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002267/1.285, allocations: 259.8 kB / 0.5376 GB, free: 26.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006255/1.291, allocations: 373.4 kB / 0.538 GB, free: 26.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001074/1.292, allocations: 361.3 kB / 0.5383 GB, free: 26.08 MB / 346.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 () * 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.001097/1.293, allocations: 0.5504 MB / 0.5389 GB, free: 25.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006824/1.294, allocations: 332.2 kB / 0.5392 GB, free: 25.44 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002663/1.297, allocations: 1.179 MB / 0.5403 GB, free: 24.98 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.613e-05/1.297, allocations: 19.89 kB / 0.5404 GB, free: 24.98 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/1.297, allocations: 7.891 kB / 0.5404 GB, free: 24.97 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/1.297, allocations: 6.656 kB / 0.5404 GB, free: 24.97 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01317/1.31, allocations: 5.614 MB / 0.5459 GB, free: 22.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.048e-05/1.31, allocations: 23.23 kB / 0.5459 GB, free: 22.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001393/1.312, allocations: 273.5 kB / 0.5461 GB, free: 22.36 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.198e-05/1.312, allocations: 24.56 kB / 0.5462 GB, free: 22.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/1.312, allocations: 46.25 kB / 0.5462 GB, free: 22.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-05/1.312, allocations: 37.94 kB / 0.5462 GB, free: 22.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.669e-05/1.312, allocations: 25.97 kB / 0.5463 GB, free: 22.33 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004697/1.317, allocations: 5.11 MB / 0.5513 GB, free: 18.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001614/1.318, allocations: 0.5146 MB / 0.5518 GB, free: 17.83 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007427/1.319, allocations: 52.53 kB / 0.5518 GB, free: 17.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002257/1.321, allocations: 86.53 kB / 0.5519 GB, free: 17.8 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003046/1.322, allocations: 147.4 kB / 0.552 GB, free: 17.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001394/1.322, allocations: 65.95 kB / 0.5521 GB, free: 17.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005615/1.327, allocations: 2.371 MB / 0.5544 GB, free: 16.92 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.163e-06/1.327, allocations: 3.844 kB / 0.5544 GB, free: 16.92 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006532/1.334, allocations: 0.8586 MB / 0.5553 GB, free: 16.38 MB / 346.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 () * 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.0005327/1.334, allocations: 196 kB / 0.5554 GB, free: 16.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006775/1.341, allocations: 3.477 MB / 0.5588 GB, free: 12.99 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.908e-05/1.341, allocations: 4 kB / 0.5588 GB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00126/1.343, allocations: 0.6949 MB / 0.5595 GB, free: 12.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002846/1.345, allocations: 413.1 kB / 0.5599 GB, free: 11.99 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/1.362, allocations: 7.353 MB / 0.5671 GB, free: 5.184 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005757/1.367, allocations: 3.164 MB / 0.5702 GB, free: 2.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009003/1.368, allocations: 275 kB / 0.5705 GB, free: 2.508 MB / 346.7 MB Notification: Performance of SimCode: time 1.987e-06/1.368, allocations: 0 / 0.5705 GB, free: 2.508 MB / 346.7 MB Notification: Performance of Templates: time 0.1099/1.478, allocations: 50.5 MB / 0.6198 GB, free: 7.57 MB / 394.7 MB