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.PointGravity.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.PointGravity,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.101/2.101, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003628/0.0003627, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09667, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4286/0.5253, allocations: 81.41 MB / 390 MB, free: 14.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.5257, allocations: 89.77 kB / 390 MB, free: 14.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2485/0.7741, allocations: 59.17 MB / 449.2 MB, free: 2.691 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.7742, allocations: 0 / 449.2 MB, free: 2.691 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001533/0.7744, allocations: 48 kB / 449.3 MB, free: 2.645 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: 908 * Number of variables: 908 Notification: Performance of Generate backend data structure: time 0.02898/0.8034, allocations: 3.607 MB / 452.9 MB, free: 15.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.8034, allocations: 8.031 kB / 452.9 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002355/0.8058, allocations: 490.5 kB / 453.4 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02124/0.8271, allocations: 2.346 MB / 455.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0202/0.8473, allocations: 4.87 MB / 460.6 MB, free: 8.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003445/0.8477, allocations: 166.1 kB / 460.7 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001812/0.8496, allocations: 232.9 kB / 461 MB, free: 8.059 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03189/0.8815, allocations: 8.577 MB / 469.5 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001877/0.8818, allocations: 47.53 kB / 469.6 MB, free: 14.64 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001197/0.883, allocations: 125.3 kB / 469.7 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00202/0.885, allocations: 0.7219 MB / 470.4 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03425/0.9193, allocations: 9.665 MB / 480.1 MB, free: 4.156 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06257/0.9819, allocations: 37.73 MB / 0.5057 GB, free: 13.32 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02181/1.004, allocations: 4.044 MB / 0.5096 GB, free: 9.117 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001979/1.004, allocations: 15.5 kB / 0.5097 GB, free: 9.105 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.88e-05/1.004, allocations: 46.5 kB / 0.5097 GB, free: 9.051 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 5.471e-06/1.004, allocations: 4 kB / 0.5097 GB, free: 9.047 MB / 410.7 MB Notification: Performance of matching and sorting (n=136): time 0.35/1.354, allocations: 17.74 MB / 0.527 GB, free: 111.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002575/1.357, allocations: 3.073 MB / 0.53 GB, free: 108.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007832/1.365, allocations: 2.702 MB / 0.5327 GB, free: 108.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006447/1.365, allocations: 45.08 kB / 0.5327 GB, free: 108.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002123/1.367, allocations: 2.047 MB / 0.5347 GB, free: 107.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001431/1.369, allocations: 0.569 MB / 0.5353 GB, free: 106.9 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008674/1.37, allocations: 91.88 kB / 0.5353 GB, free: 106.9 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004429/1.37, allocations: 0.511 MB / 0.5358 GB, free: 106.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006956/1.377, allocations: 2.395 MB / 0.5382 GB, free: 106.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00838/1.386, allocations: 5.267 MB / 0.5433 GB, free: 102.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008644/1.394, allocations: 3.427 MB / 0.5467 GB, free: 102.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.874e-05/1.395, allocations: 30.06 kB / 0.5467 GB, free: 102.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.03473/1.429, allocations: 9.362 MB / 0.5558 GB, free: 100.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.411e-05/1.429, allocations: 47.03 kB / 0.5559 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02052/1.45, allocations: 4.67 MB / 0.5604 GB, free: 99.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01665/1.467, allocations: 2.345 MB / 0.5627 GB, free: 99.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00762/1.474, allocations: 1.169 MB / 0.5639 GB, free: 99.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01273/1.487, allocations: 8.285 MB / 0.572 GB, free: 93.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009146/1.496, allocations: 0.5708 MB / 0.5725 GB, free: 93.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001676/1.498, allocations: 300.2 kB / 0.5728 GB, free: 93.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * Number of states: 0 () * Number of discrete variables: 15 (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 (575): * Single equations (assignments): 560 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005151/1.503, allocations: 1.406 MB / 0.5742 GB, free: 92.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001097/1.504, allocations: 251.7 kB / 0.5744 GB, free: 92.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/1.506, allocations: 417.9 kB / 0.5748 GB, free: 92.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02063/1.527, allocations: 4.576 MB / 0.5793 GB, free: 91.02 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.115e-05/1.527, allocations: 7.531 kB / 0.5793 GB, free: 91.02 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.269e-05/1.527, allocations: 11.41 kB / 0.5793 GB, free: 91.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01603/1.543, allocations: 5.345 MB / 0.5845 GB, free: 88.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.667e-05/1.543, allocations: 0 / 0.5845 GB, free: 88.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00321/1.546, allocations: 282.1 kB / 0.5848 GB, free: 88.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01592/1.562, allocations: 2.374 MB / 0.5871 GB, free: 87.13 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007234/1.563, allocations: 45.06 kB / 0.5872 GB, free: 87.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01411/1.577, allocations: 8.996 MB / 0.5959 GB, free: 78.67 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002371/1.58, allocations: 2.922 MB / 0.5988 GB, free: 75.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02696/1.607, allocations: 8.132 MB / 0.6067 GB, free: 68.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/1.608, allocations: 336.8 kB / 0.6071 GB, free: 68.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009144/1.609, allocations: 39.3 kB / 0.6071 GB, free: 68.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003934/1.613, allocations: 271 kB / 0.6074 GB, free: 68.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007292/1.614, allocations: 96.77 kB / 0.6075 GB, free: 68.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/1.614, allocations: 43.97 kB / 0.6075 GB, free: 68.32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004653/1.619, allocations: 1.906 MB / 0.6094 GB, free: 66.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.32e-07/1.619, allocations: 0 / 0.6094 GB, free: 66.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00627/1.625, allocations: 0.9376 MB / 0.6103 GB, free: 65.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02647/1.651, allocations: 9.031 MB / 0.6191 GB, free: 56.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0182/1.67, allocations: 6.789 MB / 0.6257 GB, free: 49.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/1.67, allocations: 0 / 0.6257 GB, free: 49.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01026/1.68, allocations: 3.437 MB / 0.6291 GB, free: 45.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003967/1.684, allocations: 270.5 kB / 0.6293 GB, free: 45.64 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.393/2.077, allocations: 100.5 MB / 0.7275 GB, free: 60.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003105/2.08, allocations: 2.353 MB / 0.7298 GB, free: 59.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003252/2.084, allocations: 1.186 MB / 0.7309 GB, free: 59.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.042e-06/2.084, allocations: 2.344 kB / 0.7309 GB, free: 59.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.054/7.138, allocations: 148.5 MB / 0.8759 GB, free: 107.9 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.PointGravity_res.mat does not exist to compare? outputFormat=mat