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.653/1.653, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.0003501, allocations: 8 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07981/0.0802, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3558/0.436, allocations: 79.51 MB / 351.6 MB, free: 10.09 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003143/0.4364, allocations: 86.64 kB / 351.7 MB, free: 10.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2466/0.6831, allocations: 56.43 MB / 408.1 MB, free: 7.516 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.6831, allocations: 3.938 kB / 408.1 MB, free: 7.512 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001574/0.6833, allocations: 48 kB / 408.2 MB, free: 7.465 MB / 330.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.0188/0.7021, allocations: 3.02 MB / 411.2 MB, free: 4.383 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.7022, allocations: 12.03 kB / 411.2 MB, free: 4.371 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002465/0.7047, allocations: 0.4943 MB / 411.7 MB, free: 3.867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01733/0.722, allocations: 2.036 MB / 413.7 MB, free: 1.824 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01548/0.7376, allocations: 3.607 MB / 417.4 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003438/0.738, allocations: 184.8 kB / 417.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001606/0.7396, allocations: 247.8 kB / 417.8 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02156/0.7612, allocations: 6.899 MB / 424.7 MB, free: 6.094 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001753/0.7614, allocations: 47.56 kB / 424.7 MB, free: 6.047 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001003/0.7624, allocations: 123.9 kB / 424.8 MB, free: 5.926 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001895/0.7643, allocations: 0.6994 MB / 425.5 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2471/1.011, allocations: 5.977 MB / 431.5 MB, free: 81.23 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04724/1.059, allocations: 32.27 MB / 463.8 MB, free: 60.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01075/1.07, allocations: 2.524 MB / 466.3 MB, free: 59.89 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008313/1.078, allocations: 3.543 MB / 469.9 MB, free: 58.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/1.078, allocations: 43.56 kB / 469.9 MB, free: 58.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 5.972e-06/1.078, allocations: 0 / 469.9 MB, free: 58.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=118): time 0.04324/1.121, allocations: 10.35 MB / 480.3 MB, free: 55.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001379/1.123, allocations: 1.592 MB / 481.8 MB, free: 53.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005715/1.129, allocations: 2.45 MB / 484.3 MB, free: 52.92 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003639/1.129, allocations: 42.14 kB / 484.3 MB, free: 52.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/1.131, allocations: 2.053 MB / 486.4 MB, free: 51.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000836/1.132, allocations: 490.3 kB / 486.9 MB, free: 50.91 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005617/1.132, allocations: 86.62 kB / 487 MB, free: 50.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002921/1.132, allocations: 0.4998 MB / 487.5 MB, free: 50.45 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004249/1.137, allocations: 1.608 MB / 489.1 MB, free: 49.95 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006184/1.143, allocations: 4.358 MB / 493.4 MB, free: 45.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006109/1.149, allocations: 2.594 MB / 496 MB, free: 44.82 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.169e-05/1.149, allocations: 28.56 kB / 496 MB, free: 44.82 MB / 346.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.02161/1.171, allocations: 6.825 MB / 0.4911 GB, free: 42.52 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.3e-05/1.171, allocations: 43.88 kB / 0.4911 GB, free: 42.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009439/1.18, allocations: 2.417 MB / 0.4935 GB, free: 41.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007989/1.189, allocations: 1.426 MB / 0.4949 GB, free: 41.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005856/1.194, allocations: 1.015 MB / 0.4959 GB, free: 41.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01347/1.208, allocations: 7.056 MB / 0.5028 GB, free: 36.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005746/1.214, allocations: 364.7 kB / 0.5031 GB, free: 36.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001111/1.215, allocations: 278.6 kB / 0.5034 GB, free: 36.02 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 447 * 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 (534): * Single equations (assignments): 526 * 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: 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 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003856/1.219, allocations: 1.41 MB / 0.5047 GB, free: 34.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006316/1.219, allocations: 227.7 kB / 0.505 GB, free: 34.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01094/1.23, allocations: 2.799 MB / 0.5077 GB, free: 32.48 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009828/1.24, allocations: 2.465 MB / 0.5101 GB, free: 30.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-05/1.24, allocations: 7.469 kB / 0.5101 GB, free: 30.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.524e-05/1.24, allocations: 7.656 kB / 0.5101 GB, free: 30.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02085/1.261, allocations: 6.728 MB / 0.5167 GB, free: 24.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.221e-05/1.261, allocations: 0 / 0.5167 GB, free: 24.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/1.263, allocations: 163.8 kB / 0.5168 GB, free: 24.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008396/1.271, allocations: 1.445 MB / 0.5183 GB, free: 23.22 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003565/1.272, allocations: 32.62 kB / 0.5183 GB, free: 23.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01545/1.287, allocations: 7.652 MB / 0.5258 GB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001137/1.288, allocations: 1.461 MB / 0.5272 GB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01398/1.303, allocations: 4.822 MB / 0.5319 GB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008062/1.303, allocations: 302 kB / 0.5322 GB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000629/1.304, allocations: 23.98 kB / 0.5322 GB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002401/1.306, allocations: 128.9 kB / 0.5323 GB, free: 8.344 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004764/1.307, allocations: 68.45 kB / 0.5324 GB, free: 8.277 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001493/1.307, allocations: 35.97 kB / 0.5324 GB, free: 8.242 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004288/1.311, allocations: 1.704 MB / 0.5341 GB, free: 6.527 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.793e-06/1.311, allocations: 0 / 0.5341 GB, free: 6.527 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005567/1.317, allocations: 0.7557 MB / 0.5348 GB, free: 5.777 MB / 346.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.0147/1.332, allocations: 5.641 MB / 0.5403 GB, free: 96 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0126/1.344, allocations: 4.149 MB / 0.5444 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.914e-06/1.344, allocations: 0 / 0.5444 GB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005865/1.35, allocations: 1.704 MB / 0.5461 GB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002299/1.353, allocations: 243.5 kB / 0.5463 GB, free: 9.945 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3283/1.681, allocations: 90.78 MB / 0.6349 GB, free: 19.45 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00452/1.686, allocations: 2.323 MB / 0.6372 GB, free: 34.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002617/1.688, allocations: 1.124 MB / 0.6383 GB, free: 34.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/1.688, allocations: 0 / 0.6383 GB, free: 34.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.275/5.963, allocations: 86.03 MB / 0.7223 GB, free: 105.4 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.SpringWithMass_res.mat does not exist to compare? outputFormat=mat