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.633/1.633, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003978, allocations: 12 kB / 233.2 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07055/0.07098, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2659/0.337, allocations: 31.57 MB / 303.5 MB, free: 7.695 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0183/0.3553, allocations: 7.927 MB / 311.4 MB, free: 7.328 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007041/0.3624, allocations: 155.6 kB / 311.6 MB, free: 7.305 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005039/0.3675, allocations: 1.564 MB / 313.1 MB, free: 7.016 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0156/0.3831, allocations: 4.634 MB / 317.8 MB, free: 5.891 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002698/0.3859, allocations: 0.6337 MB / 318.4 MB, free: 5.707 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00502/0.3909, allocations: 2.438 MB / 320.9 MB, free: 5.152 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005283/0.3962, allocations: 3.335 MB / 324.2 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002066/0.3984, allocations: 1.046 MB / 325.2 MB, free: 3.715 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002337/0.4007, allocations: 1.461 MB / 326.7 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006399/0.4014, allocations: 143.8 kB / 326.8 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002095/0.4035, allocations: 0.7004 MB / 327.5 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001978/0.4055, allocations: 1.5 MB / 329 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009951/0.4066, allocations: 0.7778 MB / 329.8 MB, free: 2.34 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006844/0.4134, allocations: 4.836 MB / 334.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.944e-06/0.4135, allocations: 4 kB / 334.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.297e-06/0.4135, allocations: 0 / 334.7 MB, free: 13.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000135/0.4136, allocations: 0 / 334.7 MB, free: 13.77 MB / 266.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.008851/0.4225, allocations: 3.838 MB / 338.5 MB, free: 9.898 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.4226, allocations: 15.97 kB / 338.5 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01063/0.4332, allocations: 2.265 MB / 340.8 MB, free: 7.609 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006507/0.4398, allocations: 2.676 MB / 343.4 MB, free: 4.898 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003253/0.4401, allocations: 226.8 kB / 343.7 MB, free: 4.711 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001044/0.4412, allocations: 284.3 kB / 343.9 MB, free: 4.469 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0215/0.4627, allocations: 9.593 MB / 353.5 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001523/0.4629, allocations: 43.59 kB / 353.6 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006351/0.4636, allocations: 144.1 kB / 353.7 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00392/0.4675, allocations: 1.904 MB / 355.6 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02027/0.4878, allocations: 7.584 MB / 363.2 MB, free: 0.5742 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05902/0.5469, allocations: 37.57 MB / 400.8 MB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008707/0.5556, allocations: 2.738 MB / 403.5 MB, free: 7.141 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007815/0.5635, allocations: 3.464 MB / 407 MB, free: 3.559 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.213e-05/0.5636, allocations: 47.22 kB / 407 MB, free: 3.504 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 5.997e-06/0.5636, allocations: 0 / 407 MB, free: 3.504 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.03002/0.5936, allocations: 9.184 MB / 416.2 MB, free: 10.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001254/0.5938, allocations: 149.5 kB / 416.4 MB, free: 9.965 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008673/0.6025, allocations: 4.128 MB / 420.5 MB, free: 5.855 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002095/0.6027, allocations: 45.7 kB / 420.5 MB, free: 5.805 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003188/0.6059, allocations: 3.003 MB / 423.5 MB, free: 2.809 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008285/0.6068, allocations: 0.5848 MB / 424.1 MB, free: 2.227 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004071/0.6072, allocations: 122.5 kB / 424.2 MB, free: 2.109 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005144/0.6077, allocations: 0.5467 MB / 424.8 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003863/0.6116, allocations: 1.53 MB / 426.3 MB, free: 16 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007642/0.6193, allocations: 5.285 MB / 431.6 MB, free: 8.844 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006241/0.6256, allocations: 2.781 MB / 434.4 MB, free: 6.062 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001232/0.6258, allocations: 43.78 kB / 434.4 MB, free: 6.023 MB / 362.7 MB Notification: Performance of matching and sorting (n=752) (initialization): time 0.2091/0.8348, allocations: 6.395 MB / 440.8 MB, free: 117.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001454/0.835, allocations: 62.31 kB / 440.9 MB, free: 117.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001986/0.8352, allocations: 134.8 kB / 441 MB, free: 117.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000271/0.8355, allocations: 194.3 kB / 441.2 MB, free: 117.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005777/0.8413, allocations: 1.354 MB / 442.6 MB, free: 117.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003271/0.8417, allocations: 259.9 kB / 442.8 MB, free: 117.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005242/0.8469, allocations: 282.8 kB / 443.1 MB, free: 117.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009907/0.848, allocations: 362 kB / 443.4 MB, free: 117.8 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.004395/0.8524, allocations: 1.963 MB / 445.4 MB, free: 117.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006687/0.8531, allocations: 333.8 kB / 445.7 MB, free: 117.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002898/0.856, allocations: 1.216 MB / 446.9 MB, free: 117.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.565e-05/0.8561, allocations: 17.08 kB / 447 MB, free: 117.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.246e-05/0.8561, allocations: 4.719 kB / 447 MB, free: 117.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.496e-05/0.8561, allocations: 7.266 kB / 447 MB, free: 117.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01298/0.8691, allocations: 5.627 MB / 452.6 MB, free: 115.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.574e-05/0.8692, allocations: 15.59 kB / 452.6 MB, free: 115.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001354/0.8706, allocations: 268.1 kB / 452.9 MB, free: 115.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-05/0.8706, allocations: 25.59 kB / 452.9 MB, free: 115.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/0.8708, allocations: 47.97 kB / 452.9 MB, free: 115.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-05/0.8708, allocations: 34.31 kB / 453 MB, free: 115.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.622e-05/0.8708, allocations: 33 kB / 453 MB, free: 115.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004494/0.8754, allocations: 3.117 MB / 456.1 MB, free: 113.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/0.8768, allocations: 0.5247 MB / 456.7 MB, free: 113.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005429/0.8773, allocations: 47.66 kB / 456.7 MB, free: 113.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00175/0.8791, allocations: 61.34 kB / 456.8 MB, free: 113.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.8793, allocations: 143.6 kB / 456.9 MB, free: 113.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.8795, allocations: 63.25 kB / 457 MB, free: 113.2 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005118/0.8846, allocations: 2.597 MB / 459.6 MB, free: 112.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.446e-06/0.8846, allocations: 3.5 kB / 459.6 MB, free: 112.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005871/0.8905, allocations: 0.8693 MB / 460.4 MB, free: 112.3 MB / 362.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.000549/0.8911, allocations: 213.8 kB / 460.6 MB, free: 112.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006887/0.898, allocations: 3.545 MB / 464.2 MB, free: 111.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-05/0.8981, allocations: 3.156 kB / 464.2 MB, free: 111.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001312/0.8994, allocations: 0.7056 MB / 464.9 MB, free: 111 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002587/0.902, allocations: 411.9 kB / 465.3 MB, free: 110.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01772/0.9198, allocations: 10.44 MB / 475.7 MB, free: 102.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004866/0.9247, allocations: 3.175 MB / 478.9 MB, free: 100.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008522/0.9256, allocations: 278.1 kB / 479.2 MB, free: 100.1 MB / 362.7 MB Notification: Performance of SimCode: time 1.689e-06/0.9256, allocations: 0 / 479.2 MB, free: 100.1 MB / 362.7 MB Notification: Performance of Templates: time 0.1175/1.043, allocations: 49.89 MB / 0.5167 GB, free: 50.16 MB / 362.7 MB