Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.719/1.719, allocations: 171.2 MB / 186.1 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.000361, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08761/0.08801, allocations: 38.78 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.213/1.301, allocations: 317 MB / 0.5753 GB, free: 98.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003747/1.302, allocations: 93.42 kB / 0.5754 GB, free: 98.84 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.673/2.974, allocations: 322.6 MB / 0.8904 GB, free: 35.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.587e-06/2.974, allocations: 0 / 0.8904 GB, free: 35.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001957/2.975, allocations: 49.44 kB / 0.8905 GB, free: 35.75 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.009299/2.984, allocations: 2.244 MB / 0.8927 GB, free: 34.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/2.984, allocations: 7.531 kB / 0.8927 GB, free: 34.76 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001004/2.985, allocations: 193.7 kB / 0.8929 GB, free: 34.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001106/2.986, allocations: 205.2 kB / 0.8931 GB, free: 34.62 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004857/2.991, allocations: 1.248 MB / 0.8943 GB, free: 34.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/2.991, allocations: 101.1 kB / 0.8944 GB, free: 34.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007069/2.992, allocations: 118.2 kB / 0.8945 GB, free: 34.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005431/2.997, allocations: 1.946 MB / 0.8964 GB, free: 33.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.421e-05/2.998, allocations: 4.312 kB / 0.8964 GB, free: 33.95 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000311/2.998, allocations: 50.42 kB / 0.8964 GB, free: 33.95 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002297/2.998, allocations: 117.6 kB / 0.8965 GB, free: 33.95 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006208/3.004, allocations: 1.955 MB / 0.8985 GB, free: 33.93 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01978/3.024, allocations: 7.62 MB / 0.9059 GB, free: 30.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003172/3.027, allocations: 1.153 MB / 0.907 GB, free: 30.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007797/3.035, allocations: 3.345 MB / 0.9103 GB, free: 28.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.286e-05/3.035, allocations: 51.52 kB / 0.9103 GB, free: 28.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=119): time 5.871e-06/3.035, allocations: 0 / 0.9103 GB, free: 28.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=134): time 0.02165/3.057, allocations: 5.363 MB / 0.9156 GB, free: 27.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.312e-05/3.057, allocations: 172.4 kB / 0.9157 GB, free: 27.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002502/3.06, allocations: 1.167 MB / 0.9169 GB, free: 27.46 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005106/3.06, allocations: 60.5 kB / 0.9169 GB, free: 27.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007101/3.061, allocations: 0.7251 MB / 0.9176 GB, free: 27.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000729/3.062, allocations: 477.1 kB / 0.9181 GB, free: 26.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001953/3.062, allocations: 39.28 kB / 0.9181 GB, free: 26.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/3.062, allocations: 375.4 kB / 0.9185 GB, free: 26.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002106/3.064, allocations: 0.7455 MB / 0.9192 GB, free: 26.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002471/3.067, allocations: 1.207 MB / 0.9204 GB, free: 26.01 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002446/3.069, allocations: 0.8782 MB / 0.9213 GB, free: 26 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/3.069, allocations: 6.781 kB / 0.9213 GB, free: 26 MB / 362.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.007002/3.076, allocations: 2.411 MB / 0.9236 GB, free: 25.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001297/3.078, allocations: 5.202 MB / 0.9287 GB, free: 20.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.364e-05/3.078, allocations: 15.12 kB / 0.9287 GB, free: 20.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009163/3.087, allocations: 0.9548 MB / 0.9296 GB, free: 20.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002786/3.09, allocations: 360.4 kB / 0.93 GB, free: 20.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003509/3.093, allocations: 2.887 MB / 0.9328 GB, free: 18.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002966/3.096, allocations: 133.8 kB / 0.9329 GB, free: 18.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004508/3.097, allocations: 86.2 kB / 0.933 GB, free: 18.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/3.097, allocations: 3.938 kB / 0.933 GB, free: 18.33 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006025/3.103, allocations: 2.128 MB / 0.9351 GB, free: 18.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.362e-05/3.103, allocations: 22.12 kB / 0.9351 GB, free: 18.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007218/3.11, allocations: 0.6787 MB / 0.9358 GB, free: 18.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002888/3.113, allocations: 369.5 kB / 0.9361 GB, free: 18.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003496/3.117, allocations: 2.628 MB / 0.9387 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002747/3.12, allocations: 135.3 kB / 0.9388 GB, free: 32.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003493/3.12, allocations: 88.56 kB / 0.9389 GB, free: 32.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.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 (207): * Single equations (assignments): 203 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.001416/3.121, allocations: 0.5208 MB / 0.9394 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005284/3.122, allocations: 164.6 kB / 0.9396 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007405/3.129, allocations: 2.346 MB / 0.9419 GB, free: 31.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/3.129, allocations: 15.06 kB / 0.9419 GB, free: 31.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.105e-05/3.129, allocations: 5.266 kB / 0.9419 GB, free: 31.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.756e-05/3.13, allocations: 9.797 kB / 0.9419 GB, free: 31.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/3.141, allocations: 3.937 MB / 0.9457 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.291e-05/3.141, allocations: 3.844 kB / 0.9458 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/3.143, allocations: 241.6 kB / 0.946 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006692/3.15, allocations: 0.8861 MB / 0.9468 GB, free: 31.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004435/3.15, allocations: 40.7 kB / 0.9469 GB, free: 31.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003551/3.154, allocations: 2.833 MB / 0.9497 GB, free: 28.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/3.154, allocations: 3.656 kB / 0.9497 GB, free: 28.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008834/3.163, allocations: 3.208 MB / 0.9528 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008124/3.164, allocations: 265.8 kB / 0.953 GB, free: 27.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007207/3.164, allocations: 37.23 kB / 0.9531 GB, free: 27.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002248/3.167, allocations: 110.7 kB / 0.9532 GB, free: 27.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006133/3.167, allocations: 152.6 kB / 0.9533 GB, free: 27.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00023/3.168, allocations: 60.77 kB / 0.9534 GB, free: 27.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002024/3.17, allocations: 0.8975 MB / 0.9543 GB, free: 26.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.32e-07/3.17, allocations: 0 / 0.9543 GB, free: 26.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.006559/3.176, allocations: 1.358 MB / 0.9556 GB, free: 26.51 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.01378/3.19, allocations: 5.289 MB / 0.9608 GB, free: 23.76 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0103/3.2, allocations: 3.045 MB / 0.9637 GB, free: 22.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.389e-05/3.2, allocations: 7.844 kB / 0.9637 GB, free: 22.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003434/3.204, allocations: 1.058 MB / 0.9648 GB, free: 22.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005715/3.21, allocations: 0.6673 MB / 0.9654 GB, free: 22.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/3.227, allocations: 14.42 MB / 0.9795 GB, free: 9.898 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00123/3.228, allocations: 1.433 MB / 0.9809 GB, free: 8.793 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.004331/3.233, allocations: 0.7176 MB / 0.9816 GB, free: 8.332 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001638/3.234, allocations: 0.6519 MB / 0.9822 GB, free: 7.742 MB / 378.7 MB Notification: Performance of SimCode: time 1.152e-06/3.234, allocations: 0 / 0.9822 GB, free: 7.742 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.497/3.731, allocations: 61.37 MB / 1.042 GB, free: 43.54 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003332/3.732, allocations: 277.3 kB / 1.042 GB, free: 43.17 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.291/9.022, allocations: 5.531 kB / 1.042 GB, free: 43.17 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat