Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.633/1.633, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003594/0.0003594, allocations: 12 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.129, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9558/1.085, allocations: 311.4 MB / 0.5698 GB, free: 2.281 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004081/1.085, allocations: 82.22 kB / 0.5699 GB, free: 2.238 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.549/2.634, allocations: 267.7 MB / 0.8313 GB, free: 31.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/2.634, allocations: 0 / 0.8313 GB, free: 31.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001716/2.635, allocations: 36 kB / 0.8313 GB, free: 31.09 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.009161/2.644, allocations: 2.001 MB / 0.8333 GB, free: 29.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.04e-05/2.644, allocations: 12.02 kB / 0.8333 GB, free: 29.02 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009747/2.645, allocations: 168.5 kB / 0.8334 GB, free: 28.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009062/2.646, allocations: 178.1 kB / 0.8336 GB, free: 28.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004149/2.65, allocations: 1.117 MB / 0.8347 GB, free: 27.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002252/2.65, allocations: 179 kB / 0.8349 GB, free: 27.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004464/2.651, allocations: 99.88 kB / 0.835 GB, free: 27.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004976/2.656, allocations: 1.771 MB / 0.8367 GB, free: 25.39 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.626e-05/2.656, allocations: 0 / 0.8367 GB, free: 25.39 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002641/2.656, allocations: 43.97 kB / 0.8367 GB, free: 25.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002459/2.656, allocations: 109.9 kB / 0.8369 GB, free: 25.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005088/2.661, allocations: 1.776 MB / 0.8386 GB, free: 23.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01883/2.68, allocations: 6.407 MB / 0.8448 GB, free: 16.78 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002978/2.683, allocations: 1.173 MB / 0.846 GB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009005/2.692, allocations: 4.173 MB / 0.8501 GB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/2.692, allocations: 55.55 kB / 0.8501 GB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001777/2.694, allocations: 206.7 kB / 0.8503 GB, free: 10.74 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 5.37e-06/2.694, allocations: 0 / 0.8503 GB, free: 10.74 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.03079/2.725, allocations: 5.354 MB / 0.8555 GB, free: 5.324 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/2.725, allocations: 145.5 kB / 0.8557 GB, free: 5.152 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002204/2.727, allocations: 1.106 MB / 0.8568 GB, free: 4.039 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003782/2.728, allocations: 49.64 kB / 0.8568 GB, free: 3.984 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004359/2.728, allocations: 0.5798 MB / 0.8574 GB, free: 3.398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004666/2.729, allocations: 394.4 kB / 0.8578 GB, free: 3.008 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/2.729, allocations: 24 kB / 0.8578 GB, free: 2.984 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/2.729, allocations: 370.8 kB / 0.8581 GB, free: 2.613 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001777/2.731, allocations: 0.6324 MB / 0.8587 GB, free: 1.98 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001903/2.733, allocations: 0.9704 MB / 0.8597 GB, free: 0.8789 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001914/2.735, allocations: 0.76 MB / 0.8604 GB, free: 120 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/2.735, allocations: 4 kB / 0.8604 GB, free: 116 kB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.2889/3.024, allocations: 2.027 MB / 0.8624 GB, free: 46.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009632/3.025, allocations: 3.493 MB / 0.8658 GB, free: 42.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.801e-05/3.025, allocations: 8.188 kB / 0.8658 GB, free: 42.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01337/3.038, allocations: 1.224 MB / 0.867 GB, free: 42.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002446/3.041, allocations: 294.6 kB / 0.8673 GB, free: 42.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004013/3.045, allocations: 1.541 MB / 0.8688 GB, free: 41.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002634/3.047, allocations: 85.28 kB / 0.8689 GB, free: 41.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002387/3.048, allocations: 71.11 kB / 0.869 GB, free: 41.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.567e-05/3.048, allocations: 3.406 kB / 0.869 GB, free: 41.96 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005082/3.053, allocations: 1.795 MB / 0.8707 GB, free: 41.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.81e-05/3.053, allocations: 7.094 kB / 0.8707 GB, free: 41.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01134/3.064, allocations: 0.9418 MB / 0.8716 GB, free: 41.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00261/3.067, allocations: 302.4 kB / 0.8719 GB, free: 41.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002918/3.07, allocations: 1.209 MB / 0.8731 GB, free: 41.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002043/3.072, allocations: 84.22 kB / 0.8732 GB, free: 41.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002303/3.072, allocations: 67.05 kB / 0.8733 GB, free: 41.39 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.001395/3.074, allocations: 472.1 kB / 0.8737 GB, free: 41.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005711/3.074, allocations: 144.8 kB / 0.8739 GB, free: 41.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007977/3.082, allocations: 2.027 MB / 0.8758 GB, free: 41.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-05/3.082, allocations: 13 kB / 0.8758 GB, free: 41.11 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/3.082, allocations: 0 / 0.8758 GB, free: 41.11 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.403e-05/3.082, allocations: 7.766 kB / 0.8759 GB, free: 41.11 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/3.093, allocations: 3.431 MB / 0.8792 GB, free: 40.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.879e-06/3.093, allocations: 1.969 kB / 0.8792 GB, free: 40.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001804/3.095, allocations: 193.2 kB / 0.8794 GB, free: 40.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006609/3.101, allocations: 0.9632 MB / 0.8803 GB, free: 40.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003717/3.102, allocations: 27.86 kB / 0.8804 GB, free: 40.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00337/3.105, allocations: 1.569 MB / 0.8819 GB, free: 40.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/3.105, allocations: 0 / 0.8819 GB, free: 40.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00747/3.113, allocations: 2.749 MB / 0.8846 GB, free: 39.98 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/3.114, allocations: 410.7 kB / 0.885 GB, free: 39.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004819/3.115, allocations: 22.69 kB / 0.885 GB, free: 39.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002221/3.117, allocations: 81.44 kB / 0.8851 GB, free: 39.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003901/3.117, allocations: 101.8 kB / 0.8852 GB, free: 39.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001974/3.117, allocations: 48.97 kB / 0.8852 GB, free: 39.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001956/3.119, allocations: 0.836 MB / 0.886 GB, free: 39.7 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.81e-07/3.12, allocations: 2.625 kB / 0.886 GB, free: 39.7 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005936/3.125, allocations: 1.246 MB / 0.8872 GB, free: 39.7 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01125/3.137, allocations: 4.268 MB / 0.8914 GB, free: 38.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.009581/3.146, allocations: 2.557 MB / 0.8939 GB, free: 38.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.105e-05/3.146, allocations: 0 / 0.8939 GB, free: 38.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003143/3.15, allocations: 0.837 MB / 0.8947 GB, free: 38.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005283/3.155, allocations: 0.5953 MB / 0.8953 GB, free: 38.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01543/3.17, allocations: 10.86 MB / 0.9059 GB, free: 30.92 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/3.172, allocations: 1.311 MB / 0.9072 GB, free: 30.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/3.173, allocations: 0.5638 MB / 0.9077 GB, free: 30.2 MB / 362.7 MB Notification: Performance of SimCode: time 1.273e-06/3.173, allocations: 2 kB / 0.9077 GB, free: 30.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.583/6.756, allocations: 41.25 MB / 0.948 GB, free: 27.39 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat