Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001041/0.001041, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.38/1.38, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009098/0.0009099, allocations: 89.41 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002796/0.00028, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2509, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7587/1.01, allocations: 326.8 MB / 0.6863 GB, free: 105.4 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/1.01, allocations: 95.19 kB / 0.6864 GB, free: 105.4 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.108/2.118, allocations: 326.1 MB / 1.005 GB, free: 51.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.803e-06/2.118, allocations: 0 / 1.005 GB, free: 51.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001361/2.118, allocations: 50.97 kB / 1.005 GB, free: 51.16 MB / 426.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.00711/2.126, allocations: 2.249 MB / 1.007 GB, free: 50.22 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/2.126, allocations: 10.72 kB / 1.007 GB, free: 50.22 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007245/2.126, allocations: 196.3 kB / 1.007 GB, free: 50.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007655/2.127, allocations: 200.4 kB / 1.007 GB, free: 50.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002474/2.13, allocations: 1.201 MB / 1.009 GB, free: 49.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.776e-05/2.13, allocations: 99.33 kB / 1.009 GB, free: 49.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001985/2.13, allocations: 119.3 kB / 1.009 GB, free: 49.74 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003066/2.133, allocations: 1.956 MB / 1.011 GB, free: 49.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.343e-05/2.133, allocations: 4.312 kB / 1.011 GB, free: 49.45 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001665/2.133, allocations: 54.42 kB / 1.011 GB, free: 49.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/2.133, allocations: 115.5 kB / 1.011 GB, free: 49.45 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0029/2.136, allocations: 1.959 MB / 1.013 GB, free: 49.43 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01004/2.146, allocations: 7.673 MB / 1.02 GB, free: 46.01 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/2.148, allocations: 1.175 MB / 1.021 GB, free: 45.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004533/2.152, allocations: 3.425 MB / 1.025 GB, free: 44.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.941e-05/2.153, allocations: 54.33 kB / 1.025 GB, free: 44.37 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 4.799e-06/2.153, allocations: 2.688 kB / 1.025 GB, free: 44.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01211/2.165, allocations: 5.421 MB / 1.03 GB, free: 43.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/2.165, allocations: 167.3 kB / 1.03 GB, free: 43.13 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001805/2.167, allocations: 1.256 MB / 1.032 GB, free: 42.97 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001638/2.167, allocations: 62.86 kB / 1.032 GB, free: 42.94 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005162/2.167, allocations: 0.7044 MB / 1.032 GB, free: 42.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003509/2.168, allocations: 466.9 kB / 1.033 GB, free: 42.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-05/2.168, allocations: 34.25 kB / 1.033 GB, free: 42.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001157/2.168, allocations: 376.1 kB / 1.033 GB, free: 42.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001081/2.169, allocations: 0.7544 MB / 1.034 GB, free: 42.07 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/2.17, allocations: 1.153 MB / 1.035 GB, free: 41.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001204/2.172, allocations: 0.8672 MB / 1.036 GB, free: 41.61 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/2.172, allocations: 3.75 kB / 1.036 GB, free: 41.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003681/2.175, allocations: 2.391 MB / 1.038 GB, free: 41.41 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008727/2.176, allocations: 4.348 MB / 1.042 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.001e-05/2.176, allocations: 14.73 kB / 1.042 GB, free: 36.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005074/2.181, allocations: 0.9547 MB / 1.043 GB, free: 36.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001651/2.183, allocations: 348.9 kB / 1.044 GB, free: 36.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/2.185, allocations: 2.898 MB / 1.047 GB, free: 34.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/2.187, allocations: 129 kB / 1.047 GB, free: 34.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/2.187, allocations: 86.25 kB / 1.047 GB, free: 34.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/2.187, allocations: 3.781 kB / 1.047 GB, free: 34.84 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003195/2.191, allocations: 2.097 MB / 1.049 GB, free: 34.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/2.191, allocations: 14.16 kB / 1.049 GB, free: 34.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004046/2.195, allocations: 0.686 MB / 1.049 GB, free: 34.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/2.196, allocations: 355.1 kB / 1.05 GB, free: 34.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001686/2.198, allocations: 2.653 MB / 1.052 GB, free: 32.65 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/2.2, allocations: 129.2 kB / 1.053 GB, free: 32.64 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001487/2.2, allocations: 78.12 kB / 1.053 GB, free: 32.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (200): * Single equations (assignments): 196 * 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.001051/2.201, allocations: 0.517 MB / 1.053 GB, free: 32.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002947/2.201, allocations: 174.2 kB / 1.053 GB, free: 32.36 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00417/2.205, allocations: 2.354 MB / 1.056 GB, free: 32.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-05/2.205, allocations: 21.72 kB / 1.056 GB, free: 32.18 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/2.205, allocations: 0 / 1.056 GB, free: 32.18 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.591e-05/2.205, allocations: 10.12 kB / 1.056 GB, free: 32.18 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006244/2.212, allocations: 4.017 MB / 1.06 GB, free: 31.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/2.212, allocations: 7.562 kB / 1.06 GB, free: 31.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009956/2.213, allocations: 232.9 kB / 1.06 GB, free: 31.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003736/2.216, allocations: 0.8923 MB / 1.061 GB, free: 31.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002232/2.217, allocations: 48.05 kB / 1.061 GB, free: 31.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001953/2.219, allocations: 2.839 MB / 1.063 GB, free: 29.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/2.219, allocations: 7.25 kB / 1.063 GB, free: 29.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004814/2.223, allocations: 3.255 MB / 1.067 GB, free: 29.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008806/2.224, allocations: 277.2 kB / 1.067 GB, free: 28.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000255/2.225, allocations: 38.41 kB / 1.067 GB, free: 28.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/2.226, allocations: 109.8 kB / 1.067 GB, free: 28.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002694/2.226, allocations: 149 kB / 1.067 GB, free: 28.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/2.226, allocations: 60.42 kB / 1.067 GB, free: 28.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001431/2.228, allocations: 0.9728 MB / 1.068 GB, free: 28.79 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.228, allocations: 0 / 1.068 GB, free: 28.79 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004856/2.232, allocations: 1.386 MB / 1.07 GB, free: 28.58 MB / 426.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.009839/2.242, allocations: 5.337 MB / 1.075 GB, free: 26.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006859/2.249, allocations: 3.021 MB / 1.078 GB, free: 25.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/2.249, allocations: 0 / 1.078 GB, free: 25.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002196/2.252, allocations: 1.072 MB / 1.079 GB, free: 25.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004467/2.256, allocations: 0.7385 MB / 1.079 GB, free: 24.91 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/2.273, allocations: 12.91 MB / 1.092 GB, free: 30.22 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001442/2.274, allocations: 1.431 MB / 1.093 GB, free: 29.43 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003366/2.278, allocations: 0.7133 MB / 1.094 GB, free: 29.35 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001231/2.279, allocations: 0.6575 MB / 1.095 GB, free: 28.87 MB / 442.7 MB Notification: Performance of SimCode: time 1.172e-06/2.279, allocations: 0 / 1.095 GB, free: 28.87 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3552/2.634, allocations: 64.16 MB / 1.157 GB, free: 63.11 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/2.634, allocations: 265.1 kB / 1.158 GB, free: 62.76 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.822/7.456, allocations: 4 kB / 1.158 GB, free: 62.76 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat