Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003455/0.0003455, allocations: 15.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.09362, allocations: 44.51 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4239/0.5176, allocations: 86.12 MB / 394.7 MB, free: 15.02 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/0.5179, allocations: 88.92 kB / 394.8 MB, free: 15.02 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3164/0.8344, allocations: 77.7 MB / 472.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.8344, allocations: 0 / 472.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002283/0.8347, allocations: 76 kB / 472.5 MB, free: 14.48 MB / 362.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.02314/0.8578, allocations: 4.227 MB / 476.8 MB, free: 10.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.278e-05/0.8579, allocations: 12.03 kB / 476.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003479/0.8614, allocations: 0.7555 MB / 477.5 MB, free: 9.465 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01832/0.8797, allocations: 2.237 MB / 479.8 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01826/0.898, allocations: 4.357 MB / 484.1 MB, free: 2.867 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004885/0.8986, allocations: 318.4 kB / 484.4 MB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002485/0.9011, allocations: 405.8 kB / 484.8 MB, free: 2.211 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03488/0.936, allocations: 10.25 MB / 495.1 MB, free: 6.938 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002774/0.9363, allocations: 63.36 kB / 495.1 MB, free: 6.875 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00184/0.9382, allocations: 204.8 kB / 495.3 MB, free: 6.699 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003601/0.9418, allocations: 0.9815 MB / 496.3 MB, free: 5.715 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03941/0.9813, allocations: 8.145 MB / 0.4926 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3829/1.364, allocations: 48.24 MB / 0.5398 GB, free: 61.56 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01602/1.38, allocations: 3.563 MB / 0.5432 GB, free: 60.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01495/1.395, allocations: 6.519 MB / 0.5496 GB, free: 58.64 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.096e-05/1.395, allocations: 47.16 kB / 0.5496 GB, free: 58.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=131): time 4.709e-06/1.395, allocations: 3.969 kB / 0.5496 GB, free: 58.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=138): time 0.06617/1.462, allocations: 11.98 MB / 0.5614 GB, free: 55.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001715/1.463, allocations: 1.595 MB / 0.5629 GB, free: 53.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01034/1.474, allocations: 3.398 MB / 0.5662 GB, free: 53.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004755/1.474, allocations: 48.53 kB / 0.5663 GB, free: 53.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003243/1.477, allocations: 3.024 MB / 0.5692 GB, free: 51.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001151/1.479, allocations: 0.5746 MB / 0.5698 GB, free: 51.45 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007413/1.479, allocations: 119.8 kB / 0.5699 GB, free: 51.45 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005153/1.48, allocations: 0.5625 MB / 0.5705 GB, free: 51.12 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006991/1.487, allocations: 1.965 MB / 0.5724 GB, free: 51.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00813/1.495, allocations: 5.845 MB / 0.5781 GB, free: 46.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007959/1.503, allocations: 3.307 MB / 0.5813 GB, free: 46.03 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001354/1.503, allocations: 40.53 kB / 0.5813 GB, free: 46.03 MB / 410.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.02711/1.53, allocations: 8.616 MB / 0.5898 GB, free: 45.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001343/1.531, allocations: 62.69 kB / 0.5898 GB, free: 45.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01069/1.541, allocations: 2.753 MB / 0.5925 GB, free: 44.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009676/1.551, allocations: 1.62 MB / 0.5941 GB, free: 43.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007573/1.559, allocations: 1.348 MB / 0.5954 GB, free: 43.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00875/1.568, allocations: 5.63 MB / 0.6009 GB, free: 39.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007411/1.575, allocations: 440.6 kB / 0.6013 GB, free: 39.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00136/1.576, allocations: 382.6 kB / 0.6017 GB, free: 39.79 MB / 410.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): 3 * 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: 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 {6 26} Notification: Performance of prepare postOptimizeDAE: time 0.005506/1.582, allocations: 1.966 MB / 0.6036 GB, free: 38.84 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008365/1.583, allocations: 321.5 kB / 0.6039 GB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/1.594, allocations: 3.005 MB / 0.6069 GB, free: 37.67 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009668/1.604, allocations: 2.575 MB / 0.6094 GB, free: 36.89 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.178e-05/1.604, allocations: 9.375 kB / 0.6094 GB, free: 36.89 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.264e-05/1.604, allocations: 10.09 kB / 0.6094 GB, free: 36.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009413/1.613, allocations: 3.542 MB / 0.6128 GB, free: 35.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.147e-05/1.613, allocations: 3.781 kB / 0.6128 GB, free: 35.62 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/1.615, allocations: 164.3 kB / 0.613 GB, free: 35.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008275/1.623, allocations: 1.44 MB / 0.6144 GB, free: 35.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004249/1.624, allocations: 33.06 kB / 0.6144 GB, free: 35.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009588/1.633, allocations: 5.838 MB / 0.6201 GB, free: 30.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001134/1.634, allocations: 1.464 MB / 0.6216 GB, free: 28.72 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01488/1.649, allocations: 5.166 MB / 0.6266 GB, free: 24.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001214/1.651, allocations: 369.3 kB / 0.627 GB, free: 23.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001006/1.652, allocations: 28.81 kB / 0.627 GB, free: 23.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002988/1.655, allocations: 137.4 kB / 0.6271 GB, free: 23.86 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005364/1.655, allocations: 86.58 kB / 0.6272 GB, free: 23.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/1.655, allocations: 39.28 kB / 0.6272 GB, free: 23.78 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006332/1.662, allocations: 2.335 MB / 0.6295 GB, free: 21.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.202e-06/1.662, allocations: 4 kB / 0.6295 GB, free: 21.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007329/1.669, allocations: 0.9725 MB / 0.6305 GB, free: 20.91 MB / 410.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 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01406/1.683, allocations: 5.794 MB / 0.6361 GB, free: 15.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01447/1.698, allocations: 5.279 MB / 0.6413 GB, free: 11.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/1.698, allocations: 0 / 0.6413 GB, free: 11.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006553/1.704, allocations: 1.96 MB / 0.6432 GB, free: 9.496 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002952/1.707, allocations: 347.6 kB / 0.6435 GB, free: 9.191 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4538/2.161, allocations: 128.2 MB / 0.7687 GB, free: 45.12 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009172/2.17, allocations: 3.124 MB / 0.7718 GB, free: 44.34 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005344/2.176, allocations: 1.748 MB / 0.7735 GB, free: 44.34 MB / 442.7 MB Notification: Performance of SimCode: time 1.483e-06/2.176, allocations: 0 / 0.7735 GB, free: 44.34 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.851/7.027, allocations: 155 MB / 0.9248 GB, free: 96.3 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat does not exist to compare? outputFormat=mat