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.SpringMassSystem.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.SpringMassSystem,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.626/1.626, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004772/0.0004769, allocations: 8 kB / 233.3 MB, free: 2.926 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08246/0.08298, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3727/0.4558, allocations: 82.48 MB / 354.6 MB, free: 7.172 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000384/0.4562, allocations: 85.27 kB / 354.7 MB, free: 7.125 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6135/1.07, allocations: 83.57 MB / 438.2 MB, free: 72.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.547e-06/1.07, allocations: 1.188 kB / 438.2 MB, free: 72.47 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000274/1.07, allocations: 79.09 kB / 438.3 MB, free: 72.47 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: 1450 * Number of variables: 1450 Notification: Performance of Generate backend data structure: time 0.01617/1.086, allocations: 4.043 MB / 442.4 MB, free: 70.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/1.086, allocations: 9.5 kB / 442.4 MB, free: 70.73 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003477/1.09, allocations: 0.7371 MB / 443.1 MB, free: 70.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02009/1.11, allocations: 2.433 MB / 445.5 MB, free: 70.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01807/1.128, allocations: 5.049 MB / 450.6 MB, free: 69.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004053/1.129, allocations: 309 kB / 450.9 MB, free: 69.83 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002207/1.131, allocations: 413.9 kB / 451.3 MB, free: 69.82 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02755/1.158, allocations: 9.939 MB / 461.2 MB, free: 67 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002823/1.159, allocations: 62.05 kB / 461.3 MB, free: 67 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001835/1.161, allocations: 207.5 kB / 461.5 MB, free: 67 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002254/1.163, allocations: 0.9776 MB / 462.5 MB, free: 66.99 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02357/1.186, allocations: 7.79 MB / 470.3 MB, free: 66.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0588/1.245, allocations: 45.38 MB / 0.5036 GB, free: 32.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01014/1.255, allocations: 2.737 MB / 0.5062 GB, free: 30.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008528/1.264, allocations: 3.458 MB / 0.5096 GB, free: 28.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/1.264, allocations: 53.92 kB / 0.5097 GB, free: 28.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=127): time 5.43e-06/1.264, allocations: 0 / 0.5097 GB, free: 28.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=145): time 0.03434/1.299, allocations: 9.079 MB / 0.5185 GB, free: 21.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/1.299, allocations: 145 kB / 0.5187 GB, free: 21.1 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008543/1.307, allocations: 3.525 MB / 0.5221 GB, free: 18.15 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002911/1.308, allocations: 45.7 kB / 0.5222 GB, free: 18.1 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002496/1.31, allocations: 3.005 MB / 0.5251 GB, free: 15.38 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008119/1.311, allocations: 0.5817 MB / 0.5257 GB, free: 14.87 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006563/1.312, allocations: 122.7 kB / 0.5258 GB, free: 14.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004063/1.312, allocations: 0.549 MB / 0.5263 GB, free: 14.26 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004693/1.317, allocations: 1.568 MB / 0.5278 GB, free: 12.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007276/1.324, allocations: 5.284 MB / 0.533 GB, free: 6.168 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006827/1.331, allocations: 2.818 MB / 0.5358 GB, free: 3.664 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/1.331, allocations: 40 kB / 0.5358 GB, free: 3.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01827/1.349, allocations: 6.47 MB / 0.5421 GB, free: 13.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000138/1.35, allocations: 60 kB / 0.5422 GB, free: 13.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002653/1.35, allocations: 136.1 kB / 0.5423 GB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002817/1.35, allocations: 200 kB / 0.5425 GB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008444/1.359, allocations: 1.377 MB / 0.5438 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003412/1.359, allocations: 268.3 kB / 0.5441 GB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006762/1.366, allocations: 365.5 kB / 0.5444 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001379/1.367, allocations: 359.3 kB / 0.5448 GB, free: 11.4 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 607 * 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],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (726): * Single equations (assignments): 723 * 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.005728/1.373, allocations: 1.961 MB / 0.5467 GB, free: 9.668 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009089/1.374, allocations: 339.6 kB / 0.547 GB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00384/1.378, allocations: 1.2 MB / 0.5482 GB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-05/1.378, allocations: 19.94 kB / 0.5482 GB, free: 8.281 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/1.378, allocations: 3.953 kB / 0.5482 GB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.253e-05/1.378, allocations: 7.469 kB / 0.5482 GB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0166/1.395, allocations: 5.635 MB / 0.5537 GB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-05/1.395, allocations: 20 kB / 0.5537 GB, free: 2.465 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00192/1.397, allocations: 268.3 kB / 0.554 GB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.503e-05/1.397, allocations: 35.88 kB / 0.554 GB, free: 2.172 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001628/1.397, allocations: 55.98 kB / 0.5541 GB, free: 2.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.073e-05/1.397, allocations: 35.88 kB / 0.5541 GB, free: 2.082 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.017e-05/1.397, allocations: 31.72 kB / 0.5542 GB, free: 2.055 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2524/1.649, allocations: 5.13 MB / 0.5592 GB, free: 75.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00183/1.651, allocations: 0.5142 MB / 0.5597 GB, free: 75.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009826/1.652, allocations: 50.25 kB / 0.5597 GB, free: 75.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002702/1.655, allocations: 88.84 kB / 0.5598 GB, free: 75.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003949/1.655, allocations: 145.2 kB / 0.5599 GB, free: 75.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/1.656, allocations: 64.33 kB / 0.56 GB, free: 75.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007924/1.663, allocations: 2.461 MB / 0.5624 GB, free: 74.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.663, allocations: 2 kB / 0.5624 GB, free: 74.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007238/1.671, allocations: 0.8659 MB / 0.5632 GB, free: 74.95 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 79 * Number of states: 4 (p1.s,p1.v,p2.s,p2.v) * 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 (138): * Single equations (assignments): 135 * 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.009046/1.68, allocations: 10.09 MB / 0.5731 GB, free: 66.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009464/1.689, allocations: 3.583 MB / 0.5766 GB, free: 66.91 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-05/1.689, allocations: 3.281 kB / 0.5766 GB, free: 66.91 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00166/1.691, allocations: 0.709 MB / 0.5773 GB, free: 66.91 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003798/1.695, allocations: 417.6 kB / 0.5777 GB, free: 66.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09646/1.791, allocations: 121.8 MB / 0.6967 GB, free: 6.996 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2445/2.036, allocations: 3.156 MB / 0.6997 GB, free: 124.9 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004231/2.04, allocations: 1.815 MB / 0.7015 GB, free: 124.9 MB / 410.7 MB Notification: Performance of SimCode: time 1.413e-06/2.04, allocations: 4.781 kB / 0.7015 GB, free: 124.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.999/6.04, allocations: 73.29 MB / 0.7731 GB, free: 96.12 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.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat