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.PointGravityWithPointMasses.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.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.934/1.934, allocations: 194.8 MB / 211.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003337, allocations: 8 kB / 264.6 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.08839, allocations: 44.52 MB / 309.1 MB, free: 368 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.03533/0.1238, allocations: 23.57 MB / 332.6 MB, free: 8.715 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.1378, allocations: 5.426 MB / 338.1 MB, free: 3.277 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003808/0.1417, allocations: 111.8 kB / 338.2 MB, free: 3.168 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004012/0.1457, allocations: 1.17 MB / 339.3 MB, free: 1.992 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01174/0.1575, allocations: 3.191 MB / 342.5 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00164/0.1592, allocations: 207.6 kB / 342.7 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003284/0.1625, allocations: 1.279 MB / 344 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003629/0.1662, allocations: 1.845 MB / 345.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009859/0.1672, allocations: 0.5878 MB / 346.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001535/0.1688, allocations: 0.8292 MB / 347.3 MB, free: 10 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003894/0.1692, allocations: 84 kB / 347.4 MB, free: 9.918 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001493/0.1707, allocations: 0.5188 MB / 347.9 MB, free: 9.398 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001282/0.172, allocations: 0.978 MB / 348.9 MB, free: 8.418 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006868/0.1727, allocations: 0.5468 MB / 349.4 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005022/0.1777, allocations: 3.207 MB / 352.6 MB, free: 4.648 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1778, allocations: 4 kB / 352.6 MB, free: 4.645 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.816e-06/0.1778, allocations: 0 / 352.6 MB, free: 4.645 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.402e-05/0.1779, allocations: 0 / 352.6 MB, free: 4.645 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: 1094 * Number of variables: 1094 Notification: Performance of Generate backend data structure: time 0.005658/0.1836, allocations: 2.387 MB / 355 MB, free: 2.199 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.1836, allocations: 12.02 kB / 355 MB, free: 2.188 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01958/0.2032, allocations: 2.106 MB / 357.1 MB, free: 76 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004505/0.2078, allocations: 1.114 MB / 358.2 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000241/0.2081, allocations: 151.7 kB / 358.4 MB, free: 14.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000901/0.209, allocations: 195.8 kB / 358.6 MB, free: 14.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04091/0.2499, allocations: 8.531 MB / 367.1 MB, free: 5.441 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001626/0.2501, allocations: 39.59 kB / 367.1 MB, free: 5.402 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006562/0.2508, allocations: 107.8 kB / 367.3 MB, free: 5.297 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006922/0.2577, allocations: 1.651 MB / 368.9 MB, free: 3.648 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2679/0.5256, allocations: 7.105 MB / 376 MB, free: 59.87 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04294/0.5686, allocations: 29.84 MB / 405.9 MB, free: 36.83 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0396/0.6082, allocations: 4.976 MB / 410.8 MB, free: 32.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006305/0.6146, allocations: 3.415 MB / 414.2 MB, free: 29.49 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.6147, allocations: 50.48 kB / 414.3 MB, free: 29.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=104): time 4.759e-06/0.6147, allocations: 0 / 414.3 MB, free: 29.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.08103/0.6957, allocations: 9.479 MB / 423.8 MB, free: 19.81 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.274e-05/0.6958, allocations: 191.9 kB / 424 MB, free: 19.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004879/0.7007, allocations: 2.998 MB / 427 MB, free: 16.56 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000202/0.7009, allocations: 34.41 kB / 427 MB, free: 16.52 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.7026, allocations: 2.395 MB / 429.4 MB, free: 14.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005752/0.7032, allocations: 483.9 kB / 429.9 MB, free: 13.66 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003116/0.7035, allocations: 104 kB / 430 MB, free: 13.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003637/0.7039, allocations: 0.5885 MB / 430.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003328/0.7072, allocations: 1.572 MB / 432.1 MB, free: 11.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005435/0.7127, allocations: 5.091 MB / 437.2 MB, free: 4.5 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005412/0.7181, allocations: 2.784 MB / 440 MB, free: 1.719 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.057e-05/0.7183, allocations: 43.95 kB / 440 MB, free: 1.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.0158/0.7341, allocations: 6.353 MB / 446.4 MB, free: 11.31 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001196/0.7343, allocations: 60 kB / 446.5 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001914/0.7345, allocations: 124 kB / 446.6 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002502/0.7347, allocations: 184 kB / 446.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009276/0.744, allocations: 1.443 MB / 448.2 MB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002813/0.7443, allocations: 247 kB / 448.4 MB, free: 9.266 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004861/0.7492, allocations: 0.7349 MB / 449.2 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007906/0.75, allocations: 337.4 kB / 449.5 MB, free: 8.195 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (671): * Single equations (assignments): 668 * 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.003285/0.7533, allocations: 1.559 MB / 451.1 MB, free: 6.625 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006222/0.754, allocations: 248.8 kB / 451.3 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001977/0.7559, allocations: 0.8027 MB / 452.1 MB, free: 5.57 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.756, allocations: 11.92 kB / 452.1 MB, free: 5.559 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.756, allocations: 4 kB / 452.1 MB, free: 5.555 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000658/0.7567, allocations: 305.6 kB / 452.4 MB, free: 5.234 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004774/0.7572, allocations: 29.67 kB / 452.4 MB, free: 5.207 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/0.7587, allocations: 43.95 kB / 452.5 MB, free: 5.164 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002065/0.759, allocations: 52.81 kB / 452.5 MB, free: 5.113 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00767/0.7667, allocations: 2.16 MB / 454.7 MB, free: 2.961 MB / 330.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005266/0.772, allocations: 2.832 MB / 457.5 MB, free: 108 kB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001386/0.7734, allocations: 0.633 MB / 458.2 MB, free: 15.47 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003896/0.7773, allocations: 1.809 MB / 460 MB, free: 13.66 MB / 346.7 MB Notification: Performance of Backend: time 8.52e-07/0.7773, allocations: 0 / 460 MB, free: 13.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008368/0.7857, allocations: 3.094 MB / 463.1 MB, free: 10.61 MB / 346.7 MB Notification: Performance of SimCode: time 0.01849/0.8042, allocations: 8.733 MB / 471.8 MB, free: 1.82 MB / 346.7 MB Notification: Performance of Templates: time 0.08431/0.8886, allocations: 26.76 MB / 498.6 MB, free: 7.145 MB / 378.7 MB