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.InitSpringConstant.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.InitSpringConstant,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_InitSpringConstant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.65/1.65, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003591/0.0003592, allocations: 8 kB / 233.3 MB, free: 2.914 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07784/0.07824, allocations: 38.77 MB / 272.1 MB, free: 12.06 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3533/0.4316, allocations: 85.27 MB / 357.4 MB, free: 4.812 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.432, allocations: 87.52 kB / 357.5 MB, free: 4.766 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3266/0.7586, allocations: 71.67 MB / 429.1 MB, free: 2.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.7587, allocations: 0 / 429.1 MB, free: 2.512 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002284/0.7589, allocations: 64 kB / 429.2 MB, free: 2.449 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: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.2433/1.002, allocations: 3.557 MB / 432.8 MB, free: 73.87 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.063e-05/1.002, allocations: 10.33 kB / 432.8 MB, free: 73.87 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002991/1.005, allocations: 0.638 MB / 433.4 MB, free: 73.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02986/1.035, allocations: 2.084 MB / 435.5 MB, free: 73.57 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0351/1.07, allocations: 4.036 MB / 439.5 MB, free: 73.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008966/1.071, allocations: 259.6 kB / 439.8 MB, free: 73.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003748/1.075, allocations: 352 kB / 440.1 MB, free: 73.26 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05138/1.127, allocations: 8.858 MB / 449 MB, free: 70.65 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005622/1.127, allocations: 55.12 kB / 449 MB, free: 70.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002989/1.13, allocations: 172.5 kB / 449.2 MB, free: 70.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00413/1.134, allocations: 0.8676 MB / 450.1 MB, free: 70.63 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04512/1.18, allocations: 7.16 MB / 457.2 MB, free: 70.53 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1166/1.296, allocations: 42.59 MB / 499.8 MB, free: 39.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02602/1.322, allocations: 3.195 MB / 0.4912 GB, free: 37.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/1.335, allocations: 4.077 MB / 0.4952 GB, free: 35.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/1.335, allocations: 45.41 kB / 0.4953 GB, free: 35.14 MB / 346.7 MB Notification: Performance of pre-optimization done (n=114): time 4.488e-06/1.335, allocations: 3.906 kB / 0.4953 GB, free: 35.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.04372/1.379, allocations: 11.35 MB / 0.5063 GB, free: 30.29 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.024e-05/1.379, allocations: 155.7 kB / 0.5065 GB, free: 30.12 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007314/1.386, allocations: 3.303 MB / 0.5097 GB, free: 27.63 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003201/1.387, allocations: 41.7 kB / 0.5097 GB, free: 27.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002208/1.389, allocations: 2.678 MB / 0.5124 GB, free: 25.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007632/1.39, allocations: 0.495 MB / 0.5128 GB, free: 24.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006081/1.39, allocations: 105.2 kB / 0.5129 GB, free: 24.62 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003206/1.391, allocations: 0.5307 MB / 0.5135 GB, free: 24.15 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004032/1.395, allocations: 1.665 MB / 0.5151 GB, free: 22.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006163/1.401, allocations: 5.059 MB / 0.52 GB, free: 16.32 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006064/1.407, allocations: 2.838 MB / 0.5228 GB, free: 13.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.868e-05/1.407, allocations: 36 kB / 0.5228 GB, free: 13.74 MB / 346.7 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01612/1.423, allocations: 6.515 MB / 0.5292 GB, free: 7.961 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.817e-05/1.423, allocations: 63.95 kB / 0.5293 GB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001697/1.424, allocations: 124 kB / 0.5294 GB, free: 7.781 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009245/1.424, allocations: 335.4 kB / 0.5297 GB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00737/1.432, allocations: 1.267 MB / 0.5309 GB, free: 6.398 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003242/1.435, allocations: 2.382 MB / 0.5333 GB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005497/1.441, allocations: 288.8 kB / 0.5335 GB, free: 3.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001116/1.442, allocations: 329 kB / 0.5339 GB, free: 3.504 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[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],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (656): * Single equations (assignments): 652 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0046/1.446, allocations: 1.777 MB / 0.5356 GB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007776/1.447, allocations: 312 kB / 0.5359 GB, free: 1.625 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00767/1.455, allocations: 2.327 MB / 0.5382 GB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.595e-05/1.455, allocations: 16 kB / 0.5382 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/1.455, allocations: 8 kB / 0.5382 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.312e-05/1.455, allocations: 3.469 kB / 0.5382 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01995/1.475, allocations: 5.843 MB / 0.5439 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.458e-05/1.475, allocations: 0 / 0.5439 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/1.477, allocations: 163.8 kB / 0.544 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004033/1.481, allocations: 0.7182 MB / 0.5447 GB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002944/1.481, allocations: 23.98 kB / 0.5448 GB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/1.491, allocations: 4.557 MB / 0.5492 GB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.491, allocations: 0 / 0.5492 GB, free: 5.016 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01225/1.504, allocations: 4.383 MB / 0.5535 GB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001987/1.506, allocations: 0.5359 MB / 0.554 GB, free: 16 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009557/1.507, allocations: 17.56 kB / 0.554 GB, free: 0 / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.2465/1.753, allocations: 61.56 kB / 0.5541 GB, free: 80.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005357/1.754, allocations: 65.59 kB / 0.5542 GB, free: 80.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001657/1.754, allocations: 34.09 kB / 0.5542 GB, free: 80.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.007327/1.761, allocations: 2.306 MB / 0.5564 GB, free: 80.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.22e-07/1.761, allocations: 0 / 0.5564 GB, free: 80.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006468/1.768, allocations: 0.8098 MB / 0.5572 GB, free: 80.42 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (90): * 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): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01452/1.782, allocations: 5.306 MB / 0.5624 GB, free: 79.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01305/1.796, allocations: 3.948 MB / 0.5663 GB, free: 78.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.227e-06/1.796, allocations: 4 kB / 0.5663 GB, free: 78.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003124/1.799, allocations: 1.08 MB / 0.5673 GB, free: 78.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003904/1.803, allocations: 354.5 kB / 0.5677 GB, free: 78.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06258/1.865, allocations: 99.34 MB / 0.6647 GB, free: 16.39 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005035/1.87, allocations: 2.833 MB / 0.6674 GB, free: 15.61 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003663/1.874, allocations: 1.556 MB / 0.669 GB, free: 15.61 MB / 394.7 MB Notification: Performance of SimCode: time 1.743e-06/1.874, allocations: 0 / 0.669 GB, free: 15.61 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.264/6.139, allocations: 81.53 MB / 0.7486 GB, free: 101 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat does not exist to compare? outputFormat=mat