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.PointGravity.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.PointGravity,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.729/1.729, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003587/0.0003588, allocations: 15.98 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08252/0.08295, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3599/0.4429, allocations: 75.78 MB / 347.9 MB, free: 13.89 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.4433, allocations: 89.75 kB / 348 MB, free: 13.84 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2771/0.7204, allocations: 59 MB / 407 MB, free: 8.645 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.427e-06/0.7205, allocations: 0 / 407 MB, free: 8.645 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001559/0.7206, allocations: 47.94 kB / 407 MB, free: 8.598 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.02758/0.7482, allocations: 3.603 MB / 410.6 MB, free: 4.934 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.673e-05/0.7483, allocations: 8.031 kB / 410.6 MB, free: 4.926 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002358/0.7507, allocations: 485.2 kB / 411.1 MB, free: 4.441 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02063/0.7714, allocations: 2.321 MB / 413.4 MB, free: 2.113 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01983/0.7913, allocations: 4.859 MB / 418.3 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003192/0.7916, allocations: 172.4 kB / 418.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001712/0.7934, allocations: 231.8 kB / 418.7 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03041/0.8238, allocations: 8.579 MB / 427.3 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001655/0.824, allocations: 47.53 kB / 427.3 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008133/0.8248, allocations: 115.9 kB / 427.4 MB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001864/0.8267, allocations: 0.7298 MB / 428.2 MB, free: 2.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.264/1.091, allocations: 9.654 MB / 437.8 MB, free: 82.21 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05106/1.142, allocations: 37.73 MB / 475.5 MB, free: 58.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01978/1.162, allocations: 4.038 MB / 479.6 MB, free: 56.75 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001715/1.162, allocations: 13.5 kB / 479.6 MB, free: 56.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/1.162, allocations: 46.8 kB / 479.6 MB, free: 56.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=122): time 5.2e-06/1.162, allocations: 0 / 479.6 MB, free: 56.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=136): time 0.07691/1.239, allocations: 17.75 MB / 497.4 MB, free: 50.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002466/1.241, allocations: 3.066 MB / 0.4887 GB, free: 47.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006284/1.248, allocations: 2.701 MB / 0.4914 GB, free: 46.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006106/1.248, allocations: 48.88 kB / 0.4914 GB, free: 46.72 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001636/1.25, allocations: 2.05 MB / 0.4934 GB, free: 45.22 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/1.251, allocations: 0.5657 MB / 0.494 GB, free: 44.82 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005048/1.252, allocations: 92.67 kB / 0.4941 GB, free: 44.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002854/1.252, allocations: 0.5156 MB / 0.4946 GB, free: 44.35 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00609/1.258, allocations: 2.382 MB / 0.4969 GB, free: 43.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007934/1.266, allocations: 5.269 MB / 0.502 GB, free: 37.17 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008066/1.274, allocations: 3.415 MB / 0.5054 GB, free: 34.18 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.931e-05/1.274, allocations: 28 kB / 0.5054 GB, free: 34.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.03103/1.305, allocations: 9.161 MB / 0.5143 GB, free: 26.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.882e-05/1.306, allocations: 48 kB / 0.5144 GB, free: 26.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01853/1.324, allocations: 4.513 MB / 0.5188 GB, free: 22.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01388/1.338, allocations: 2.197 MB / 0.5209 GB, free: 19.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007679/1.346, allocations: 1.189 MB / 0.5221 GB, free: 18.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008682/1.354, allocations: 7.446 MB / 0.5294 GB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008088/1.363, allocations: 0.5629 MB / 0.5299 GB, free: 10.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001454/1.364, allocations: 301 kB / 0.5302 GB, free: 9.965 MB / 346.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 (581): * Single equations (assignments): 566 * 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 {1,1} * 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.004117/1.368, allocations: 1.41 MB / 0.5316 GB, free: 8.551 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008105/1.369, allocations: 253 kB / 0.5318 GB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001395/1.37, allocations: 419.2 kB / 0.5322 GB, free: 7.883 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0191/1.39, allocations: 4.588 MB / 0.5367 GB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.5e-05/1.39, allocations: 7.938 kB / 0.5367 GB, free: 3.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-05/1.39, allocations: 11.05 kB / 0.5367 GB, free: 3.242 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01496/1.405, allocations: 5.322 MB / 0.5419 GB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-05/1.405, allocations: 0 / 0.5419 GB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003253/1.408, allocations: 287.5 kB / 0.5422 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01592/1.424, allocations: 2.374 MB / 0.5445 GB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000701/1.425, allocations: 44.89 kB / 0.5446 GB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.016/1.441, allocations: 9.001 MB / 0.5533 GB, free: 1.637 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.2424/1.683, allocations: 2.903 MB / 0.5562 GB, free: 88.19 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02882/1.712, allocations: 8.142 MB / 0.5641 GB, free: 87.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/1.713, allocations: 336.5 kB / 0.5645 GB, free: 87.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/1.715, allocations: 30.55 kB / 0.5645 GB, free: 87.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004327/1.719, allocations: 266.6 kB / 0.5647 GB, free: 87.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009115/1.72, allocations: 113.9 kB / 0.5648 GB, free: 87.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002536/1.72, allocations: 40.81 kB / 0.5649 GB, free: 87.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005715/1.726, allocations: 1.903 MB / 0.5667 GB, free: 87.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.21e-07/1.726, allocations: 0 / 0.5667 GB, free: 87.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006842/1.733, allocations: 0.928 MB / 0.5677 GB, free: 87.3 MB / 362.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.02823/1.761, allocations: 9.023 MB / 0.5765 GB, free: 85.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01771/1.779, allocations: 6.555 MB / 0.5829 GB, free: 85.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/1.779, allocations: 0 / 0.5829 GB, free: 85.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0097/1.789, allocations: 3.432 MB / 0.5862 GB, free: 84.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002747/1.791, allocations: 272.3 kB / 0.5865 GB, free: 84.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09481/1.886, allocations: 100.3 MB / 0.6844 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003536/1.89, allocations: 2.347 MB / 0.6867 GB, free: 9.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003262/1.893, allocations: 1.187 MB / 0.6879 GB, free: 8.684 MB / 378.7 MB Notification: Performance of SimCode: time 1.713e-06/1.893, allocations: 0 / 0.6879 GB, free: 8.684 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.13/7.023, allocations: 148 MB / 0.8324 GB, free: 93.14 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.PointGravity_res.mat does not exist to compare? outputFormat=mat