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.883/1.883, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000359/0.0003592, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0826/0.08298, allocations: 44.51 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.04262/0.1257, allocations: 31.58 MB / 339.9 MB, free: 1.348 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02054/0.1462, allocations: 7.957 MB / 347.9 MB, free: 9.367 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006299/0.1526, allocations: 155.6 kB / 348.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0051/0.1577, allocations: 1.567 MB / 349.6 MB, free: 7.641 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01574/0.1735, allocations: 4.625 MB / 354.2 MB, free: 3.004 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002678/0.1762, allocations: 0.6201 MB / 354.9 MB, free: 2.383 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005171/0.1814, allocations: 2.433 MB / 357.3 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006198/0.1876, allocations: 3.34 MB / 360.6 MB, free: 12.55 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002087/0.1898, allocations: 1.047 MB / 361.7 MB, free: 11.5 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002668/0.1925, allocations: 1.46 MB / 363.1 MB, free: 10.04 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006546/0.1932, allocations: 140 kB / 363.3 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001961/0.1951, allocations: 0.7061 MB / 364 MB, free: 9.195 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002135/0.1973, allocations: 1.488 MB / 365.5 MB, free: 7.703 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.1984, allocations: 0.7803 MB / 366.3 MB, free: 6.914 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00746/0.2059, allocations: 4.832 MB / 371.1 MB, free: 2.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.2059, allocations: 0 / 371.1 MB, free: 2.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.206, allocations: 3.938 kB / 371.1 MB, free: 2.066 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001181/0.2061, allocations: 0 / 371.1 MB, free: 2.066 MB / 314.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.2136/0.4197, allocations: 3.831 MB / 374.9 MB, free: 62.87 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.4197, allocations: 9.094 kB / 374.9 MB, free: 62.87 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01145/0.4312, allocations: 2.263 MB / 377.2 MB, free: 62.56 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005925/0.4372, allocations: 2.684 MB / 379.9 MB, free: 61.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002852/0.4375, allocations: 221 kB / 380.1 MB, free: 61.14 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/0.4386, allocations: 290.2 kB / 380.4 MB, free: 61.08 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01897/0.4576, allocations: 9.59 MB / 390 MB, free: 54.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001287/0.4577, allocations: 47.59 kB / 390 MB, free: 54.51 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000536/0.4583, allocations: 143.1 kB / 390.2 MB, free: 54.41 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002991/0.4613, allocations: 1.897 MB / 392.1 MB, free: 52.52 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01668/0.478, allocations: 7.585 MB / 399.6 MB, free: 44.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04226/0.5203, allocations: 37.56 MB / 437.2 MB, free: 6.414 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007508/0.5279, allocations: 2.757 MB / 440 MB, free: 3.512 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006481/0.5344, allocations: 3.456 MB / 443.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.42e-05/0.5345, allocations: 47.22 kB / 443.5 MB, free: 15.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 5.911e-06/0.5345, allocations: 0 / 443.5 MB, free: 15.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.02985/0.5644, allocations: 9.194 MB / 452.7 MB, free: 6.512 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.5645, allocations: 145.5 kB / 452.8 MB, free: 6.34 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008316/0.5729, allocations: 4.132 MB / 456.9 MB, free: 2.227 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002109/0.5731, allocations: 41.7 kB / 457 MB, free: 2.18 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003127/0.5763, allocations: 3.012 MB / 460 MB, free: 15.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008419/0.5771, allocations: 0.5742 MB / 460.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004079/0.5776, allocations: 116 kB / 460.7 MB, free: 14.49 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005195/0.5781, allocations: 0.5545 MB / 461.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003805/0.5819, allocations: 1.534 MB / 462.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007649/0.5896, allocations: 5.276 MB / 468 MB, free: 5.223 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006204/0.5958, allocations: 2.778 MB / 470.8 MB, free: 2.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001245/0.596, allocations: 36 kB / 470.8 MB, free: 2.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=752) (initialization): time 0.01628/0.6123, allocations: 6.413 MB / 477.3 MB, free: 12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001401/0.6125, allocations: 74.8 kB / 477.3 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002071/0.6127, allocations: 136 kB / 477.5 MB, free: 11.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002719/0.613, allocations: 196 kB / 477.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005685/0.6187, allocations: 1.357 MB / 479 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003201/0.619, allocations: 259 kB / 479.3 MB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005135/0.6242, allocations: 279.6 kB / 479.5 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009503/0.6252, allocations: 364 kB / 479.9 MB, free: 9.359 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 609 * 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 (728): * Single equations (assignments): 725 * 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.004685/0.6299, allocations: 1.961 MB / 481.9 MB, free: 7.383 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008095/0.6307, allocations: 331.7 kB / 482.2 MB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.6339, allocations: 1.218 MB / 483.4 MB, free: 5.832 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.592e-05/0.6339, allocations: 20 kB / 483.4 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.634, allocations: 0 / 483.4 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.179e-05/0.634, allocations: 7.984 kB / 483.4 MB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01385/0.6479, allocations: 5.615 MB / 489 MB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.933e-05/0.648, allocations: 17.5 kB / 489.1 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00137/0.6493, allocations: 275.5 kB / 489.3 MB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.452e-05/0.6494, allocations: 27.95 kB / 489.3 MB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001859/0.6496, allocations: 44.06 kB / 489.4 MB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.771e-05/0.6497, allocations: 40.33 kB / 489.4 MB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.492e-05/0.6497, allocations: 23.94 kB / 489.5 MB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005695/0.6554, allocations: 3.122 MB / 492.6 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001594/0.6571, allocations: 0.52 MB / 493.1 MB, free: 11.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006302/0.6577, allocations: 47.94 kB / 493.1 MB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00179/0.6595, allocations: 59.91 kB / 493.2 MB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002821/0.6598, allocations: 139.5 kB / 493.3 MB, free: 11.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001499/0.66, allocations: 63.94 kB / 493.4 MB, free: 11.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005876/0.6659, allocations: 2.602 MB / 496 MB, free: 8.691 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.178e-06/0.6659, allocations: 0 / 496 MB, free: 8.691 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006219/0.6722, allocations: 0.8684 MB / 496.9 MB, free: 7.828 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 77 * 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 (136): * Single equations (assignments): 133 * 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.0006615/0.6729, allocations: 211.8 kB / 497.1 MB, free: 7.621 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00808/0.681, allocations: 3.542 MB / 0.4889 GB, free: 4.105 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.831e-05/0.681, allocations: 0 / 0.4889 GB, free: 4.105 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001576/0.6826, allocations: 0.7099 MB / 0.4896 GB, free: 3.402 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00287/0.6855, allocations: 418.9 kB / 0.49 GB, free: 2.996 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02475/0.7103, allocations: 10.45 MB / 0.5002 GB, free: 8.266 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00797/0.7183, allocations: 3.156 MB / 0.5033 GB, free: 5.082 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009915/0.7194, allocations: 279.4 kB / 0.5035 GB, free: 4.809 MB / 394.7 MB Notification: Performance of SimCode: time 1.82e-06/0.7194, allocations: 0 / 0.5035 GB, free: 4.809 MB / 394.7 MB Notification: Performance of Templates: time 0.2981/1.017, allocations: 49.89 MB / 0.5523 GB, free: 94.57 MB / 394.7 MB