Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadModel(Modelica): time 0.9865/0.9865, allocations: 111.2 MB / 127.3 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002633, allocations: 8 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05292/0.05321, allocations: 25.17 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2208/0.2741, allocations: 41.59 MB / 225.6 MB, free: 4.133 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.2744, allocations: 74.41 kB / 225.7 MB, free: 4.125 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.901/4.175, allocations: 381.4 MB / 0.5929 GB, free: 45.66 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.865e-06/4.175, allocations: 0 / 0.5929 GB, free: 45.66 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001393/4.175, allocations: 75.14 kB / 0.5929 GB, free: 45.66 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1569 * Number of variables: 1569 Notification: Performance of Generate backend data structure: time 0.2591/4.434, allocations: 34.41 MB / 0.6266 GB, free: 21.88 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/4.434, allocations: 8.031 kB / 0.6266 GB, free: 21.87 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.025/13.46, allocations: 0.8723 GB / 1.499 GB, free: 47.74 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04566/13.51, allocations: 12.45 MB / 1.511 GB, free: 46.43 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004951/13.51, allocations: 329.9 kB / 1.511 GB, free: 46.31 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01586/13.52, allocations: 429 kB / 1.512 GB, free: 46.2 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 2.618/16.14, allocations: 280.3 MB / 1.785 GB, free: 44.57 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003234/16.14, allocations: 40.56 kB / 1.785 GB, free: 44.57 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01341/16.15, allocations: 194.4 kB / 1.786 GB, free: 44.57 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006684/16.16, allocations: 1.512 MB / 1.787 GB, free: 44.55 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.116/21.28, allocations: 0.5353 GB / 2.322 GB, free: 60.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.183/27.46, allocations: 0.7749 GB / 3.097 GB, free: 49.27 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5408/28, allocations: 70.28 MB / 3.166 GB, free: 30.15 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5163/28.52, allocations: 75.69 MB / 3.24 GB, free: 47.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/28.52, allocations: 54.77 kB / 3.24 GB, free: 47.71 MB / 282.7 MB Notification: Performance of pre-optimization done (n=164): time 6.182e-06/28.52, allocations: 0 / 3.24 GB, free: 47.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=164): time 1.731/30.25, allocations: 172.8 MB / 3.409 GB, free: 69.2 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.72e-05/30.25, allocations: 198.4 kB / 3.409 GB, free: 68.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009433/30.26, allocations: 4.027 MB / 3.413 GB, free: 68.74 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003726/30.26, allocations: 49.48 kB / 3.413 GB, free: 68.71 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002721/30.27, allocations: 3.209 MB / 3.416 GB, free: 66.67 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004458/30.27, allocations: 0.701 MB / 3.417 GB, free: 66.18 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004338/30.27, allocations: 140.2 kB / 3.417 GB, free: 66.07 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0006213/30.27, allocations: 0.6059 MB / 3.417 GB, free: 65.64 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.6364/30.91, allocations: 59.8 MB / 3.476 GB, free: 68.46 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4574/31.37, allocations: 64.35 MB / 3.539 GB, free: 49.29 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.5836/31.95, allocations: 49.06 MB / 3.587 GB, free: 62 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00016/31.95, allocations: 43.47 kB / 3.587 GB, free: 62 MB / 282.7 MB Notification: Performance of matching and sorting (n=917) (initialization): time 1.053/33.01, allocations: 112.6 MB / 3.697 GB, free: 58.8 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001333/33.01, allocations: 78.25 kB / 3.697 GB, free: 58.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002982/33.01, allocations: 161.8 kB / 3.697 GB, free: 58.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002732/33.01, allocations: 242.9 kB / 3.697 GB, free: 58.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2147/33.22, allocations: 25.42 MB / 3.722 GB, free: 48.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003209/33.22, allocations: 318.3 kB / 3.722 GB, free: 48.42 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2034/33.42, allocations: 23.25 MB / 3.745 GB, free: 25.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0056/33.43, allocations: 1.103 MB / 3.746 GB, free: 24.69 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 739 * 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 (893): * Single equations (assignments): 890 * 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.01156/33.44, allocations: 2.092 MB / 3.748 GB, free: 23.08 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004198/33.45, allocations: 319.5 kB / 3.748 GB, free: 22.77 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2845/33.73, allocations: 10.28 MB / 3.758 GB, free: 60.55 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.842e-05/33.73, allocations: 26.56 kB / 3.758 GB, free: 60.55 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.12e-05/33.73, allocations: 3.172 kB / 3.758 GB, free: 60.55 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.447e-05/33.73, allocations: 13.58 kB / 3.758 GB, free: 60.55 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03664/33.77, allocations: 25.57 MB / 3.783 GB, free: 43.31 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.037e-05/33.77, allocations: 0 / 3.783 GB, free: 43.31 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2085/33.98, allocations: 24.02 MB / 3.807 GB, free: 43.15 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.513e-05/33.98, allocations: 15.52 kB / 3.807 GB, free: 43.15 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004092/33.98, allocations: 0.6609 MB / 3.807 GB, free: 43.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.051e-05/33.98, allocations: 5.188 kB / 3.807 GB, free: 43.05 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/33.98, allocations: 1.812 kB / 3.807 GB, free: 43.05 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 1.687/35.67, allocations: 172.2 MB / 3.976 GB, free: 61.07 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00136/35.67, allocations: 441.2 kB / 3.976 GB, free: 60.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005456/35.67, allocations: 41.31 kB / 3.976 GB, free: 60.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.1984/35.87, allocations: 22.31 MB / 3.998 GB, free: 58.71 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005072/35.87, allocations: 91.92 kB / 3.998 GB, free: 58.68 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003768/35.88, allocations: 0.6988 MB / 3.999 GB, free: 58.26 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.006363/35.88, allocations: 2.47 MB / 4.001 GB, free: 56.83 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.91e-07/35.88, allocations: 5.406 kB / 4.001 GB, free: 56.82 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.01838/35.9, allocations: 2.286 MB / 4.003 GB, free: 54.62 MB / 282.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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.00356/35.91, allocations: 187 kB / 4.003 GB, free: 54.46 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 1.092/37, allocations: 120.7 MB / 4.121 GB, free: 32.71 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/37, allocations: 0 / 4.121 GB, free: 32.71 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.6349/37.63, allocations: 59.22 MB / 4.179 GB, free: 61.23 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005433/37.64, allocations: 264.4 kB / 4.179 GB, free: 61.22 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6555/38.29, allocations: 69.32 MB / 4.247 GB, free: 57.14 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005756/38.3, allocations: 3.171 MB / 4.25 GB, free: 56.37 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0242/38.32, allocations: 2.327 MB / 4.252 GB, free: 56.36 MB / 282.7 MB Notification: Performance of SimCode: time 1.213e-06/38.32, allocations: 0.5625 kB / 4.252 GB, free: 56.36 MB / 282.7 MB Notification: Performance of Templates: time 0.8214/39.14, allocations: 234.9 MB / 4.482 GB, free: 25.01 MB / 282.7 MB