Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.053/2.053, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003524/0.0003523, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.0961, allocations: 44.51 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.422/0.5181, allocations: 80.74 MB / 389.3 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003002/0.5185, allocations: 99.59 kB / 389.4 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1989/0.7174, allocations: 51.17 MB / 440.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.7175, allocations: 0 / 440.6 MB, free: 10.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001459/0.7177, allocations: 52 kB / 440.6 MB, free: 10.27 MB / 330.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.009305/0.727, allocations: 2.488 MB / 443.1 MB, free: 7.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.561e-05/0.7271, allocations: 8.031 kB / 443.1 MB, free: 7.922 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002683/0.7298, allocations: 0.5598 MB / 443.7 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0198/0.7496, allocations: 1.957 MB / 445.6 MB, free: 5.625 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007007/0.7567, allocations: 1.386 MB / 447 MB, free: 4.488 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004476/0.7572, allocations: 226.3 kB / 447.2 MB, free: 4.363 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002239/0.7594, allocations: 302.1 kB / 447.5 MB, free: 4.172 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04708/0.8066, allocations: 8.881 MB / 456.4 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003073/0.8069, allocations: 63.47 kB / 456.5 MB, free: 11.44 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001638/0.8086, allocations: 149.6 kB / 456.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003341/0.812, allocations: 0.7851 MB / 457.4 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03193/0.844, allocations: 7.137 MB / 464.5 MB, free: 3.383 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06378/0.9078, allocations: 38.03 MB / 0.4908 GB, free: 12.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03991/0.9478, allocations: 5.245 MB / 0.4959 GB, free: 6.793 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008909/0.9567, allocations: 3.343 MB / 0.4992 GB, free: 3.371 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.997e-05/0.9569, allocations: 46.59 kB / 0.4992 GB, free: 3.316 MB / 394.7 MB Notification: Performance of pre-optimization done (n=104): time 6.983e-06/0.9569, allocations: 4 kB / 0.4992 GB, free: 3.312 MB / 394.7 MB Notification: Performance of matching and sorting (n=104): time 0.08147/1.038, allocations: 9.852 MB / 0.5088 GB, free: 9.316 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/1.039, allocations: 195.9 kB / 0.509 GB, free: 9.082 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007109/1.046, allocations: 2.684 MB / 0.5116 GB, free: 6.383 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002516/1.046, allocations: 41.7 kB / 0.5117 GB, free: 6.336 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002893/1.049, allocations: 2.407 MB / 0.514 GB, free: 3.938 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009929/1.05, allocations: 481.7 kB / 0.5145 GB, free: 3.469 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006752/1.051, allocations: 104 kB / 0.5146 GB, free: 3.367 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005296/1.051, allocations: 0.5301 MB / 0.5151 GB, free: 2.828 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004592/1.056, allocations: 1.478 MB / 0.5166 GB, free: 1.344 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2719/1.328, allocations: 4.995 MB / 0.5214 GB, free: 112.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006988/1.335, allocations: 2.684 MB / 0.5241 GB, free: 112.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002886/1.335, allocations: 38.19 kB / 0.5241 GB, free: 112.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01735/1.352, allocations: 6.111 MB / 0.5301 GB, free: 112 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001364/1.353, allocations: 59.12 kB / 0.5301 GB, free: 112 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002475/1.353, allocations: 125.1 kB / 0.5302 GB, free: 112 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002398/1.353, allocations: 187.8 kB / 0.5304 GB, free: 112 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01006/1.363, allocations: 1.509 MB / 0.5319 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002554/1.364, allocations: 245.2 kB / 0.5321 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00567/1.369, allocations: 0.759 MB / 0.5329 GB, free: 111.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001297/1.371, allocations: 338.8 kB / 0.5332 GB, free: 111.9 MB / 410.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.004093/1.375, allocations: 1.56 MB / 0.5347 GB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000596/1.375, allocations: 248 kB / 0.5349 GB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002/1.377, allocations: 0.7037 MB / 0.5356 GB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.351e-05/1.377, allocations: 21.05 kB / 0.5356 GB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.05e-05/1.377, allocations: 0 / 0.5356 GB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/1.377, allocations: 6.766 kB / 0.5357 GB, free: 111.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005919/1.383, allocations: 2.262 MB / 0.5379 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.077e-05/1.383, allocations: 3.531 kB / 0.5379 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004791/1.388, allocations: 466.1 kB / 0.5383 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.886e-05/1.388, allocations: 7.719 kB / 0.5383 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/1.389, allocations: 36.97 kB / 0.5384 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-05/1.389, allocations: 3.719 kB / 0.5384 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.389, allocations: 11.55 kB / 0.5384 GB, free: 111.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004409/1.393, allocations: 2.589 MB / 0.5409 GB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007538/1.394, allocations: 305.3 kB / 0.5412 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005416/1.394, allocations: 26.72 kB / 0.5412 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/1.396, allocations: 50.91 kB / 0.5413 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002444/1.396, allocations: 57.5 kB / 0.5413 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/1.397, allocations: 32.16 kB / 0.5413 GB, free: 110.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004338/1.401, allocations: 1.812 MB / 0.5431 GB, free: 110 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.62e-07/1.401, allocations: 4 kB / 0.5431 GB, free: 110 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005735/1.407, allocations: 0.8172 MB / 0.5439 GB, free: 109.9 MB / 410.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 (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.0049/1.412, allocations: 3.529 MB / 0.5474 GB, free: 108.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007707/1.419, allocations: 3.357 MB / 0.5506 GB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/1.419, allocations: 1.75 kB / 0.5506 GB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/1.421, allocations: 0.6033 MB / 0.5512 GB, free: 107.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001848/1.423, allocations: 228.4 kB / 0.5515 GB, free: 107.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07438/1.497, allocations: 110.5 MB / 0.6594 GB, free: 19.64 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00698/1.504, allocations: 2.42 MB / 0.6617 GB, free: 18.57 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004165/1.508, allocations: 1.233 MB / 0.6629 GB, free: 17.53 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/1.508, allocations: 0 / 0.6629 GB, free: 17.53 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.055/5.563, allocations: 56.31 MB / 0.7179 GB, free: 124.1 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat