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.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.982/1.982, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006525/0.0006526, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.109, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4154/0.5244, allocations: 85.13 MB / 393.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.5248, allocations: 92.7 kB / 393.8 MB, free: 14.56 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2459/0.7707, allocations: 56.6 MB / 450.4 MB, free: 1.891 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.7708, allocations: 0 / 450.4 MB, free: 1.891 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001472/0.7709, allocations: 44 kB / 450.4 MB, free: 1.848 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: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.02373/0.7947, allocations: 3.028 MB / 453.4 MB, free: 14.96 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.992e-05/0.7948, allocations: 12.03 kB / 453.4 MB, free: 14.95 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003433/0.7982, allocations: 0.4964 MB / 453.9 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02395/0.8222, allocations: 2.047 MB / 456 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02176/0.8441, allocations: 3.612 MB / 459.6 MB, free: 9.594 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004572/0.8446, allocations: 189.4 kB / 459.8 MB, free: 9.488 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002338/0.8469, allocations: 255.2 kB / 460 MB, free: 9.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03164/0.8788, allocations: 6.888 MB / 466.9 MB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002427/0.8791, allocations: 47.53 kB / 467 MB, free: 2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001415/0.8806, allocations: 127 kB / 467.1 MB, free: 1.895 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002855/0.8835, allocations: 0.707 MB / 467.8 MB, free: 1.188 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02944/0.913, allocations: 5.982 MB / 473.8 MB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07327/0.9863, allocations: 32.26 MB / 0.4942 GB, free: 9.98 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01778/1.004, allocations: 2.526 MB / 0.4967 GB, free: 7.309 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01391/1.018, allocations: 3.559 MB / 0.5001 GB, free: 3.562 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.906e-05/1.018, allocations: 47 kB / 0.5002 GB, free: 3.508 MB / 394.7 MB Notification: Performance of pre-optimization done (n=105): time 7.093e-06/1.018, allocations: 0 / 0.5002 GB, free: 3.508 MB / 394.7 MB Notification: Performance of matching and sorting (n=118): time 0.06319/1.081, allocations: 10.34 MB / 0.5103 GB, free: 8.926 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002234/1.084, allocations: 1.595 MB / 0.5118 GB, free: 7.156 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007622/1.091, allocations: 2.451 MB / 0.5142 GB, free: 4.688 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004224/1.092, allocations: 41.7 kB / 0.5143 GB, free: 4.641 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003/1.095, allocations: 2.048 MB / 0.5163 GB, free: 2.598 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001218/1.096, allocations: 496.8 kB / 0.5167 GB, free: 2.117 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006332/1.097, allocations: 88 kB / 0.5168 GB, free: 2.031 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005714/1.097, allocations: 0.4928 MB / 0.5173 GB, free: 1.527 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2703/1.368, allocations: 1.615 MB / 0.5189 GB, free: 111.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006852/1.375, allocations: 4.359 MB / 0.5231 GB, free: 107.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00654/1.381, allocations: 2.601 MB / 0.5257 GB, free: 107.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001206/1.381, allocations: 28.11 kB / 0.5257 GB, free: 107.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.02435/1.406, allocations: 6.917 MB / 0.5325 GB, free: 107.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001058/1.406, allocations: 52.06 kB / 0.5325 GB, free: 107.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0104/1.416, allocations: 2.492 MB / 0.5349 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009218/1.426, allocations: 1.502 MB / 0.5364 GB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005692/1.431, allocations: 1.006 MB / 0.5374 GB, free: 107 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01528/1.447, allocations: 7.496 MB / 0.5447 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005591/1.452, allocations: 366.1 kB / 0.5451 GB, free: 104.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009808/1.453, allocations: 276.2 kB / 0.5453 GB, free: 104.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 447 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[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 (531): * Single equations (assignments): 523 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003443/1.457, allocations: 1.404 MB / 0.5467 GB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005957/1.457, allocations: 235.2 kB / 0.5469 GB, free: 104.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/1.468, allocations: 2.793 MB / 0.5497 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009781/1.478, allocations: 2.475 MB / 0.5521 GB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.929e-05/1.478, allocations: 7.812 kB / 0.5521 GB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.929e-05/1.478, allocations: 2.484 kB / 0.5521 GB, free: 103.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02032/1.498, allocations: 6.714 MB / 0.5586 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.109e-05/1.498, allocations: 2.75 kB / 0.5586 GB, free: 101.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/1.5, allocations: 169.5 kB / 0.5588 GB, free: 101.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008403/1.509, allocations: 1.432 MB / 0.5602 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002989/1.509, allocations: 28.22 kB / 0.5602 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01553/1.524, allocations: 7.663 MB / 0.5677 GB, free: 96.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001177/1.526, allocations: 1.46 MB / 0.5691 GB, free: 95.36 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01416/1.54, allocations: 4.831 MB / 0.5739 GB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008231/1.541, allocations: 297.9 kB / 0.5741 GB, free: 93.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005959/1.541, allocations: 27.09 kB / 0.5742 GB, free: 93.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002264/1.544, allocations: 126.4 kB / 0.5743 GB, free: 93.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004374/1.544, allocations: 81.52 kB / 0.5744 GB, free: 93.35 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001492/1.544, allocations: 34.53 kB / 0.5744 GB, free: 93.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004164/1.548, allocations: 1.701 MB / 0.5761 GB, free: 92.75 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.02e-07/1.548, allocations: 0 / 0.5761 GB, free: 92.75 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005477/1.554, allocations: 0.751 MB / 0.5768 GB, free: 92.67 MB / 410.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.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],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 (77): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0146/1.569, allocations: 5.644 MB / 0.5823 GB, free: 89.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01123/1.58, allocations: 4.275 MB / 0.5865 GB, free: 86.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/1.58, allocations: 5.531 kB / 0.5865 GB, free: 86.08 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005209/1.585, allocations: 1.709 MB / 0.5881 GB, free: 84.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002039/1.587, allocations: 237.2 kB / 0.5884 GB, free: 84.39 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07298/1.66, allocations: 90.89 MB / 0.6771 GB, free: 9.285 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004236/1.665, allocations: 2.326 MB / 0.6794 GB, free: 7.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003101/1.668, allocations: 1.12 MB / 0.6805 GB, free: 6.039 MB / 426.7 MB Notification: Performance of SimCode: time 1.001e-06/1.668, allocations: 0 / 0.6805 GB, free: 6.039 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.536/6.204, allocations: 86.22 MB / 0.7647 GB, free: 82.41 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.SpringWithMass_res.mat does not exist to compare? outputFormat=mat