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.554/1.554, allocations: 171.1 MB / 186.7 MB, free: 1.113 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.000357, allocations: 8 kB / 233.3 MB, free: 0.8281 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1334, allocations: 38.78 MB / 272.1 MB, free: 9.969 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3457/0.4791, allocations: 80.49 MB / 352.6 MB, free: 2.367 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003178/0.4795, allocations: 79.95 kB / 352.7 MB, free: 2.289 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.552/1.031, allocations: 77.53 MB / 430.2 MB, free: 77.92 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.032, allocations: 0 / 430.2 MB, free: 77.92 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002197/1.032, allocations: 73.8 kB / 430.3 MB, free: 77.92 MB / 346.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.02252/1.054, allocations: 4.225 MB / 434.5 MB, free: 76.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/1.054, allocations: 9.156 kB / 434.5 MB, free: 76.18 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003127/1.058, allocations: 0.7493 MB / 435.3 MB, free: 76.1 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01753/1.075, allocations: 2.228 MB / 437.5 MB, free: 75.84 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01632/1.091, allocations: 4.35 MB / 441.8 MB, free: 75.31 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003482/1.092, allocations: 313.3 kB / 442.2 MB, free: 75.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001917/1.094, allocations: 413.5 kB / 442.6 MB, free: 75.3 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0265/1.12, allocations: 10.25 MB / 452.8 MB, free: 72.31 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001878/1.121, allocations: 64.41 kB / 452.9 MB, free: 72.3 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009356/1.122, allocations: 205.4 kB / 453.1 MB, free: 72.3 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001867/1.123, allocations: 0.9829 MB / 454.1 MB, free: 72.29 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02412/1.148, allocations: 8.143 MB / 462.2 MB, free: 70.6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06108/1.209, allocations: 48.25 MB / 0.4985 GB, free: 32.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0151/1.224, allocations: 3.58 MB / 0.502 GB, free: 29.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01388/1.238, allocations: 6.496 MB / 0.5083 GB, free: 23.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.246e-05/1.238, allocations: 47.22 kB / 0.5084 GB, free: 23.7 MB / 346.7 MB Notification: Performance of pre-optimization done (n=131): time 5.991e-06/1.238, allocations: 0 / 0.5084 GB, free: 23.7 MB / 346.7 MB Notification: Performance of matching and sorting (n=138): time 0.04945/1.287, allocations: 11.98 MB / 0.5201 GB, free: 12.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001271/1.289, allocations: 1.596 MB / 0.5216 GB, free: 10.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007798/1.296, allocations: 3.395 MB / 0.5249 GB, free: 7.281 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003813/1.297, allocations: 49.16 kB / 0.525 GB, free: 7.23 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002459/1.299, allocations: 3.027 MB / 0.5279 GB, free: 4.211 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009341/1.3, allocations: 0.5786 MB / 0.5285 GB, free: 3.637 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006877/1.301, allocations: 120 kB / 0.5286 GB, free: 3.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003475/1.301, allocations: 0.563 MB / 0.5292 GB, free: 2.945 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004806/1.306, allocations: 1.96 MB / 0.5311 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009099/1.315, allocations: 5.841 MB / 0.5368 GB, free: 9.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008468/1.324, allocations: 3.298 MB / 0.54 GB, free: 5.883 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001075/1.324, allocations: 40 kB / 0.5401 GB, free: 5.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=786) (initialization): time 0.283/1.607, allocations: 8.523 MB / 0.5484 GB, free: 78.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000182/1.607, allocations: 64.31 kB / 0.5484 GB, free: 78.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01506/1.622, allocations: 2.668 MB / 0.551 GB, free: 78.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0127/1.635, allocations: 1.548 MB / 0.5526 GB, free: 78.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01018/1.645, allocations: 1.355 MB / 0.5539 GB, free: 78.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0387/1.684, allocations: 5.205 MB / 0.559 GB, free: 75.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01137/1.696, allocations: 437.5 kB / 0.5594 GB, free: 75.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001863/1.698, allocations: 387.5 kB / 0.5597 GB, free: 75.66 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 (720): * Single equations (assignments): 710 * 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 {1} * 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.007355/1.705, allocations: 1.974 MB / 0.5617 GB, free: 75.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001101/1.706, allocations: 319 kB / 0.562 GB, free: 75.55 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01575/1.722, allocations: 3.016 MB / 0.5649 GB, free: 75.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01354/1.735, allocations: 2.565 MB / 0.5674 GB, free: 75.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.073e-05/1.736, allocations: 7.438 kB / 0.5674 GB, free: 75.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.896e-05/1.736, allocations: 3.188 kB / 0.5674 GB, free: 75.28 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01341/1.749, allocations: 3.546 MB / 0.5709 GB, free: 75.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.302e-05/1.749, allocations: 10.7 kB / 0.5709 GB, free: 75.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002165/1.751, allocations: 161.5 kB / 0.5711 GB, free: 75.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01108/1.762, allocations: 1.434 MB / 0.5725 GB, free: 74.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004828/1.763, allocations: 35.77 kB / 0.5725 GB, free: 74.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01335/1.776, allocations: 5.844 MB / 0.5782 GB, free: 71.89 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001682/1.778, allocations: 1.467 MB / 0.5796 GB, free: 70.52 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02035/1.798, allocations: 5.154 MB / 0.5847 GB, free: 69.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001533/1.8, allocations: 375.1 kB / 0.585 GB, free: 69.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001629/1.802, allocations: 31.98 kB / 0.5851 GB, free: 69.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004381/1.806, allocations: 136.8 kB / 0.5852 GB, free: 69.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007526/1.807, allocations: 84.55 kB / 0.5853 GB, free: 69.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002792/1.807, allocations: 45.38 kB / 0.5853 GB, free: 69.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.008721/1.816, allocations: 2.333 MB / 0.5876 GB, free: 68.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.655e-06/1.816, allocations: 0 / 0.5876 GB, free: 68.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.01143/1.828, allocations: 0.9756 MB / 0.5885 GB, free: 68.65 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 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01925/1.847, allocations: 5.789 MB / 0.5942 GB, free: 65.97 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0188/1.866, allocations: 5.148 MB / 0.5992 GB, free: 64.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/1.866, allocations: 3.625 kB / 0.5992 GB, free: 64.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008765/1.875, allocations: 1.958 MB / 0.6011 GB, free: 63.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004015/1.879, allocations: 348.2 kB / 0.6015 GB, free: 63.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3533/2.232, allocations: 128.1 MB / 0.7265 GB, free: 58.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005507/2.237, allocations: 3.121 MB / 0.7296 GB, free: 57.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003531/2.241, allocations: 1.744 MB / 0.7313 GB, free: 57.9 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/2.241, allocations: 0 / 0.7313 GB, free: 57.9 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.948/7.189, allocations: 154.7 MB / 0.8824 GB, free: 71.03 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