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.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.685/1.685, allocations: 171.1 MB / 186.7 MB, free: 1.055 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003491, allocations: 8 kB / 233.3 MB, free: 2.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07946/0.07985, allocations: 38.78 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.284/0.3639, allocations: 38.29 MB / 310.3 MB, free: 7.711 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02534/0.3893, allocations: 9.327 MB / 319.6 MB, free: 6.5 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009351/0.3988, allocations: 190.4 kB / 319.8 MB, free: 6.469 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007031/0.4058, allocations: 1.914 MB / 321.7 MB, free: 5.574 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02185/0.4277, allocations: 5.514 MB / 327.3 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004463/0.4323, allocations: 0.6922 MB / 328 MB, free: 2.434 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006548/0.4389, allocations: 2.657 MB / 330.6 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008924/0.4478, allocations: 4.442 MB / 335.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002963/0.4509, allocations: 1.133 MB / 336.2 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003575/0.4545, allocations: 1.546 MB / 337.7 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001025/0.4556, allocations: 156 kB / 337.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003285/0.4589, allocations: 0.9441 MB / 338.8 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002908/0.4618, allocations: 1.687 MB / 340.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001622/0.4635, allocations: 0.8699 MB / 341.4 MB, free: 7.934 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009692/0.4732, allocations: 5.624 MB / 347 MB, free: 2.297 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.4733, allocations: 0 / 347 MB, free: 2.297 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.4733, allocations: 0 / 347 MB, free: 2.297 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002384/0.4735, allocations: 3.938 kB / 347 MB, free: 2.293 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1644 * Number of variables: 1644 Notification: Performance of Generate backend data structure: time 0.01424/0.4878, allocations: 4.334 MB / 351.3 MB, free: 13.88 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.4879, allocations: 8.031 kB / 351.4 MB, free: 13.88 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002548/0.4904, allocations: 0.7812 MB / 352.1 MB, free: 13.09 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01671/0.5072, allocations: 2.494 MB / 354.6 MB, free: 10.58 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00808/0.5153, allocations: 2.86 MB / 357.5 MB, free: 7.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00034/0.5157, allocations: 266.5 kB / 357.8 MB, free: 7.398 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00225/0.518, allocations: 419.6 kB / 358.2 MB, free: 6.988 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03729/0.5553, allocations: 12.11 MB / 370.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001767/0.5555, allocations: 47.53 kB / 370.3 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009449/0.5565, allocations: 171.8 kB / 370.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005865/0.5623, allocations: 2.127 MB / 372.6 MB, free: 7.715 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03667/0.5991, allocations: 10.11 MB / 382.7 MB, free: 13.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07991/0.679, allocations: 44.31 MB / 427 MB, free: 16 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03525/0.7143, allocations: 6.683 MB / 433.7 MB, free: 9.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02157/0.736, allocations: 8.412 MB / 442.1 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.545e-05/0.7361, allocations: 51.56 kB / 442.2 MB, free: 460 kB / 362.7 MB Notification: Performance of pre-optimization done (n=165): time 6.272e-06/0.7361, allocations: 3.938 kB / 442.2 MB, free: 456 kB / 362.7 MB Notification: Performance of matching and sorting (n=188): time 0.3298/1.066, allocations: 22.52 MB / 464.7 MB, free: 122.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001378/1.067, allocations: 1.612 MB / 466.3 MB, free: 120.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008462/1.076, allocations: 4.407 MB / 470.7 MB, free: 117.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005498/1.076, allocations: 50.41 kB / 470.8 MB, free: 117.3 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002733/1.079, allocations: 3.295 MB / 474.1 MB, free: 114 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001241/1.08, allocations: 0.7554 MB / 474.8 MB, free: 113.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006785/1.081, allocations: 132.7 kB / 474.9 MB, free: 113.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003676/1.082, allocations: 0.5878 MB / 475.5 MB, free: 112.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005844/1.087, allocations: 2.324 MB / 477.9 MB, free: 110.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008269/1.096, allocations: 6.432 MB / 484.3 MB, free: 101.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008661/1.104, allocations: 3.715 MB / 488 MB, free: 98.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001375/1.105, allocations: 47.98 kB / 488.1 MB, free: 98.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=866) (initialization): time 0.02473/1.129, allocations: 9.157 MB / 497.2 MB, free: 88.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/1.129, allocations: 68 kB / 497.3 MB, free: 88.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009403/1.139, allocations: 3.087 MB / 0.4886 GB, free: 85.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005768/1.145, allocations: 1.195 MB / 0.4898 GB, free: 84.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008879/1.154, allocations: 1.563 MB / 0.4913 GB, free: 82.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006887/1.161, allocations: 4.643 MB / 0.4959 GB, free: 78.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007414/1.168, allocations: 440.2 kB / 0.4963 GB, free: 77.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001477/1.17, allocations: 417.1 kB / 0.4967 GB, free: 77.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 42 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 (828): * Single equations (assignments): 819 * 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.006522/1.176, allocations: 2.176 MB / 0.4988 GB, free: 75.01 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001159/1.177, allocations: 371.2 kB / 0.4992 GB, free: 74.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01507/1.192, allocations: 3.491 MB / 0.5026 GB, free: 71.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01281/1.205, allocations: 2.933 MB / 0.5054 GB, free: 68.18 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/1.205, allocations: 4 kB / 0.5054 GB, free: 68.17 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.587e-05/1.205, allocations: 7.969 kB / 0.5054 GB, free: 68.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03766/1.243, allocations: 10.47 MB / 0.5157 GB, free: 57.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.174e-05/1.243, allocations: 16.03 kB / 0.5157 GB, free: 57.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0041/1.247, allocations: 371.4 kB / 0.516 GB, free: 57.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006061/1.253, allocations: 0.9825 MB / 0.517 GB, free: 56.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004023/1.254, allocations: 51.98 kB / 0.517 GB, free: 56.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007086/1.261, allocations: 4.681 MB / 0.5216 GB, free: 51.1 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001116/1.262, allocations: 1.482 MB / 0.5231 GB, free: 49.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/1.277, allocations: 6.106 MB / 0.529 GB, free: 43.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002247/1.279, allocations: 0.6915 MB / 0.5297 GB, free: 42.46 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001079/1.28, allocations: 47.98 kB / 0.5298 GB, free: 42.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003655/1.284, allocations: 167.8 kB / 0.5299 GB, free: 42.25 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005596/1.284, allocations: 168.5 kB / 0.5301 GB, free: 42.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002137/1.285, allocations: 63.98 kB / 0.5301 GB, free: 42.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005689/1.29, allocations: 2.753 MB / 0.5328 GB, free: 39.26 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.29, allocations: 0 / 0.5328 GB, free: 39.26 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007406/1.298, allocations: 1.14 MB / 0.5339 GB, free: 38.13 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 55 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],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 (165): * Single equations (assignments): 158 * 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 {(4,100.0%),(3,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.0154/1.313, allocations: 6.812 MB / 0.5406 GB, free: 31.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01512/1.329, allocations: 6.016 MB / 0.5465 GB, free: 25.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.329, allocations: 0 / 0.5465 GB, free: 25.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006857/1.335, allocations: 2.252 MB / 0.5487 GB, free: 22.76 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003673/1.339, allocations: 450.2 kB / 0.5491 GB, free: 22.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3705/1.71, allocations: 40.25 MB / 0.5884 GB, free: 98.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009772/1.72, allocations: 3.499 MB / 0.5918 GB, free: 97.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006842/1.726, allocations: 2.1 MB / 0.5939 GB, free: 95.95 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/1.726, allocations: 0 / 0.5939 GB, free: 95.95 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.356/7.082, allocations: 158.6 MB / 0.7487 GB, free: 88.75 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat