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.001164/0.001164, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.0009992/0.0009991, allocations: 96.86 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.236e-05/3.239e-05, allocations: 3.984 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1132, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7809/0.8941, allocations: 327.3 MB / 0.7047 GB, free: 6.242 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002163/0.8944, allocations: 91.31 kB / 0.7048 GB, free: 6.195 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.127/2.022, allocations: 331.1 MB / 1.028 GB, free: 23.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 9.51e-07/2.022, allocations: 0 / 1.028 GB, free: 23.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001317/2.022, allocations: 44.86 kB / 1.028 GB, free: 23.93 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.006094/2.028, allocations: 2.051 MB / 1.03 GB, free: 21.84 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/2.028, allocations: 8.031 kB / 1.03 GB, free: 21.83 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000434/2.028, allocations: 193.9 kB / 1.03 GB, free: 21.63 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007116/2.029, allocations: 197.8 kB / 1.031 GB, free: 21.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002285/2.031, allocations: 1.188 MB / 1.032 GB, free: 20.19 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-05/2.031, allocations: 102.2 kB / 1.032 GB, free: 20.09 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001883/2.032, allocations: 120 kB / 1.032 GB, free: 19.97 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002575/2.034, allocations: 1.932 MB / 1.034 GB, free: 17.93 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.77e-05/2.034, allocations: 0 / 1.034 GB, free: 17.93 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001503/2.034, allocations: 51.98 kB / 1.034 GB, free: 17.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001148/2.035, allocations: 114.2 kB / 1.034 GB, free: 17.77 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002472/2.037, allocations: 1.93 MB / 1.036 GB, free: 15.83 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009863/2.047, allocations: 7.675 MB / 1.043 GB, free: 7.738 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/2.048, allocations: 1.153 MB / 1.045 GB, free: 6.582 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008215/2.049, allocations: 0.7383 MB / 1.045 GB, free: 5.84 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004134/2.053, allocations: 3.474 MB / 1.049 GB, free: 2.098 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/2.053, allocations: 51.52 kB / 1.049 GB, free: 2.039 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 3.145e-06/2.053, allocations: 0 / 1.049 GB, free: 2.039 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.2491/2.303, allocations: 4.114 MB / 1.053 GB, free: 49.01 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.757e-05/2.303, allocations: 169.8 kB / 1.053 GB, free: 48.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001918/2.305, allocations: 1.241 MB / 1.054 GB, free: 48.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001836/2.305, allocations: 60.42 kB / 1.054 GB, free: 48.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004559/2.305, allocations: 0.7013 MB / 1.055 GB, free: 48.39 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00037/2.306, allocations: 472.6 kB / 1.055 GB, free: 48.17 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001178/2.306, allocations: 34.56 kB / 1.055 GB, free: 48.17 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/2.306, allocations: 376.1 kB / 1.056 GB, free: 47.86 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/2.307, allocations: 0.7328 MB / 1.056 GB, free: 47.86 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/2.308, allocations: 1.143 MB / 1.058 GB, free: 47.43 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/2.309, allocations: 0.8553 MB / 1.058 GB, free: 47.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/2.309, allocations: 4.938 kB / 1.058 GB, free: 47.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003835/2.313, allocations: 2.357 MB / 1.061 GB, free: 47.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006882/2.314, allocations: 4.347 MB / 1.065 GB, free: 42.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/2.314, allocations: 10.72 kB / 1.065 GB, free: 42.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005302/2.319, allocations: 0.9399 MB / 1.066 GB, free: 42.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001892/2.321, allocations: 343.2 kB / 1.066 GB, free: 42.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002495/2.324, allocations: 2.888 MB / 1.069 GB, free: 40.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002134/2.326, allocations: 135.6 kB / 1.069 GB, free: 40.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002557/2.326, allocations: 83.36 kB / 1.069 GB, free: 40.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/2.326, allocations: 3.781 kB / 1.069 GB, free: 40.64 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004084/2.33, allocations: 2.066 MB / 1.071 GB, free: 40.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.315e-05/2.33, allocations: 12.38 kB / 1.071 GB, free: 40.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004518/2.335, allocations: 0.6865 MB / 1.072 GB, free: 40.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001704/2.337, allocations: 357.7 kB / 1.072 GB, free: 40.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/2.338, allocations: 2.637 MB / 1.075 GB, free: 38.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00185/2.34, allocations: 135.2 kB / 1.075 GB, free: 38.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001852/2.34, allocations: 78.17 kB / 1.075 GB, free: 38.45 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.0005305/2.341, allocations: 219.6 kB / 1.075 GB, free: 38.34 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003218/2.341, allocations: 171 kB / 1.075 GB, free: 38.25 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004709/2.346, allocations: 2.33 MB / 1.078 GB, free: 38.09 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.219e-05/2.346, allocations: 17.59 kB / 1.078 GB, free: 38.09 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/2.346, allocations: 1.219 kB / 1.078 GB, free: 38.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/2.346, allocations: 7.828 kB / 1.078 GB, free: 38.09 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006786/2.353, allocations: 3.991 MB / 1.082 GB, free: 37.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/2.353, allocations: 1.219 kB / 1.082 GB, free: 37.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001017/2.354, allocations: 237.8 kB / 1.082 GB, free: 37.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003674/2.358, allocations: 0.8722 MB / 1.083 GB, free: 37.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001647/2.358, allocations: 41.89 kB / 1.083 GB, free: 37.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001843/2.36, allocations: 2.844 MB / 1.085 GB, free: 35.53 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/2.36, allocations: 8.25 kB / 1.085 GB, free: 35.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004189/2.364, allocations: 3.202 MB / 1.089 GB, free: 35.03 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006004/2.365, allocations: 284.7 kB / 1.089 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002407/2.365, allocations: 37.64 kB / 1.089 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/2.366, allocations: 105.1 kB / 1.089 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002629/2.366, allocations: 148.2 kB / 1.089 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001209/2.366, allocations: 65.25 kB / 1.089 GB, free: 34.84 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001154/2.367, allocations: 0.9563 MB / 1.09 GB, free: 34.72 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/2.367, allocations: 0 / 1.09 GB, free: 34.72 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003423/2.371, allocations: 1.385 MB / 1.092 GB, free: 34.72 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.006715/2.378, allocations: 5.282 MB / 1.097 GB, free: 33.31 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005741/2.383, allocations: 3.024 MB / 1.1 GB, free: 33.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.278e-05/2.383, allocations: 3.688 kB / 1.1 GB, free: 33.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001938/2.385, allocations: 1.057 MB / 1.101 GB, free: 33.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003953/2.389, allocations: 0.7347 MB / 1.101 GB, free: 33.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00788/2.397, allocations: 3.534 MB / 1.105 GB, free: 32.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/2.398, allocations: 1.438 MB / 1.106 GB, free: 31.84 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003366/2.402, allocations: 0.8334 MB / 1.107 GB, free: 31.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009368/2.403, allocations: 0.6374 MB / 1.108 GB, free: 31.82 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/2.403, allocations: 0 / 1.108 GB, free: 31.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09787/2.501, allocations: 67.32 MB / 1.173 GB, free: 18.93 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/2.501, allocations: 253.5 kB / 1.174 GB, free: 18.61 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.337/6.838, allocations: 4.062 kB / 1.174 GB, free: 18.61 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