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.SpringMassSystem.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.SpringMassSystem,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringMassSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.989/1.989, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003649/0.0003652, allocations: 15.98 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09402/0.09441, allocations: 44.51 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.475/0.5695, allocations: 88.11 MB / 396.7 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002864/0.5698, allocations: 89.3 kB / 396.7 MB, free: 14.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.333/0.9028, allocations: 83.57 MB / 480.3 MB, free: 7.109 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.337e-06/0.9028, allocations: 0 / 480.3 MB, free: 7.109 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002486/0.9031, allocations: 84 kB / 480.4 MB, free: 7.027 MB / 362.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.01558/0.9187, allocations: 4.039 MB / 484.4 MB, free: 2.953 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.9188, allocations: 8.031 kB / 484.4 MB, free: 2.945 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003298/0.9221, allocations: 0.7415 MB / 485.2 MB, free: 2.223 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02042/0.9425, allocations: 2.432 MB / 487.6 MB, free: 15.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01904/0.9616, allocations: 5.061 MB / 492.7 MB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004948/0.9622, allocations: 309.8 kB / 493 MB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002555/0.9647, allocations: 407.7 kB / 493.4 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03072/0.9955, allocations: 9.938 MB / 0.4915 GB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002095/0.9957, allocations: 59.5 kB / 0.4916 GB, free: 15.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009786/0.9967, allocations: 205.4 kB / 0.4918 GB, free: 14.92 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002335/0.9991, allocations: 0.9898 MB / 0.4927 GB, free: 13.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02541/1.025, allocations: 7.784 MB / 0.5003 GB, free: 6.113 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3409/1.365, allocations: 45.37 MB / 0.5446 GB, free: 60.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01033/1.376, allocations: 2.741 MB / 0.5473 GB, free: 59.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008424/1.384, allocations: 3.442 MB / 0.5507 GB, free: 58.34 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/1.384, allocations: 49.19 kB / 0.5507 GB, free: 58.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=127): time 5.21e-06/1.384, allocations: 0 / 0.5507 GB, free: 58.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.03307/1.417, allocations: 9.079 MB / 0.5596 GB, free: 55.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.104e-05/1.418, allocations: 148.8 kB / 0.5597 GB, free: 55.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00753/1.425, allocations: 3.524 MB / 0.5632 GB, free: 54.81 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002747/1.425, allocations: 43.2 kB / 0.5632 GB, free: 54.78 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002145/1.428, allocations: 3.013 MB / 0.5662 GB, free: 53.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007367/1.428, allocations: 0.5903 MB / 0.5667 GB, free: 52.81 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003717/1.429, allocations: 110.6 kB / 0.5668 GB, free: 52.81 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003154/1.429, allocations: 0.5516 MB / 0.5674 GB, free: 52.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004018/1.433, allocations: 1.57 MB / 0.5689 GB, free: 52.47 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00597/1.439, allocations: 5.284 MB / 0.5741 GB, free: 47.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006531/1.446, allocations: 2.824 MB / 0.5768 GB, free: 47.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.417e-05/1.446, allocations: 36.12 kB / 0.5769 GB, free: 47.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01765/1.463, allocations: 6.478 MB / 0.5832 GB, free: 47.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/1.464, allocations: 59.91 kB / 0.5832 GB, free: 47.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002121/1.464, allocations: 133 kB / 0.5834 GB, free: 47.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002294/1.464, allocations: 193.7 kB / 0.5836 GB, free: 47.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007939/1.472, allocations: 1.389 MB / 0.5849 GB, free: 47.06 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002561/1.472, allocations: 257.2 kB / 0.5852 GB, free: 47 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006403/1.479, allocations: 371.2 kB / 0.5855 GB, free: 46.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00106/1.48, allocations: 360.5 kB / 0.5859 GB, free: 46.99 MB / 410.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.004785/1.485, allocations: 1.956 MB / 0.5878 GB, free: 46.66 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007886/1.485, allocations: 337.2 kB / 0.5881 GB, free: 46.48 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003128/1.489, allocations: 1.2 MB / 0.5893 GB, free: 46.38 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.196e-05/1.489, allocations: 17.7 kB / 0.5893 GB, free: 46.38 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/1.489, allocations: 3.953 kB / 0.5893 GB, free: 46.38 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.289e-05/1.489, allocations: 10.53 kB / 0.5893 GB, free: 46.38 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/1.502, allocations: 5.635 MB / 0.5948 GB, free: 44.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.723e-05/1.502, allocations: 18.53 kB / 0.5948 GB, free: 44.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001765/1.504, allocations: 275.6 kB / 0.5951 GB, free: 43.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.144e-05/1.504, allocations: 25.66 kB / 0.5951 GB, free: 43.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/1.504, allocations: 48.45 kB / 0.5951 GB, free: 43.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.772e-05/1.504, allocations: 37.14 kB / 0.5952 GB, free: 43.95 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.062e-05/1.504, allocations: 34.94 kB / 0.5952 GB, free: 43.94 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005764/1.51, allocations: 5.14 MB / 0.6002 GB, free: 39.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/1.511, allocations: 0.5206 MB / 0.6007 GB, free: 39.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005227/1.512, allocations: 50.61 kB / 0.6008 GB, free: 39.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002066/1.514, allocations: 82.39 kB / 0.6009 GB, free: 39.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002202/1.514, allocations: 144.9 kB / 0.601 GB, free: 39.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001218/1.514, allocations: 73.94 kB / 0.6011 GB, free: 39.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00569/1.52, allocations: 2.46 MB / 0.6035 GB, free: 38.51 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.52, allocations: 0 / 0.6035 GB, free: 38.51 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006321/1.526, allocations: 0.8608 MB / 0.6043 GB, free: 38.4 MB / 410.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.006966/1.533, allocations: 10.11 MB / 0.6142 GB, free: 29.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008431/1.542, allocations: 3.575 MB / 0.6177 GB, free: 28.15 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.996e-05/1.542, allocations: 7.688 kB / 0.6177 GB, free: 28.14 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001513/1.543, allocations: 0.7115 MB / 0.6184 GB, free: 27.91 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003094/1.546, allocations: 408.2 kB / 0.6188 GB, free: 27.74 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3898/1.936, allocations: 121.8 MB / 0.7377 GB, free: 92.34 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005395/1.942, allocations: 3.159 MB / 0.7408 GB, free: 91.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003223/1.945, allocations: 1.815 MB / 0.7426 GB, free: 91.56 MB / 458.7 MB Notification: Performance of SimCode: time 9.32e-07/1.945, allocations: 2.25 kB / 0.7426 GB, free: 91.56 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.08/6.025, allocations: 73.28 MB / 0.8142 GB, free: 58.5 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat does not exist to compare? outputFormat=mat