Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.649/1.649, allocations: 171.2 MB / 186.8 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004764/0.0004767, allocations: 8 kB / 233.3 MB, free: 0.8203 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08221/0.08272, allocations: 38.77 MB / 272.1 MB, free: 9.969 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3475/0.4303, allocations: 75.32 MB / 347.4 MB, free: 7.664 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003342/0.4307, allocations: 83.95 kB / 347.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2095/0.6402, allocations: 51.17 MB / 398.7 MB, free: 3.961 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.849e-06/0.6403, allocations: 8 kB / 398.7 MB, free: 3.953 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001303/0.6404, allocations: 55.92 kB / 398.8 MB, free: 3.898 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.00809/0.6485, allocations: 2.478 MB / 401.2 MB, free: 1.359 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.6486, allocations: 12.03 kB / 401.2 MB, free: 1.348 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001879/0.6505, allocations: 0.5566 MB / 401.8 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01527/0.6658, allocations: 1.95 MB / 403.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004646/0.6704, allocations: 1.392 MB / 405.1 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002716/0.6708, allocations: 221.8 kB / 405.4 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001284/0.672, allocations: 307.8 kB / 405.7 MB, free: 12.87 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03208/0.7041, allocations: 8.888 MB / 414.5 MB, free: 3.039 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001961/0.7044, allocations: 59.45 kB / 414.6 MB, free: 2.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007512/0.7052, allocations: 147.9 kB / 414.8 MB, free: 2.836 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002276/0.7074, allocations: 0.793 MB / 415.5 MB, free: 2.039 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2605/0.9679, allocations: 7.123 MB / 422.7 MB, free: 85.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04968/1.018, allocations: 38.03 MB / 460.7 MB, free: 59.74 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03681/1.055, allocations: 5.236 MB / 465.9 MB, free: 58.61 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006776/1.061, allocations: 3.342 MB / 469.3 MB, free: 56.55 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.509e-05/1.061, allocations: 52.11 kB / 469.3 MB, free: 56.5 MB / 346.7 MB Notification: Performance of pre-optimization done (n=104): time 4.028e-06/1.061, allocations: 2.219 kB / 469.3 MB, free: 56.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=104): time 0.07688/1.138, allocations: 9.852 MB / 479.2 MB, free: 55.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.178e-05/1.138, allocations: 198 kB / 479.4 MB, free: 54.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004937/1.143, allocations: 2.686 MB / 482.1 MB, free: 53.86 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001876/1.144, allocations: 37.23 kB / 482.1 MB, free: 53.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001613/1.145, allocations: 2.411 MB / 484.5 MB, free: 51.98 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005707/1.146, allocations: 477.2 kB / 485 MB, free: 51.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003058/1.146, allocations: 105.3 kB / 485.1 MB, free: 51.58 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003139/1.147, allocations: 0.5324 MB / 485.6 MB, free: 51.17 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003145/1.15, allocations: 1.478 MB / 487.1 MB, free: 50.71 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004821/1.155, allocations: 5.005 MB / 492.1 MB, free: 45.36 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005346/1.16, allocations: 2.685 MB / 494.8 MB, free: 44.26 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.116e-05/1.16, allocations: 37 kB / 494.8 MB, free: 44.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.0132/1.173, allocations: 6.115 MB / 0.4892 GB, free: 40.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.222e-05/1.173, allocations: 63.95 kB / 0.4892 GB, free: 40.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001211/1.173, allocations: 129.4 kB / 0.4894 GB, free: 40.01 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001791/1.174, allocations: 184 kB / 0.4895 GB, free: 39.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009006/1.183, allocations: 1.513 MB / 0.491 GB, free: 38.51 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001826/1.183, allocations: 243 kB / 0.4913 GB, free: 38.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004666/1.188, allocations: 0.7496 MB / 0.492 GB, free: 37.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005814/1.188, allocations: 344.2 kB / 0.4923 GB, free: 37.18 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 () * 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.002794/1.191, allocations: 1.556 MB / 0.4938 GB, free: 35.62 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005064/1.191, allocations: 248.8 kB / 0.4941 GB, free: 35.37 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001592/1.193, allocations: 0.7086 MB / 0.4948 GB, free: 34.65 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.104e-05/1.193, allocations: 12 kB / 0.4948 GB, free: 34.64 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/1.193, allocations: 7.984 kB / 0.4948 GB, free: 34.63 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/1.193, allocations: 3.984 kB / 0.4948 GB, free: 34.63 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004752/1.198, allocations: 2.265 MB / 0.497 GB, free: 32.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/1.198, allocations: 4 kB / 0.497 GB, free: 32.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004733/1.203, allocations: 467.4 kB / 0.4974 GB, free: 31.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.285e-05/1.203, allocations: 8 kB / 0.4975 GB, free: 31.86 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/1.203, allocations: 37.61 kB / 0.4975 GB, free: 31.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.789e-06/1.203, allocations: 7.938 kB / 0.4975 GB, free: 31.82 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/1.203, allocations: 3.953 kB / 0.4975 GB, free: 31.82 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004025/1.207, allocations: 2.589 MB / 0.5 GB, free: 29.16 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005568/1.208, allocations: 301.6 kB / 0.5003 GB, free: 28.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003986/1.208, allocations: 28.84 kB / 0.5003 GB, free: 28.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/1.209, allocations: 47.94 kB / 0.5004 GB, free: 28.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/1.21, allocations: 59.88 kB / 0.5004 GB, free: 28.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/1.21, allocations: 33.39 kB / 0.5005 GB, free: 28.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003328/1.213, allocations: 1.812 MB / 0.5022 GB, free: 26.86 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/1.213, allocations: 0 / 0.5022 GB, free: 26.86 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004897/1.218, allocations: 0.8264 MB / 0.5031 GB, free: 26.04 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 () * 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.00446/1.223, allocations: 3.526 MB / 0.5065 GB, free: 22.47 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006909/1.229, allocations: 3.362 MB / 0.5098 GB, free: 19.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/1.23, allocations: 448 / 0.5098 GB, free: 19.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/1.231, allocations: 0.601 MB / 0.5104 GB, free: 18.54 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001628/1.232, allocations: 243.9 kB / 0.5106 GB, free: 18.31 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2944/1.527, allocations: 110.5 MB / 0.6185 GB, free: 22.78 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003758/1.531, allocations: 2.421 MB / 0.6209 GB, free: 22.04 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002624/1.533, allocations: 1.236 MB / 0.6221 GB, free: 22.03 MB / 362.7 MB Notification: Performance of SimCode: time 1.002e-06/1.533, allocations: 0 / 0.6221 GB, free: 22.03 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.478/5.012, allocations: 56.32 MB / 0.6771 GB, free: 11.08 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat does not exist to compare? outputFormat=mat