Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.902/1.902, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003393, allocations: 8 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.09124, allocations: 44.51 MB / 309.1 MB, free: 352 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.04749/0.1388, allocations: 31.58 MB / 340.6 MB, free: 0.6758 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02082/0.1596, allocations: 7.953 MB / 348.6 MB, free: 8.699 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00538/0.1651, allocations: 155.6 kB / 348.8 MB, free: 8.547 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005532/0.1707, allocations: 1.567 MB / 350.3 MB, free: 6.973 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01686/0.1876, allocations: 4.629 MB / 354.9 MB, free: 2.332 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003095/0.1907, allocations: 0.6201 MB / 355.6 MB, free: 1.711 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006061/0.1968, allocations: 2.441 MB / 358 MB, free: 15.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006959/0.2038, allocations: 3.332 MB / 361.3 MB, free: 11.88 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002547/0.2064, allocations: 1.055 MB / 362.4 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003213/0.2097, allocations: 1.453 MB / 363.8 MB, free: 9.367 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008911/0.2106, allocations: 140 kB / 364 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002404/0.213, allocations: 0.7022 MB / 364.7 MB, free: 8.527 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002509/0.2156, allocations: 1.496 MB / 366.2 MB, free: 7.027 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001305/0.2169, allocations: 0.7842 MB / 367 MB, free: 6.234 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00783/0.2248, allocations: 4.825 MB / 371.8 MB, free: 1.398 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.2248, allocations: 3.938 kB / 371.8 MB, free: 1.395 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2248, allocations: 0 / 371.8 MB, free: 1.395 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000182/0.225, allocations: 0 / 371.8 MB, free: 1.395 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.2453/0.4703, allocations: 3.835 MB / 375.6 MB, free: 62.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.4704, allocations: 9.359 kB / 375.6 MB, free: 62.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01498/0.4854, allocations: 2.261 MB / 377.9 MB, free: 62.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007504/0.4929, allocations: 2.673 MB / 380.6 MB, free: 61.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002504/0.4932, allocations: 223.9 kB / 380.8 MB, free: 61.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009321/0.4941, allocations: 289.5 kB / 381.1 MB, free: 61.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02102/0.5152, allocations: 9.572 MB / 390.6 MB, free: 54.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.5154, allocations: 47.53 kB / 390.7 MB, free: 54.5 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000572/0.5159, allocations: 144.4 kB / 390.8 MB, free: 54.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00411/0.5201, allocations: 1.896 MB / 392.7 MB, free: 52.5 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02048/0.5406, allocations: 7.589 MB / 400.3 MB, free: 44.89 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04917/0.5898, allocations: 37.55 MB / 437.9 MB, free: 6.402 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009643/0.5995, allocations: 2.771 MB / 440.6 MB, free: 3.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007237/0.6067, allocations: 3.447 MB / 444.1 MB, free: 15.91 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.721e-05/0.6068, allocations: 51.16 kB / 444.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 4.789e-06/0.6068, allocations: 0 / 444.1 MB, free: 15.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.035/0.6419, allocations: 9.187 MB / 453.3 MB, free: 6.488 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.386e-05/0.642, allocations: 145.5 kB / 453.5 MB, free: 6.316 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007935/0.6499, allocations: 4.14 MB / 457.6 MB, free: 2.195 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002338/0.6502, allocations: 45.7 kB / 457.6 MB, free: 2.145 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003169/0.6534, allocations: 3.078 MB / 460.7 MB, free: 15.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008289/0.6542, allocations: 0.5741 MB / 461.3 MB, free: 14.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000345/0.6546, allocations: 112 kB / 461.4 MB, free: 14.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004508/0.6551, allocations: 0.5459 MB / 462 MB, free: 13.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004012/0.6591, allocations: 1.534 MB / 463.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007167/0.6663, allocations: 5.257 MB / 468.7 MB, free: 5.152 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006615/0.6729, allocations: 2.781 MB / 471.5 MB, free: 2.375 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.479e-05/0.673, allocations: 36 kB / 471.6 MB, free: 2.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=752) (initialization): time 0.01664/0.6897, allocations: 6.525 MB / 478.1 MB, free: 11.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.6898, allocations: 64.94 kB / 478.2 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001813/0.69, allocations: 140.1 kB / 478.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002693/0.6903, allocations: 196 kB / 478.5 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007549/0.6979, allocations: 1.365 MB / 479.8 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002798/0.6982, allocations: 255 kB / 480.1 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004874/0.7031, allocations: 283.6 kB / 480.4 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006771/0.7038, allocations: 360 kB / 480.7 MB, free: 9.176 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.004112/0.7079, allocations: 1.957 MB / 482.7 MB, free: 7.203 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007721/0.7087, allocations: 339.6 kB / 483 MB, free: 6.867 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003195/0.7119, allocations: 1.217 MB / 484.2 MB, free: 5.648 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.447e-05/0.7119, allocations: 11.94 kB / 484.2 MB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.026e-05/0.7119, allocations: 4 kB / 484.2 MB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/0.7135, allocations: 0.5083 MB / 484.8 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005717/0.714, allocations: 20 kB / 484.8 MB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/0.7158, allocations: 47.95 kB / 484.8 MB, free: 5.035 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.716, allocations: 72.58 kB / 484.9 MB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004731/0.7207, allocations: 1.841 MB / 486.7 MB, free: 3.141 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.006096/0.7268, allocations: 2.963 MB / 489.7 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001529/0.7284, allocations: 0.6713 MB / 490.4 MB, free: 15.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.005668/0.7341, allocations: 2.599 MB / 493 MB, free: 12.91 MB / 378.7 MB Notification: Performance of Backend: time 6.71e-07/0.7341, allocations: 0 / 493 MB, free: 12.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009022/0.7431, allocations: 3.184 MB / 496.1 MB, free: 9.766 MB / 378.7 MB Notification: Performance of SimCode: time 0.02153/0.7647, allocations: 10.06 MB / 0.4943 GB, free: 15.66 MB / 394.7 MB Notification: Performance of Templates: time 0.3475/1.112, allocations: 32.13 MB / 0.5257 GB, free: 120.8 MB / 394.7 MB