Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadModel(Modelica): time 1.652/1.652, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003412/0.0003413, allocations: 11.98 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07775/0.07811, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2641/0.3422, allocations: 31.59 MB / 304.2 MB, free: 8.375 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01926/0.3615, allocations: 7.926 MB / 312.1 MB, free: 7.938 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006469/0.3681, allocations: 155.8 kB / 312.3 MB, free: 7.914 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005479/0.3736, allocations: 1.575 MB / 313.9 MB, free: 7.617 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01714/0.3908, allocations: 4.627 MB / 318.5 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00314/0.394, allocations: 0.6335 MB / 319.1 MB, free: 6.254 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005715/0.3997, allocations: 2.43 MB / 321.6 MB, free: 5.703 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005657/0.4054, allocations: 3.336 MB / 324.9 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002095/0.4076, allocations: 1.051 MB / 325.9 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002319/0.4099, allocations: 1.455 MB / 327.4 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006113/0.4105, allocations: 140.2 kB / 327.5 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001965/0.4125, allocations: 0.6998 MB / 328.2 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001632/0.4142, allocations: 1.499 MB / 329.7 MB, free: 2.969 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008844/0.4151, allocations: 0.7817 MB / 330.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006826/0.4219, allocations: 4.83 MB / 335.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.422, allocations: 0 / 335.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.422, allocations: 0 / 335.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001417/0.4221, allocations: 0 / 335.4 MB, free: 13.57 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.01046/0.4326, allocations: 3.836 MB / 339.2 MB, free: 9.691 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.956e-05/0.4327, allocations: 8.031 kB / 339.2 MB, free: 9.684 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01449/0.4472, allocations: 2.263 MB / 341.5 MB, free: 7.414 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007429/0.4546, allocations: 2.682 MB / 344.1 MB, free: 4.695 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002521/0.4549, allocations: 222.8 kB / 344.4 MB, free: 4.512 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008054/0.4557, allocations: 290.4 kB / 344.6 MB, free: 4.266 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02319/0.4789, allocations: 9.569 MB / 354.2 MB, free: 10.04 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.4791, allocations: 43.53 kB / 354.3 MB, free: 10 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005799/0.4797, allocations: 145.3 kB / 354.4 MB, free: 9.895 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004926/0.4847, allocations: 1.902 MB / 356.3 MB, free: 8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02369/0.5084, allocations: 7.581 MB / 363.9 MB, free: 408 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06181/0.5702, allocations: 37.56 MB / 401.4 MB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01284/0.5831, allocations: 2.761 MB / 404.2 MB, free: 6.949 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01272/0.5959, allocations: 3.448 MB / 407.6 MB, free: 3.383 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.674e-05/0.5961, allocations: 55.14 kB / 407.7 MB, free: 3.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=127): time 7.414e-06/0.5961, allocations: 0 / 407.7 MB, free: 3.32 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.03552/0.6316, allocations: 9.178 MB / 416.9 MB, free: 9.965 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.053e-05/0.6317, allocations: 141.5 kB / 417 MB, free: 9.797 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008147/0.6399, allocations: 4.136 MB / 421.2 MB, free: 5.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002255/0.6402, allocations: 48.75 kB / 421.2 MB, free: 5.629 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003174/0.6434, allocations: 3.077 MB / 424.3 MB, free: 2.555 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008196/0.6442, allocations: 0.5849 MB / 424.9 MB, free: 1.973 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003506/0.6446, allocations: 116 kB / 425 MB, free: 1.859 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004688/0.645, allocations: 0.5459 MB / 425.5 MB, free: 1.305 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004133/0.6492, allocations: 1.526 MB / 427 MB, free: 15.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007464/0.6567, allocations: 5.261 MB / 432.3 MB, free: 8.625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006877/0.6636, allocations: 2.781 MB / 435.1 MB, free: 5.848 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.455e-05/0.6637, allocations: 40 kB / 435.1 MB, free: 5.809 MB / 362.7 MB Notification: Performance of matching and sorting (n=752) (initialization): time 0.2409/0.9046, allocations: 6.523 MB / 441.7 MB, free: 118.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001125/0.9048, allocations: 62.12 kB / 441.7 MB, free: 118.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001954/0.905, allocations: 133.9 kB / 441.8 MB, free: 118.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002538/0.9052, allocations: 194 kB / 442 MB, free: 118.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007644/0.9129, allocations: 1.36 MB / 443.4 MB, free: 118.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002739/0.9132, allocations: 260.8 kB / 443.6 MB, free: 118.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005223/0.9184, allocations: 281.1 kB / 443.9 MB, free: 118.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007608/0.9192, allocations: 360.1 kB / 444.3 MB, free: 118.6 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.004529/0.9238, allocations: 1.963 MB / 446.2 MB, free: 118.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007453/0.9245, allocations: 334.2 kB / 446.6 MB, free: 118.5 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003186/0.9277, allocations: 1.212 MB / 447.8 MB, free: 118.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.772e-05/0.9278, allocations: 11.22 kB / 447.8 MB, free: 118.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.854e-06/0.9278, allocations: 0 / 447.8 MB, free: 118.4 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001476/0.9293, allocations: 0.5114 MB / 448.3 MB, free: 118.3 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006537/0.93, allocations: 22.98 kB / 448.3 MB, free: 118.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/0.9317, allocations: 50.52 kB / 448.4 MB, free: 118.2 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.9319, allocations: 71.88 kB / 448.4 MB, free: 118.2 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004679/0.9366, allocations: 1.838 MB / 450.3 MB, free: 117.4 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005948/0.9426, allocations: 2.967 MB / 453.2 MB, free: 116.2 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001439/0.9441, allocations: 0.6682 MB / 453.9 MB, free: 116 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005009/0.9491, allocations: 2.602 MB / 456.5 MB, free: 115.1 MB / 362.7 MB Notification: Performance of Backend: time 1.103e-06/0.9491, allocations: 0 / 456.5 MB, free: 115.1 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008179/0.9573, allocations: 3.194 MB / 459.7 MB, free: 114.4 MB / 362.7 MB Notification: Performance of SimCode: time 0.01903/0.9764, allocations: 10.06 MB / 469.8 MB, free: 109 MB / 362.7 MB Notification: Performance of Templates: time 0.09949/1.076, allocations: 32.14 MB / 0.4901 GB, free: 79.16 MB / 362.7 MB