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.ThreeSprings.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.ThreeSprings,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.846/1.846, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004857/0.0004858, allocations: 8 kB / 233.3 MB, free: 2.969 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.122, allocations: 38.76 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.2827/0.4047, allocations: 34.29 MB / 306.3 MB, free: 7.742 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02375/0.4285, allocations: 8.55 MB / 314.9 MB, free: 7.066 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008792/0.4374, allocations: 166.3 kB / 315 MB, free: 7.043 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006651/0.4441, allocations: 1.716 MB / 316.7 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0208/0.465, allocations: 4.972 MB / 321.7 MB, free: 5.227 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003534/0.4685, allocations: 0.5533 MB / 322.3 MB, free: 5.062 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005543/0.4741, allocations: 2.139 MB / 324.4 MB, free: 4.598 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007852/0.482, allocations: 4.118 MB / 328.5 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002092/0.4842, allocations: 0.961 MB / 329.5 MB, free: 2.191 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002404/0.4866, allocations: 1.231 MB / 330.7 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007668/0.4874, allocations: 135.7 kB / 330.8 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002759/0.4902, allocations: 0.8652 MB / 331.7 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002034/0.4923, allocations: 1.416 MB / 333.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001321/0.4936, allocations: 0.7766 MB / 333.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008336/0.502, allocations: 4.988 MB / 338.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.502, allocations: 0 / 338.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.5021, allocations: 0 / 338.9 MB, free: 10.17 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001624/0.5022, allocations: 4 kB / 338.9 MB, free: 10.16 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: 1465 * Number of variables: 1465 Notification: Performance of Generate backend data structure: time 0.01179/0.514, allocations: 3.703 MB / 342.6 MB, free: 6.422 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.566e-05/0.5141, allocations: 8.031 kB / 342.6 MB, free: 6.414 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002434/0.5166, allocations: 0.6931 MB / 343.3 MB, free: 5.742 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01426/0.5309, allocations: 2.181 MB / 345.5 MB, free: 3.555 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006555/0.5375, allocations: 2.151 MB / 347.6 MB, free: 1.379 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003208/0.5379, allocations: 234.2 kB / 347.9 MB, free: 1.184 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001908/0.5398, allocations: 378.7 kB / 348.2 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02976/0.5696, allocations: 9.817 MB / 358 MB, free: 6.402 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002817/0.5699, allocations: 35.69 kB / 358.1 MB, free: 6.367 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001745/0.5717, allocations: 151.9 kB / 358.2 MB, free: 6.219 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007749/0.5795, allocations: 1.809 MB / 360 MB, free: 4.41 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02766/0.6072, allocations: 8.113 MB / 368.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06944/0.6767, allocations: 38.6 MB / 406.7 MB, free: 4.551 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01639/0.6932, allocations: 3.59 MB / 410.3 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01559/0.7088, allocations: 6.562 MB / 416.9 MB, free: 9.938 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.806e-05/0.7089, allocations: 51.16 kB / 416.9 MB, free: 9.879 MB / 346.7 MB Notification: Performance of pre-optimization done (n=131): time 5.691e-06/0.7089, allocations: 0 / 416.9 MB, free: 9.879 MB / 346.7 MB Notification: Performance of matching and sorting (n=138): time 0.06151/0.7705, allocations: 12.05 MB / 429 MB, free: 13.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002245/0.7727, allocations: 1.608 MB / 430.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01153/0.7843, allocations: 3.885 MB / 434.5 MB, free: 7.922 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004849/0.7849, allocations: 45.7 kB / 434.5 MB, free: 7.871 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004197/0.7891, allocations: 3.026 MB / 437.6 MB, free: 4.805 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001301/0.7904, allocations: 0.5789 MB / 438.1 MB, free: 4.219 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006496/0.7911, allocations: 120.3 kB / 438.3 MB, free: 4.102 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0006797/0.7918, allocations: 0.5709 MB / 438.8 MB, free: 3.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007737/0.7996, allocations: 1.971 MB / 440.8 MB, free: 1.543 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2366/1.036, allocations: 5.874 MB / 446.7 MB, free: 121.1 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008888/1.045, allocations: 3.322 MB / 450 MB, free: 120.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002545/1.045, allocations: 41.17 kB / 450 MB, free: 120.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.02949/1.075, allocations: 8.674 MB / 458.7 MB, free: 117.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001559/1.075, allocations: 69.33 kB / 458.8 MB, free: 117.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01069/1.086, allocations: 2.862 MB / 461.6 MB, free: 116.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009953/1.096, allocations: 1.756 MB / 463.4 MB, free: 116.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007125/1.103, allocations: 1.327 MB / 464.7 MB, free: 116 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009165/1.112, allocations: 5.819 MB / 470.5 MB, free: 112.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00707/1.119, allocations: 395.9 kB / 470.9 MB, free: 112 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001436/1.121, allocations: 384.5 kB / 471.3 MB, free: 112 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 36 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (717): * Single equations (assignments): 707 * 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: 3 * 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: 2 {6 26,3 1} Notification: Performance of prepare postOptimizeDAE: time 0.005282/1.126, allocations: 1.973 MB / 473.3 MB, free: 110.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007939/1.127, allocations: 316.3 kB / 473.6 MB, free: 110.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/1.138, allocations: 3.068 MB / 476.7 MB, free: 108.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009736/1.148, allocations: 2.616 MB / 479.3 MB, free: 105.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.795e-05/1.148, allocations: 4 kB / 479.3 MB, free: 105.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.555e-05/1.148, allocations: 7.984 kB / 479.3 MB, free: 105.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007794/1.156, allocations: 3.555 MB / 482.8 MB, free: 101.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.747e-05/1.156, allocations: 7.953 kB / 482.8 MB, free: 101.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/1.157, allocations: 163.7 kB / 483 MB, free: 101.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008329/1.166, allocations: 1.492 MB / 484.5 MB, free: 100.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003328/1.166, allocations: 28.84 kB / 484.5 MB, free: 100.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009076/1.175, allocations: 5.865 MB / 490.4 MB, free: 94.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001135/1.176, allocations: 1.476 MB / 491.9 MB, free: 92.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01431/1.191, allocations: 5.146 MB / 497 MB, free: 87.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/1.192, allocations: 384.8 kB / 497.4 MB, free: 87.02 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009775/1.193, allocations: 26.5 kB / 497.4 MB, free: 87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002662/1.196, allocations: 119.8 kB / 497.5 MB, free: 86.88 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003918/1.196, allocations: 80.86 kB / 497.6 MB, free: 86.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001594/1.196, allocations: 39.98 kB / 497.6 MB, free: 86.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005157/1.201, allocations: 2.399 MB / 0.4883 GB, free: 84.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.201, allocations: 0 / 0.4883 GB, free: 84.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006684/1.208, allocations: 0.9957 MB / 0.4893 GB, free: 83.39 MB / 362.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],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]) * 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 (73): * Single equations (assignments): 65 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,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: 1 {8 27} Notification: Performance of Backend phase and start with SimCode phase: time 0.01339/1.222, allocations: 5.612 MB / 0.4948 GB, free: 77.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01377/1.235, allocations: 5.309 MB / 0.5 GB, free: 72.4 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/1.235, allocations: 0 / 0.5 GB, free: 72.4 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006314/1.242, allocations: 1.973 MB / 0.5019 GB, free: 70.36 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/1.245, allocations: 362.7 kB / 0.5022 GB, free: 70.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08295/1.328, allocations: 34.19 MB / 0.5356 GB, free: 32.24 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005431/1.333, allocations: 3.114 MB / 0.5387 GB, free: 29.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003511/1.337, allocations: 1.749 MB / 0.5404 GB, free: 27.35 MB / 362.7 MB Notification: Performance of SimCode: time 1.533e-06/1.337, allocations: 0 / 0.5404 GB, free: 27.35 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.784/6.121, allocations: 155.3 MB / 0.692 GB, free: 11.42 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.ThreeSprings_res.mat does not exist to compare? outputFormat=mat