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.001442/0.001442, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.692/1.692, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009813/0.0009812, allocations: 90.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.696e-05/1.689e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08177/0.08181, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7321/0.8139, allocations: 326.3 MB / 0.6733 GB, free: 3.273 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.8142, allocations: 93.66 kB / 0.6734 GB, free: 3.227 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.029/1.843, allocations: 323.2 MB / 0.989 GB, free: 43.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.372e-06/1.843, allocations: 0 / 0.989 GB, free: 43.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001156/1.843, allocations: 47.2 kB / 0.9891 GB, free: 43.32 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.004965/1.848, allocations: 2.047 MB / 0.9911 GB, free: 41.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/1.848, allocations: 8.031 kB / 0.9911 GB, free: 41.24 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000777/1.849, allocations: 205.8 kB / 0.9913 GB, free: 41.04 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002204/1.851, allocations: 1.193 MB / 0.9924 GB, free: 39.81 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.155e-05/1.851, allocations: 43.98 kB / 0.9925 GB, free: 39.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001813/1.851, allocations: 68 kB / 0.9926 GB, free: 39.7 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002406/1.854, allocations: 1.754 MB / 0.9943 GB, free: 37.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002348/1.856, allocations: 1.751 MB / 0.996 GB, free: 36.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.432e-05/1.856, allocations: 3.938 kB / 0.996 GB, free: 36.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001593/1.856, allocations: 7.188 kB / 0.996 GB, free: 36.08 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001256/1.857, allocations: 118.3 kB / 0.9961 GB, free: 35.96 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01042/1.867, allocations: 7.394 MB / 1.003 GB, free: 28.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/1.868, allocations: 1.111 MB / 1.004 GB, free: 27.13 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007847/1.869, allocations: 0.7102 MB / 1.005 GB, free: 26.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004068/1.873, allocations: 3.38 MB / 1.008 GB, free: 22.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.294e-05/1.873, allocations: 47.88 kB / 1.008 GB, free: 22.75 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 3.025e-06/1.873, allocations: 0 / 1.008 GB, free: 22.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01483/1.888, allocations: 4.671 MB / 1.013 GB, free: 18.03 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/1.888, allocations: 175.5 kB / 1.013 GB, free: 17.82 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001644/1.89, allocations: 0.9515 MB / 1.014 GB, free: 16.86 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002805/1.89, allocations: 33.69 kB / 1.014 GB, free: 16.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005324/1.891, allocations: 0.7058 MB / 1.015 GB, free: 16.11 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000438/1.891, allocations: 461.3 kB / 1.015 GB, free: 15.65 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/1.891, allocations: 0 / 1.015 GB, free: 15.65 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001421/1.892, allocations: 369.9 kB / 1.016 GB, free: 15.29 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001103/1.893, allocations: 0.7068 MB / 1.016 GB, free: 14.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/1.894, allocations: 1.119 MB / 1.017 GB, free: 13.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01081/1.905, allocations: 2.526 MB / 1.02 GB, free: 10.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.231e-05/1.905, allocations: 4 kB / 1.02 GB, free: 10.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.01371/1.919, allocations: 3.894 MB / 1.024 GB, free: 6.863 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006886/1.919, allocations: 4.278 MB / 1.028 GB, free: 2.262 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.422e-05/1.919, allocations: 12 kB / 1.028 GB, free: 2.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/1.921, allocations: 462.8 kB / 1.028 GB, free: 1.789 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/1.922, allocations: 343.5 kB / 1.029 GB, free: 1.453 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2352/2.157, allocations: 3.291 MB / 1.032 GB, free: 54.44 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/2.159, allocations: 101.7 kB / 1.032 GB, free: 54.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003911/2.159, allocations: 77.98 kB / 1.032 GB, free: 54.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/2.159, allocations: 4.469 kB / 1.032 GB, free: 54.44 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01466/2.174, allocations: 3.522 MB / 1.035 GB, free: 54.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.632e-05/2.174, allocations: 10.78 kB / 1.035 GB, free: 54.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001244/2.175, allocations: 339.5 kB / 1.036 GB, free: 54.35 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00167/2.177, allocations: 352.7 kB / 1.036 GB, free: 54.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003583/2.181, allocations: 2.957 MB / 1.039 GB, free: 52.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/2.182, allocations: 96.52 kB / 1.039 GB, free: 52.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002869/2.183, allocations: 79.5 kB / 1.039 GB, free: 52.29 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 () * 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.0005666/2.183, allocations: 163.3 kB / 1.039 GB, free: 52.17 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005996/2.189, allocations: 2.031 MB / 1.041 GB, free: 52.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003864/2.19, allocations: 151.3 kB / 1.041 GB, free: 52.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005687/2.195, allocations: 2.319 MB / 1.044 GB, free: 51.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/2.195, allocations: 18.25 kB / 1.044 GB, free: 51.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/2.195, allocations: 0 / 1.044 GB, free: 51.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-05/2.195, allocations: 14.3 kB / 1.044 GB, free: 51.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008019/2.204, allocations: 3.888 MB / 1.048 GB, free: 51.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/2.204, allocations: 6.094 kB / 1.048 GB, free: 51.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00095/2.205, allocations: 245.6 kB / 1.048 GB, free: 51.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001162/2.206, allocations: 448.6 kB / 1.048 GB, free: 51.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.114e-05/2.206, allocations: 25.09 kB / 1.048 GB, free: 51.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00304/2.209, allocations: 3.063 MB / 1.051 GB, free: 49.46 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/2.209, allocations: 6.156 kB / 1.051 GB, free: 49.46 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005561/2.214, allocations: 3.222 MB / 1.054 GB, free: 49.01 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004482/2.215, allocations: 249.5 kB / 1.055 GB, free: 48.83 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002203/2.215, allocations: 7.438 kB / 1.055 GB, free: 48.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009966/2.216, allocations: 82.12 kB / 1.055 GB, free: 48.83 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/2.216, allocations: 151.5 kB / 1.055 GB, free: 48.83 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/2.216, allocations: 69.78 kB / 1.055 GB, free: 48.83 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008516/2.217, allocations: 0.7123 MB / 1.056 GB, free: 48.71 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/2.217, allocations: 0 / 1.056 GB, free: 48.71 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003531/2.221, allocations: 1.274 MB / 1.057 GB, free: 48.71 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]) * 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.007824/2.229, allocations: 5.281 MB / 1.062 GB, free: 47.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005008/2.234, allocations: 2.875 MB / 1.065 GB, free: 47.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/2.234, allocations: 2.938 kB / 1.065 GB, free: 47.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001493/2.235, allocations: 1.026 MB / 1.066 GB, free: 47.25 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00324/2.239, allocations: 0.625 MB / 1.066 GB, free: 47.23 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00669/2.245, allocations: 3.346 MB / 1.07 GB, free: 46.56 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008111/2.246, allocations: 1.436 MB / 1.071 GB, free: 45.84 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002542/2.249, allocations: 0.7363 MB / 1.072 GB, free: 45.81 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008019/2.249, allocations: 0.6332 MB / 1.072 GB, free: 45.8 MB / 426.7 MB Notification: Performance of SimCode: time 1.122e-06/2.249, allocations: 0 / 1.072 GB, free: 45.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09663/2.346, allocations: 58.62 MB / 1.13 GB, free: 38.61 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/2.346, allocations: 190.2 kB / 1.13 GB, free: 38.42 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.008/6.355, allocations: 4.031 kB / 1.13 GB, free: 38.41 MB / 426.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