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.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.592/1.592, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.0003651, allocations: 12 kB / 233.3 MB, free: 2.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08448/0.08488, allocations: 38.77 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.0234/0.1083, allocations: 14.52 MB / 286.6 MB, free: 13.53 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0126/0.121, allocations: 4.55 MB / 291.1 MB, free: 8.969 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002618/0.1237, allocations: 67.81 kB / 291.2 MB, free: 8.902 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002549/0.1262, allocations: 0.6921 MB / 291.9 MB, free: 8.207 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009421/0.1357, allocations: 2.279 MB / 294.1 MB, free: 5.922 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001779/0.1375, allocations: 375.3 kB / 294.5 MB, free: 5.555 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003827/0.1414, allocations: 1.486 MB / 296 MB, free: 4.062 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003982/0.1454, allocations: 1.834 MB / 297.8 MB, free: 2.188 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001283/0.1467, allocations: 0.6073 MB / 298.4 MB, free: 1.578 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001861/0.1486, allocations: 0.8761 MB / 299.3 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005795/0.1493, allocations: 84 kB / 299.4 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2378/0.3871, allocations: 0.8165 MB / 300.2 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001858/0.389, allocations: 0.9195 MB / 301.1 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.3902, allocations: 0.5015 MB / 301.6 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006563/0.3968, allocations: 3.233 MB / 304.9 MB, free: 9.961 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3968, allocations: 0 / 304.9 MB, free: 9.961 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.3968, allocations: 1.625 kB / 304.9 MB, free: 9.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001728/0.397, allocations: 1.969 kB / 304.9 MB, free: 9.961 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.009625/0.4066, allocations: 2.554 MB / 307.4 MB, free: 8.695 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.4067, allocations: 9.062 kB / 307.4 MB, free: 8.695 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001543/0.4083, allocations: 460.8 kB / 307.9 MB, free: 8.637 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01417/0.4225, allocations: 2.051 MB / 309.9 MB, free: 8.465 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005038/0.4276, allocations: 1.585 MB / 311.5 MB, free: 8.094 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001602/0.4278, allocations: 130.2 kB / 311.6 MB, free: 8.09 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001591/0.4294, allocations: 247 kB / 311.9 MB, free: 8.086 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0172/0.4466, allocations: 6.569 MB / 318.5 MB, free: 6.035 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/0.4468, allocations: 34.97 kB / 318.5 MB, free: 6.031 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004321/0.4472, allocations: 83.2 kB / 318.6 MB, free: 6.031 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003636/0.4509, allocations: 1.348 MB / 319.9 MB, free: 5.73 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01771/0.4686, allocations: 5.955 MB / 325.9 MB, free: 3.988 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04896/0.5176, allocations: 25.2 MB / 351.1 MB, free: 12.43 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01238/0.5301, allocations: 2.535 MB / 353.6 MB, free: 9.758 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01062/0.5407, allocations: 3.544 MB / 357.2 MB, free: 6.043 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/0.5408, allocations: 47 kB / 357.2 MB, free: 5.988 MB / 282.7 MB Notification: Performance of pre-optimization done (n=105): time 4.949e-06/0.5409, allocations: 0 / 357.2 MB, free: 5.988 MB / 282.7 MB Notification: Performance of matching and sorting (n=118): time 0.04912/0.59, allocations: 10.37 MB / 367.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001822/0.5919, allocations: 1.597 MB / 369.2 MB, free: 9.691 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00677/0.5987, allocations: 2.812 MB / 372 MB, free: 6.859 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000433/0.5992, allocations: 41.89 kB / 372 MB, free: 6.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002253/0.6014, allocations: 2.07 MB / 374.1 MB, free: 4.762 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009643/0.6024, allocations: 488.5 kB / 374.6 MB, free: 4.289 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000444/0.6029, allocations: 84 kB / 374.6 MB, free: 4.207 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0004143/0.6033, allocations: 0.5007 MB / 375.1 MB, free: 3.695 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00488/0.6082, allocations: 1.605 MB / 376.8 MB, free: 2.078 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007927/0.6162, allocations: 4.385 MB / 381.1 MB, free: 12.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007249/0.6235, allocations: 2.61 MB / 383.7 MB, free: 9.82 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001076/0.6237, allocations: 28 kB / 383.8 MB, free: 9.793 MB / 314.7 MB Notification: Performance of matching and sorting (n=581) (initialization): time 0.02563/0.6493, allocations: 6.957 MB / 390.7 MB, free: 3.023 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.622e-05/0.6494, allocations: 44.97 kB / 390.8 MB, free: 2.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01185/0.6613, allocations: 2.569 MB / 393.3 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01036/0.6717, allocations: 1.607 MB / 394.9 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006371/0.6781, allocations: 0.9903 MB / 395.9 MB, free: 13.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01897/0.6972, allocations: 7.62 MB / 403.6 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005806/0.703, allocations: 315.6 kB / 403.9 MB, free: 5.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001204/0.7043, allocations: 284 kB / 404.1 MB, free: 5.324 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 449 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (533): * Single equations (assignments): 525 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.004555/0.7088, allocations: 1.409 MB / 405.6 MB, free: 3.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007101/0.7096, allocations: 229 kB / 405.8 MB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01469/0.7243, allocations: 2.807 MB / 408.6 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01609/0.7404, allocations: 2.474 MB / 411.1 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.66e-05/0.7405, allocations: 7.953 kB / 411.1 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.05e-05/0.7406, allocations: 7.984 kB / 411.1 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03401/0.7746, allocations: 6.716 MB / 417.8 MB, free: 7.578 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.353e-05/0.7747, allocations: 8 kB / 417.8 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002339/0.777, allocations: 163.7 kB / 418 MB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01293/0.79, allocations: 1.436 MB / 419.4 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004853/0.7905, allocations: 31.98 kB / 419.4 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02997/0.8205, allocations: 7.615 MB / 427 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002143/0.8227, allocations: 1.466 MB / 428.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03528/0.858, allocations: 4.767 MB / 433.3 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/0.8593, allocations: 305.9 kB / 433.6 MB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001165/0.8605, allocations: 22.19 kB / 433.6 MB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003588/0.8641, allocations: 111.8 kB / 433.7 MB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006723/0.8648, allocations: 68.45 kB / 433.8 MB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002397/0.8651, allocations: 38.64 kB / 433.8 MB, free: 7.098 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006621/0.8717, allocations: 1.767 MB / 435.6 MB, free: 5.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.8718, allocations: 3.938 kB / 435.6 MB, free: 5.316 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.007329/0.8791, allocations: 0.7735 MB / 436.4 MB, free: 4.543 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],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.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 (77): * Single equations (assignments): 71 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2636/1.143, allocations: 5.404 MB / 441.8 MB, free: 127 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01231/1.155, allocations: 4.289 MB / 446 MB, free: 126.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/1.155, allocations: 0 / 446 MB, free: 126.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006026/1.161, allocations: 1.704 MB / 447.8 MB, free: 125.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/1.163, allocations: 243 kB / 448 MB, free: 125.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06332/1.227, allocations: 24.7 MB / 472.7 MB, free: 108.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002872/1.23, allocations: 2.318 MB / 475 MB, free: 106.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002284/1.232, allocations: 1.14 MB / 476.1 MB, free: 105.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/1.232, allocations: 0 / 476.1 MB, free: 105.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.267/5.499, allocations: 86.56 MB / 0.5495 GB, free: 18.82 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat does not exist to compare? outputFormat=mat