Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.104/2.104, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005445/0.0005446, allocations: 12 kB / 264.1 MB, free: 3.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3841/0.3847, allocations: 44.5 MB / 308.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.049/1.434, allocations: 319.4 MB / 0.6132 GB, free: 98.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003174/1.434, allocations: 94.17 kB / 0.6133 GB, free: 98.77 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.018/2.452, allocations: 190.8 MB / 0.7997 GB, free: 82.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.006e-06/2.452, allocations: 4 kB / 0.7997 GB, free: 82.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001226/2.452, allocations: 23.94 kB / 0.7997 GB, free: 82.77 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.005488/2.458, allocations: 1.418 MB / 0.8011 GB, free: 81.32 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/2.458, allocations: 8.031 kB / 0.8011 GB, free: 81.32 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005773/2.458, allocations: 110.4 kB / 0.8012 GB, free: 81.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007253/2.459, allocations: 122.8 kB / 0.8013 GB, free: 81.08 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002924/2.462, allocations: 0.7797 MB / 0.8021 GB, free: 80.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001045/2.462, allocations: 49.22 kB / 0.8021 GB, free: 80.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000322/2.462, allocations: 59.91 kB / 0.8022 GB, free: 80.17 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002822/2.465, allocations: 1.055 MB / 0.8032 GB, free: 79.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.68e-05/2.465, allocations: 3.938 kB / 0.8032 GB, free: 79.07 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001819/2.466, allocations: 31.83 kB / 0.8032 GB, free: 79.04 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/2.466, allocations: 69.22 kB / 0.8033 GB, free: 78.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00307/2.469, allocations: 1.008 MB / 0.8043 GB, free: 77.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01152/2.48, allocations: 4.403 MB / 0.8086 GB, free: 73.33 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001578/2.482, allocations: 0.5363 MB / 0.8091 GB, free: 72.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003835/2.486, allocations: 1.91 MB / 0.811 GB, free: 70.68 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/2.486, allocations: 38.89 kB / 0.811 GB, free: 70.63 MB / 410.7 MB Notification: Performance of pre-optimization done (n=40): time 5.29e-06/2.486, allocations: 3.984 kB / 0.811 GB, free: 70.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=45): time 0.007481/2.494, allocations: 1.875 MB / 0.8128 GB, free: 68.66 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/2.494, allocations: 162.2 kB / 0.813 GB, free: 68.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/2.495, allocations: 0.7424 MB / 0.8137 GB, free: 67.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001889/2.495, allocations: 37.7 kB / 0.8138 GB, free: 67.67 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004221/2.496, allocations: 0.4903 MB / 0.8142 GB, free: 67.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000233/2.496, allocations: 169.7 kB / 0.8144 GB, free: 67.02 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.583e-05/2.496, allocations: 16 kB / 0.8144 GB, free: 67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001618/2.496, allocations: 398.7 kB / 0.8148 GB, free: 66.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008424/2.497, allocations: 297.8 kB / 0.8151 GB, free: 66.31 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009909/2.498, allocations: 0.6677 MB / 0.8157 GB, free: 65.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/2.499, allocations: 393.9 kB / 0.8161 GB, free: 65.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.588e-06/2.499, allocations: 4 kB / 0.8161 GB, free: 65.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.003028/2.502, allocations: 1.101 MB / 0.8172 GB, free: 63.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009897/2.503, allocations: 4.442 MB / 0.8215 GB, free: 59.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.516e-05/2.503, allocations: 8 kB / 0.8215 GB, free: 59.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003495/2.507, allocations: 313.4 kB / 0.8218 GB, free: 58.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/2.508, allocations: 195.7 kB / 0.822 GB, free: 58.67 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001496/2.51, allocations: 1.333 MB / 0.8233 GB, free: 57.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001585/2.512, allocations: 64.03 kB / 0.8234 GB, free: 57.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002205/2.512, allocations: 47.98 kB / 0.8234 GB, free: 57.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.618e-05/2.512, allocations: 4 kB / 0.8234 GB, free: 57.18 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002627/2.515, allocations: 0.979 MB / 0.8244 GB, free: 56.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.394e-05/2.515, allocations: 12 kB / 0.8244 GB, free: 56.18 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003045/2.518, allocations: 290.1 kB / 0.8247 GB, free: 55.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001674/2.519, allocations: 195.7 kB / 0.8249 GB, free: 55.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/2.521, allocations: 1.292 MB / 0.8261 GB, free: 54.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/2.523, allocations: 60.09 kB / 0.8262 GB, free: 54.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002661/2.524, allocations: 47.98 kB / 0.8262 GB, free: 54.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001037/2.525, allocations: 368.7 kB / 0.8266 GB, free: 53.88 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003664/2.525, allocations: 94.83 kB / 0.8267 GB, free: 53.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003695/2.529, allocations: 0.7761 MB / 0.8274 GB, free: 53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/2.529, allocations: 4 kB / 0.8274 GB, free: 53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.081e-05/2.529, allocations: 4 kB / 0.8274 GB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.917e-05/2.529, allocations: 4.219 kB / 0.8274 GB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005724/2.535, allocations: 1.55 MB / 0.8289 GB, free: 51.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/2.535, allocations: 3.938 kB / 0.829 GB, free: 51.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009669/2.536, allocations: 75.91 kB / 0.829 GB, free: 51.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003414/2.539, allocations: 288.8 kB / 0.8293 GB, free: 51.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000181/2.539, allocations: 15.98 kB / 0.8293 GB, free: 51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/2.541, allocations: 1.308 MB / 0.8306 GB, free: 49.64 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/2.541, allocations: 4.031 kB / 0.8306 GB, free: 49.64 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003535/2.545, allocations: 1.095 MB / 0.8317 GB, free: 48.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005441/2.545, allocations: 176 kB / 0.8318 GB, free: 48.31 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003572/2.546, allocations: 12 kB / 0.8318 GB, free: 48.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/2.547, allocations: 40.03 kB / 0.8319 GB, free: 48.26 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002697/2.547, allocations: 52.31 kB / 0.8319 GB, free: 48.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/2.547, allocations: 16 kB / 0.8319 GB, free: 48.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001542/2.549, allocations: 0.5654 MB / 0.8325 GB, free: 47.63 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.31e-07/2.549, allocations: 0 / 0.8325 GB, free: 47.63 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004964/2.554, allocations: 0.8117 MB / 0.8333 GB, free: 46.82 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.007657/2.562, allocations: 2.477 MB / 0.8357 GB, free: 44.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005558/2.567, allocations: 1.252 MB / 0.8369 GB, free: 43.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/2.567, allocations: 4.062 kB / 0.8369 GB, free: 43.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001987/2.569, allocations: 358.2 kB / 0.8373 GB, free: 42.76 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/2.573, allocations: 311.2 kB / 0.8376 GB, free: 42.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/2.584, allocations: 10.64 MB / 0.848 GB, free: 31.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008377/2.585, allocations: 1.06 MB / 0.849 GB, free: 30.45 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002892/2.588, allocations: 335.5 kB / 0.8493 GB, free: 30.12 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001054/2.589, allocations: 323.3 kB / 0.8496 GB, free: 29.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.583e-06/2.589, allocations: 0 / 0.8496 GB, free: 29.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3749/2.964, allocations: 30.63 MB / 0.8795 GB, free: 84.53 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003179/2.965, allocations: 266.1 kB / 0.8798 GB, free: 84.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.153/7.118, allocations: 0 / 0.8798 GB, free: 84.18 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat