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.FreeBody.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.FreeBody,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.561/1.561, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003439/0.0003441, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07832/0.0787, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.356/0.4348, allocations: 81.4 MB / 353.5 MB, free: 8.32 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003075/0.4351, allocations: 86.45 kB / 353.6 MB, free: 8.273 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3019/0.737, allocations: 71.46 MB / 425.1 MB, free: 6.527 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.7371, allocations: 0 / 425.1 MB, free: 6.527 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002486/0.7374, allocations: 72 kB / 425.1 MB, free: 6.457 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.02244/0.7598, allocations: 3.989 MB / 429.1 MB, free: 2.402 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.7599, allocations: 8.031 kB / 429.1 MB, free: 2.395 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003056/0.763, allocations: 0.6827 MB / 429.8 MB, free: 1.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2472/1.01, allocations: 2.117 MB / 431.9 MB, free: 73.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01761/1.028, allocations: 4.444 MB / 436.4 MB, free: 73.12 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003582/1.028, allocations: 281.8 kB / 436.6 MB, free: 73.11 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001902/1.03, allocations: 370.6 kB / 437 MB, free: 73.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0246/1.055, allocations: 9.074 MB / 446.1 MB, free: 70.55 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001861/1.055, allocations: 54.31 kB / 446.1 MB, free: 70.55 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000908/1.056, allocations: 181.3 kB / 446.3 MB, free: 70.55 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001656/1.058, allocations: 0.8708 MB / 447.2 MB, free: 70.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02068/1.078, allocations: 7.351 MB / 454.5 MB, free: 70.43 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05586/1.134, allocations: 43.16 MB / 497.7 MB, free: 39.49 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01267/1.147, allocations: 3.156 MB / 0.4891 GB, free: 38.14 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01319/1.16, allocations: 6.054 MB / 0.495 GB, free: 34.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.902e-05/1.16, allocations: 49.89 kB / 0.4951 GB, free: 34.74 MB / 346.7 MB Notification: Performance of pre-optimization done (n=118): time 5.18e-06/1.16, allocations: 3.5 kB / 0.4951 GB, free: 34.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.04104/1.201, allocations: 10.92 MB / 0.5057 GB, free: 29.89 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001311/1.203, allocations: 1.625 MB / 0.5073 GB, free: 28.29 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006746/1.21, allocations: 3.142 MB / 0.5104 GB, free: 26.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004033/1.21, allocations: 43.5 kB / 0.5104 GB, free: 26.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002292/1.212, allocations: 2.719 MB / 0.5131 GB, free: 23.73 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008237/1.213, allocations: 0.5266 MB / 0.5136 GB, free: 23.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004455/1.214, allocations: 104.9 kB / 0.5137 GB, free: 23.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003248/1.214, allocations: 0.5327 MB / 0.5142 GB, free: 22.7 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003988/1.218, allocations: 1.854 MB / 0.516 GB, free: 21.13 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005993/1.224, allocations: 5.271 MB / 0.5212 GB, free: 14.51 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00629/1.23, allocations: 3.041 MB / 0.5241 GB, free: 11.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.653e-05/1.23, allocations: 37.88 kB / 0.5242 GB, free: 11.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.02027/1.251, allocations: 7.579 MB / 0.5316 GB, free: 5.188 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.775e-05/1.251, allocations: 56 kB / 0.5316 GB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007346/1.258, allocations: 2.404 MB / 0.534 GB, free: 3.184 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005329/1.264, allocations: 1.132 MB / 0.5351 GB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006705/1.27, allocations: 1.218 MB / 0.5363 GB, free: 1.281 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008529/1.279, allocations: 4.772 MB / 0.5409 GB, free: 12.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00661/1.286, allocations: 371.5 kB / 0.5413 GB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001307/1.287, allocations: 343 kB / 0.5416 GB, free: 12.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 556 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (657): * Single equations (assignments): 648 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.004977/1.292, allocations: 1.829 MB / 0.5434 GB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008686/1.293, allocations: 296.2 kB / 0.5437 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009521/1.302, allocations: 2.661 MB / 0.5463 GB, free: 7.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008146/1.311, allocations: 2.262 MB / 0.5485 GB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-05/1.311, allocations: 4 kB / 0.5485 GB, free: 5.695 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.723e-05/1.311, allocations: 7.969 kB / 0.5485 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009433/1.32, allocations: 3.357 MB / 0.5518 GB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.346e-05/1.32, allocations: 0 / 0.5518 GB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002128/1.322, allocations: 207.7 kB / 0.552 GB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006629/1.329, allocations: 1.037 MB / 0.553 GB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004427/1.33, allocations: 35.97 kB / 0.553 GB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2898/1.619, allocations: 5.083 MB / 0.558 GB, free: 76.55 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001265/1.621, allocations: 1.485 MB / 0.5594 GB, free: 75.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01315/1.634, allocations: 4.862 MB / 0.5642 GB, free: 74.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/1.635, allocations: 363.6 kB / 0.5645 GB, free: 74.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006699/1.636, allocations: 34.19 kB / 0.5646 GB, free: 74.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002405/1.638, allocations: 124.5 kB / 0.5647 GB, free: 74.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003595/1.638, allocations: 75.75 kB / 0.5648 GB, free: 74.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/1.639, allocations: 42.02 kB / 0.5648 GB, free: 74.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005291/1.644, allocations: 2.172 MB / 0.5669 GB, free: 74.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.644, allocations: 0 / 0.5669 GB, free: 74.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006607/1.651, allocations: 0.9302 MB / 0.5678 GB, free: 74.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.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 (93): * Single equations (assignments): 86 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01247/1.663, allocations: 5.686 MB / 0.5734 GB, free: 73.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01243/1.676, allocations: 5.061 MB / 0.5783 GB, free: 72.79 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/1.676, allocations: 0 / 0.5783 GB, free: 72.79 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006138/1.682, allocations: 2.005 MB / 0.5803 GB, free: 72.35 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002842/1.685, allocations: 352.4 kB / 0.5806 GB, free: 72.33 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08994/1.775, allocations: 113.8 MB / 0.6918 GB, free: 19.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008518/1.783, allocations: 2.946 MB / 0.6947 GB, free: 18.33 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005443/1.789, allocations: 1.599 MB / 0.6962 GB, free: 17.07 MB / 410.7 MB Notification: Performance of SimCode: time 2.464e-06/1.789, allocations: 0 / 0.6962 GB, free: 17.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.537/6.326, allocations: 130.2 MB / 0.8233 GB, free: 66.81 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat does not exist to compare? outputFormat=mat