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.PointGravityWithPointMasses.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.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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 1.65/1.65, allocations: 171.2 MB / 184.2 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.943e-05/3.03e-05, allocations: 4 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2066, allocations: 38.79 MB / 267.6 MB, free: 9.414 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1118/0.3184, allocations: 75.23 MB / 342.8 MB, free: 14.07 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.3187, allocations: 87.94 kB / 342.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3617/0.6804, allocations: 51.24 MB / 394.2 MB, free: 51.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.6805, allocations: 3.938 kB / 394.2 MB, free: 51.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.413e-05/0.6806, allocations: 48 kB / 394.2 MB, free: 51.74 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.005679/0.6863, allocations: 2.404 MB / 396.6 MB, free: 49.28 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.6863, allocations: 8.031 kB / 396.6 MB, free: 49.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01021/0.6966, allocations: 1.958 MB / 398.6 MB, free: 47.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003512/0.7001, allocations: 1.38 MB / 400 MB, free: 45.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.7004, allocations: 226.1 kB / 400.2 MB, free: 45.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001172/0.7016, allocations: 307.8 kB / 400.5 MB, free: 45.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02124/0.7228, allocations: 8.837 MB / 409.3 MB, free: 35.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001499/0.723, allocations: 59.45 kB / 409.4 MB, free: 35.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005553/0.7236, allocations: 147.9 kB / 409.5 MB, free: 35.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001483/0.7251, allocations: 0.793 MB / 410.3 MB, free: 34.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01905/0.7442, allocations: 7.029 MB / 417.3 MB, free: 27.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04363/0.7878, allocations: 38.03 MB / 455.4 MB, free: 4.219 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03144/0.8193, allocations: 5.215 MB / 460.6 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003525/0.8229, allocations: 0.9118 MB / 461.5 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01174/0.8347, allocations: 3.342 MB / 464.8 MB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.398e-05/0.8349, allocations: 54.48 kB / 464.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of pre-optimization done (n=104): time 8.527e-06/0.8349, allocations: 0 / 464.9 MB, free: 10.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=104): time 0.07274/0.9077, allocations: 8.056 MB / 472.9 MB, free: 2.312 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001408/0.9078, allocations: 191.9 kB / 473.1 MB, free: 2.082 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006266/0.9141, allocations: 2.661 MB / 475.8 MB, free: 15.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001889/0.9144, allocations: 41.7 kB / 475.8 MB, free: 15.35 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002538/0.9169, allocations: 2.412 MB / 478.2 MB, free: 12.91 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007856/0.9177, allocations: 478.3 kB / 478.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005172/0.9183, allocations: 104 kB / 478.8 MB, free: 12.33 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005269/0.9188, allocations: 0.5379 MB / 479.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003513/0.9223, allocations: 1.44 MB / 480.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007099/0.9295, allocations: 4.963 MB / 485.8 MB, free: 3.582 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005824/0.9353, allocations: 2.7 MB / 488.5 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001067/0.9355, allocations: 36 kB / 488.5 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.211/1.146, allocations: 6.041 MB / 494.5 MB, free: 91.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/1.147, allocations: 60.78 kB / 494.6 MB, free: 91.95 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001416/1.147, allocations: 124.3 kB / 494.7 MB, free: 91.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000203/1.147, allocations: 186.4 kB / 494.9 MB, free: 91.95 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007165/1.154, allocations: 1.511 MB / 496.4 MB, free: 91.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002156/1.154, allocations: 241.8 kB / 496.6 MB, free: 91.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005794/1.16, allocations: 0.7505 MB / 497.4 MB, free: 91.79 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009403/1.161, allocations: 338.5 kB / 497.7 MB, free: 91.79 MB / 346.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 () * 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.0008614/1.162, allocations: 0.5171 MB / 498.2 MB, free: 91.56 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005501/1.163, allocations: 246.7 kB / 498.5 MB, free: 91.47 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/1.164, allocations: 0.704 MB / 499.2 MB, free: 91.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.443e-05/1.164, allocations: 12.2 kB / 499.2 MB, free: 91.39 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/1.164, allocations: 8.031 kB / 499.2 MB, free: 91.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/1.164, allocations: 11.42 kB / 499.2 MB, free: 91.38 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005108/1.169, allocations: 2.269 MB / 0.4897 GB, free: 91.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-05/1.17, allocations: 3.938 kB / 0.4897 GB, free: 91.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003681/1.173, allocations: 464.4 kB / 0.4902 GB, free: 91.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.89e-05/1.173, allocations: 7.844 kB / 0.4902 GB, free: 91.13 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001973/1.174, allocations: 32.72 kB / 0.4902 GB, free: 91.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.066e-06/1.174, allocations: 3.875 kB / 0.4902 GB, free: 91.13 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/1.174, allocations: 3.875 kB / 0.4902 GB, free: 91.13 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003718/1.177, allocations: 2.56 MB / 0.4927 GB, free: 90.31 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006881/1.178, allocations: 316.4 kB / 0.493 GB, free: 90.08 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004061/1.178, allocations: 26.38 kB / 0.4931 GB, free: 90.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001329/1.18, allocations: 48.25 kB / 0.4931 GB, free: 90.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/1.18, allocations: 61.2 kB / 0.4932 GB, free: 90.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/1.18, allocations: 31.19 kB / 0.4932 GB, free: 90.07 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003732/1.184, allocations: 1.786 MB / 0.4949 GB, free: 89.91 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.084e-06/1.184, allocations: 0.6562 kB / 0.4949 GB, free: 89.91 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005342/1.189, allocations: 0.8234 MB / 0.4957 GB, free: 89.82 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (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],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 78 * 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.0004658/1.19, allocations: 163.2 kB / 0.4959 GB, free: 89.72 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006471/1.196, allocations: 3.32 MB / 0.4991 GB, free: 89.38 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.584e-06/1.196, allocations: 0 / 0.4991 GB, free: 89.38 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/1.197, allocations: 0.5996 MB / 0.4997 GB, free: 89.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001812/1.199, allocations: 232.8 kB / 0.4999 GB, free: 89.18 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/1.213, allocations: 6.451 MB / 0.5062 GB, free: 86.46 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003583/1.217, allocations: 2.42 MB / 0.5086 GB, free: 84.88 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000862/1.218, allocations: 225.3 kB / 0.5088 GB, free: 84.67 MB / 346.7 MB Notification: Performance of SimCode: time 2.303e-06/1.218, allocations: 3.938 kB / 0.5088 GB, free: 84.67 MB / 346.7 MB Notification: Performance of Templates: time 0.05711/1.275, allocations: 38.98 MB / 0.5469 GB, free: 51.65 MB / 346.7 MB