Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001069/0.00107, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009881/0.0009881, allocations: 84.48 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.661e-05/1.657e-05, allocations: 0 / 337.1 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 50.41 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8379/0.9499, allocations: 326.6 MB / 0.6975 GB, free: 2.012 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.9502, allocations: 96.72 kB / 0.6976 GB, free: 1.965 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.176/2.126, allocations: 329.3 MB / 1.019 GB, free: 42.14 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.453e-06/2.126, allocations: 0 / 1.019 GB, free: 42.14 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001184/2.127, allocations: 46.78 kB / 1.019 GB, free: 42.1 MB / 442.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.004674/2.131, allocations: 2.042 MB / 1.021 GB, free: 40.03 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/2.131, allocations: 12.03 kB / 1.021 GB, free: 40.02 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00058/2.132, allocations: 201.8 kB / 1.021 GB, free: 39.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00204/2.134, allocations: 1.182 MB / 1.022 GB, free: 38.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.31e-05/2.134, allocations: 44 kB / 1.023 GB, free: 38.56 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001629/2.134, allocations: 72 kB / 1.023 GB, free: 38.49 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002355/2.137, allocations: 1.746 MB / 1.024 GB, free: 36.74 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002323/2.139, allocations: 1.759 MB / 1.026 GB, free: 34.88 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.285e-05/2.139, allocations: 3.438 kB / 1.026 GB, free: 34.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001409/2.139, allocations: 15.55 kB / 1.026 GB, free: 34.86 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001189/2.139, allocations: 110.3 kB / 1.026 GB, free: 34.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00961/2.149, allocations: 7.404 MB / 1.033 GB, free: 27.03 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/2.15, allocations: 1.117 MB / 1.034 GB, free: 25.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007864/2.151, allocations: 0.7091 MB / 1.035 GB, free: 25.19 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004088/2.155, allocations: 3.367 MB / 1.038 GB, free: 21.59 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/2.155, allocations: 55.8 kB / 1.038 GB, free: 21.53 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 3.206e-06/2.155, allocations: 0 / 1.038 GB, free: 21.53 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.01461/2.17, allocations: 4.679 MB / 1.043 GB, free: 16.8 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.377e-05/2.17, allocations: 167.5 kB / 1.043 GB, free: 16.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/2.172, allocations: 0.9445 MB / 1.044 GB, free: 15.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002025/2.172, allocations: 33.7 kB / 1.044 GB, free: 15.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005792/2.172, allocations: 0.7203 MB / 1.045 GB, free: 14.89 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004048/2.173, allocations: 453.4 kB / 1.045 GB, free: 14.44 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/2.173, allocations: 0 / 1.045 GB, free: 14.44 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/2.173, allocations: 373.9 kB / 1.046 GB, free: 14.07 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009895/2.174, allocations: 0.7184 MB / 1.046 GB, free: 13.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/2.175, allocations: 1.111 MB / 1.047 GB, free: 12.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004914/2.18, allocations: 1.555 MB / 1.049 GB, free: 10.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.454e-05/2.18, allocations: 0 / 1.049 GB, free: 10.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.007785/2.188, allocations: 2.932 MB / 1.052 GB, free: 7.566 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009623/2.189, allocations: 4.285 MB / 1.056 GB, free: 2.957 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/2.189, allocations: 12 kB / 1.056 GB, free: 2.945 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/2.19, allocations: 455 kB / 1.056 GB, free: 2.488 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/2.192, allocations: 339.5 kB / 1.057 GB, free: 2.156 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2674/2.459, allocations: 3.29 MB / 1.06 GB, free: 54.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002148/2.461, allocations: 98.94 kB / 1.06 GB, free: 54.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002451/2.462, allocations: 80.22 kB / 1.06 GB, free: 54.71 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/2.462, allocations: 4.031 kB / 1.06 GB, free: 54.71 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00732/2.469, allocations: 2.563 MB / 1.063 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.616e-05/2.469, allocations: 10.97 kB / 1.063 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/2.47, allocations: 336.5 kB / 1.063 GB, free: 54.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/2.472, allocations: 361.8 kB / 1.063 GB, free: 54.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003386/2.475, allocations: 2.953 MB / 1.066 GB, free: 52.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001657/2.477, allocations: 96.41 kB / 1.066 GB, free: 52.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001953/2.477, allocations: 79.36 kB / 1.066 GB, free: 52.56 MB / 442.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.000531/2.477, allocations: 166.2 kB / 1.067 GB, free: 52.45 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005849/2.483, allocations: 2.025 MB / 1.069 GB, free: 52.37 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003554/2.484, allocations: 152.2 kB / 1.069 GB, free: 52.37 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00602/2.49, allocations: 2.333 MB / 1.071 GB, free: 52.23 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.543e-05/2.49, allocations: 19.69 kB / 1.071 GB, free: 52.23 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/2.49, allocations: 0.9375 kB / 1.071 GB, free: 52.23 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/2.49, allocations: 6.094 kB / 1.071 GB, free: 52.23 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/2.502, allocations: 3.892 MB / 1.075 GB, free: 51.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/2.502, allocations: 1.812 kB / 1.075 GB, free: 51.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/2.503, allocations: 240.3 kB / 1.075 GB, free: 51.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001694/2.505, allocations: 449.8 kB / 1.075 GB, free: 51.81 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002392/2.505, allocations: 26.83 kB / 1.075 GB, free: 51.81 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004423/2.509, allocations: 3.057 MB / 1.078 GB, free: 49.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.216e-06/2.51, allocations: 3.031 kB / 1.078 GB, free: 49.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00837/2.518, allocations: 3.224 MB / 1.082 GB, free: 49.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009753/2.519, allocations: 252.9 kB / 1.082 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006304/2.52, allocations: 14.97 kB / 1.082 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/2.521, allocations: 82.55 kB / 1.082 GB, free: 49.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003408/2.522, allocations: 144.5 kB / 1.082 GB, free: 49.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002017/2.522, allocations: 63.45 kB / 1.082 GB, free: 49.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001371/2.523, allocations: 0.7095 MB / 1.083 GB, free: 48.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.11e-07/2.523, allocations: 3.562 kB / 1.083 GB, free: 48.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006914/2.53, allocations: 1.281 MB / 1.084 GB, free: 48.99 MB / 442.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.01067/2.541, allocations: 5.28 MB / 1.089 GB, free: 47.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006253/2.547, allocations: 2.883 MB / 1.092 GB, free: 47.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/2.547, allocations: 3.438 kB / 1.092 GB, free: 47.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002107/2.549, allocations: 1.023 MB / 1.093 GB, free: 47.53 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003815/2.553, allocations: 0.6186 MB / 1.094 GB, free: 47.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009976/2.563, allocations: 3.337 MB / 1.097 GB, free: 46.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001191/2.564, allocations: 1.442 MB / 1.098 GB, free: 46.12 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003405/2.568, allocations: 0.7415 MB / 1.099 GB, free: 46.11 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009458/2.569, allocations: 0.6297 MB / 1.1 GB, free: 46.1 MB / 442.7 MB Notification: Performance of SimCode: time 7.61e-07/2.569, allocations: 0 / 1.1 GB, free: 46.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1031/2.672, allocations: 58.63 MB / 1.157 GB, free: 41.43 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001977/2.672, allocations: 196.6 kB / 1.157 GB, free: 41.23 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.163/6.835, allocations: 2.297 kB / 1.157 GB, free: 41.23 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat