Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Spring2,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Spring2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.287/2.287, allocations: 235.1 MB / 243 MB, free: 9.59 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.934e-05/1.951e-05, allocations: 0 / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.349/0.349, allocations: 54.86 MB / 358.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1734/0.5225, allocations: 94.81 MB / 452.9 MB, free: 15.9 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.5228, allocations: 79.89 kB / 453 MB, free: 15.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6929/1.216, allocations: 94.18 MB / 0.5344 GB, free: 33.53 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.607e-06/1.216, allocations: 0 / 0.5344 GB, free: 33.53 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002756/1.216, allocations: 95.94 kB / 0.5345 GB, free: 33.44 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1679 * Number of variables: 1679 Notification: Performance of Generate backend data structure: time 0.04299/1.259, allocations: 5.831 MB / 0.5402 GB, free: 27.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.571e-05/1.259, allocations: 8.031 kB / 0.5402 GB, free: 27.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02535/1.284, allocations: 2.915 MB / 0.543 GB, free: 24.61 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02599/1.31, allocations: 7.197 MB / 0.55 GB, free: 17.34 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003414/1.311, allocations: 152 kB / 0.5502 GB, free: 17.2 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0026/1.313, allocations: 287.8 kB / 0.5505 GB, free: 16.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01776/1.331, allocations: 7.082 MB / 0.5574 GB, free: 9.824 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02756/1.359, allocations: 10.64 MB / 0.5678 GB, free: 13.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003539/1.359, allocations: 79.23 kB / 0.5678 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001845/1.361, allocations: 36 kB / 0.5679 GB, free: 13.85 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003536/1.365, allocations: 1.194 MB / 0.569 GB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1045/1.469, allocations: 56.14 MB / 0.6239 GB, free: 2.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3537/1.823, allocations: 3.462 MB / 0.6273 GB, free: 105.7 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005662/1.829, allocations: 2.21 MB / 0.6294 GB, free: 105.7 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001498/1.83, allocations: 0.667 MB / 0.6301 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.582e-05/1.83, allocations: 62.64 kB / 0.6301 GB, free: 105.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=205): time 6.152e-06/1.83, allocations: 0 / 0.6301 GB, free: 105.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=238): time 0.07642/1.907, allocations: 20.02 MB / 0.6497 GB, free: 101 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.759e-05/1.907, allocations: 262 kB / 0.6499 GB, free: 100.7 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007829/1.915, allocations: 3.46 MB / 0.6533 GB, free: 100.3 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007815/1.916, allocations: 25.7 kB / 0.6533 GB, free: 100.3 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003022/1.919, allocations: 3.469 MB / 0.6567 GB, free: 98.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00177/1.921, allocations: 0.928 MB / 0.6576 GB, free: 97.85 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001167/1.922, allocations: 3.156 kB / 0.6576 GB, free: 97.85 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006316/1.922, allocations: 0.6285 MB / 0.6582 GB, free: 97.52 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007026/1.929, allocations: 2.935 MB / 0.6611 GB, free: 97.51 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01005/1.94, allocations: 7.278 MB / 0.6682 GB, free: 91.64 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/1.95, allocations: 4.528 MB / 0.6726 GB, free: 90.31 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001886/1.95, allocations: 48.17 kB / 0.6727 GB, free: 90.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=985) (initialization): time 0.04118/1.991, allocations: 11.86 MB / 0.6843 GB, free: 87.22 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001207/1.991, allocations: 71.22 kB / 0.6843 GB, free: 87.22 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02373/2.015, allocations: 6.194 MB / 0.6904 GB, free: 85.15 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01904/2.034, allocations: 3.275 MB / 0.6936 GB, free: 82.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01078/2.045, allocations: 1.745 MB / 0.6953 GB, free: 81.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02594/2.071, allocations: 15.12 MB / 0.71 GB, free: 67.45 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01204/2.083, allocations: 0.6363 MB / 0.7107 GB, free: 67.03 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002131/2.085, allocations: 464.5 kB / 0.7111 GB, free: 66.59 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 705 * Number of states: 0 () * Number of discrete variables: 42 (fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (906): * Single equations (assignments): 886 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(4,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 13,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002961/2.088, allocations: 0.4908 MB / 0.7116 GB, free: 66.1 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02573/2.114, allocations: 6.865 MB / 0.7183 GB, free: 60.81 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001736/2.116, allocations: 383.1 kB / 0.7186 GB, free: 60.43 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02513/2.141, allocations: 6.693 MB / 0.7252 GB, free: 55.44 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02262/2.164, allocations: 6.075 MB / 0.7311 GB, free: 50.77 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.78e-05/2.164, allocations: 11.31 kB / 0.7311 GB, free: 50.76 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.876e-05/2.164, allocations: 11.95 kB / 0.7311 GB, free: 50.75 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04438/2.208, allocations: 14.36 MB / 0.7452 GB, free: 36.31 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.234e-05/2.208, allocations: 8.062 kB / 0.7452 GB, free: 36.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004043/2.212, allocations: 415.3 kB / 0.7456 GB, free: 35.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01806/2.231, allocations: 3.275 MB / 0.7488 GB, free: 32.59 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007713/2.231, allocations: 47.92 kB / 0.7488 GB, free: 32.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0276/2.259, allocations: 16.01 MB / 0.7644 GB, free: 15.88 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003149/2.262, allocations: 4.236 MB / 0.7686 GB, free: 11.28 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03121/2.293, allocations: 10.42 MB / 0.7788 GB, free: 0.6914 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001488/2.295, allocations: 444 kB / 0.7792 GB, free: 240 kB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001669/2.297, allocations: 30.59 kB / 0.7792 GB, free: 212 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005787/2.303, allocations: 299.5 kB / 0.7795 GB, free: 15.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001278/2.304, allocations: 181.6 kB / 0.7797 GB, free: 15.73 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004527/2.304, allocations: 72.73 kB / 0.7797 GB, free: 15.66 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006683/2.311, allocations: 2.291 MB / 0.782 GB, free: 13.36 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.62e-07/2.311, allocations: 0 / 0.782 GB, free: 13.36 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01098/2.322, allocations: 1.368 MB / 0.7833 GB, free: 12 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 36 ($STATESET139813212443018.x[3],$STATESET139813212443018.x[2],$STATESET139813212443018.x[1],$STATESET139813212443017.x[3],$STATESET139813212443017.x[2],$STATESET139813212443017.x[1],$STATESET139813212443016.x[3],$STATESET139813212443016.x[2],$STATESET139813212443016.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],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],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 163 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 5 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,100.0%) 8,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03654/2.359, allocations: 11.62 MB / 0.7947 GB, free: 264 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.3588/2.718, allocations: 8.704 MB / 0.8032 GB, free: 128.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/2.718, allocations: 1.25 kB / 0.8032 GB, free: 128.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01641/2.734, allocations: 4.462 MB / 0.8075 GB, free: 127 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004248/2.738, allocations: 402.9 kB / 0.8079 GB, free: 127 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03991/2.778, allocations: 13.1 MB / 0.8207 GB, free: 124.1 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008417/2.787, allocations: 3.73 MB / 0.8243 GB, free: 123.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005544/2.792, allocations: 2.258 MB / 0.8265 GB, free: 123.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.763e-06/2.792, allocations: 0 / 0.8265 GB, free: 123.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.646/9.439, allocations: 303.3 MB / 1.123 GB, free: 41.32 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Spring2_res.mat does not exist to compare? outputFormat=mat