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.00172/0.00172, allocations: 180.3 kB / 16.38 MB, free: 5.742 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.488/1.488, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009413/0.0009413, allocations: 93.22 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002746/0.0002748, allocations: 8 kB / 351.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2666, allocations: 50.4 MB / 401.6 MB, free: 32.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7967/1.063, allocations: 327.4 MB / 0.7119 GB, free: 120.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/1.064, allocations: 96.64 kB / 0.712 GB, free: 120.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.229/2.292, allocations: 332.2 MB / 1.036 GB, free: 56.39 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.814e-06/2.292, allocations: 0 / 1.036 GB, free: 56.39 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001424/2.293, allocations: 51.09 kB / 1.036 GB, free: 56.39 MB / 458.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.005836/2.298, allocations: 2.244 MB / 1.039 GB, free: 55.55 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/2.298, allocations: 7.781 kB / 1.039 GB, free: 55.55 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003882/2.299, allocations: 193.5 kB / 1.039 GB, free: 55.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005748/2.299, allocations: 204.1 kB / 1.039 GB, free: 55.41 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002229/2.302, allocations: 1.196 MB / 1.04 GB, free: 55.11 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-05/2.302, allocations: 99.56 kB / 1.04 GB, free: 55.11 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001811/2.302, allocations: 125.3 kB / 1.04 GB, free: 55.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002762/2.305, allocations: 1.95 MB / 1.042 GB, free: 54.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.88e-05/2.305, allocations: 3.281 kB / 1.042 GB, free: 54.82 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001476/2.305, allocations: 53.7 kB / 1.042 GB, free: 54.82 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000116/2.305, allocations: 117.7 kB / 1.042 GB, free: 54.81 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002581/2.308, allocations: 1.959 MB / 1.044 GB, free: 54.8 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01071/2.318, allocations: 7.669 MB / 1.052 GB, free: 51.44 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001865/2.32, allocations: 1.178 MB / 1.053 GB, free: 51.4 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0054/2.326, allocations: 3.423 MB / 1.056 GB, free: 49.85 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/2.326, allocations: 51.91 kB / 1.056 GB, free: 49.81 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 2.434e-06/2.326, allocations: 1.812 kB / 1.056 GB, free: 49.81 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.01273/2.338, allocations: 5.42 MB / 1.062 GB, free: 48.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/2.339, allocations: 178.5 kB / 1.062 GB, free: 48.57 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002042/2.341, allocations: 1.247 MB / 1.063 GB, free: 48.41 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001674/2.341, allocations: 67.48 kB / 1.063 GB, free: 48.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000592/2.341, allocations: 0.7072 MB / 1.064 GB, free: 48.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004258/2.342, allocations: 462.6 kB / 1.064 GB, free: 47.81 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.746e-05/2.342, allocations: 38.72 kB / 1.064 GB, free: 47.81 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/2.342, allocations: 375.5 kB / 1.065 GB, free: 47.51 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/2.343, allocations: 0.7456 MB / 1.065 GB, free: 47.51 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001322/2.345, allocations: 1.16 MB / 1.067 GB, free: 47.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001197/2.346, allocations: 0.8753 MB / 1.067 GB, free: 47.05 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.333e-06/2.346, allocations: 6.531 kB / 1.067 GB, free: 47.05 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003591/2.349, allocations: 2.384 MB / 1.07 GB, free: 46.85 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001104/2.351, allocations: 4.343 MB / 1.074 GB, free: 42.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.081e-05/2.351, allocations: 11.5 kB / 1.074 GB, free: 42.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00524/2.356, allocations: 0.9622 MB / 1.075 GB, free: 42.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/2.357, allocations: 346.4 kB / 1.075 GB, free: 42.38 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/2.359, allocations: 2.897 MB / 1.078 GB, free: 40.29 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/2.361, allocations: 131.4 kB / 1.078 GB, free: 40.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000174/2.361, allocations: 84.31 kB / 1.078 GB, free: 40.28 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/2.361, allocations: 3.719 kB / 1.078 GB, free: 40.28 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003105/2.365, allocations: 2.108 MB / 1.08 GB, free: 40.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/2.365, allocations: 11.16 kB / 1.08 GB, free: 40.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004025/2.369, allocations: 0.6791 MB / 1.081 GB, free: 40.17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/2.37, allocations: 356.2 kB / 1.081 GB, free: 40.17 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/2.372, allocations: 2.648 MB / 1.084 GB, free: 38.09 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001638/2.373, allocations: 131.4 kB / 1.084 GB, free: 38.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/2.373, allocations: 81.97 kB / 1.084 GB, free: 38.09 MB / 458.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.00102/2.374, allocations: 0.522 MB / 1.085 GB, free: 37.88 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002869/2.375, allocations: 166.7 kB / 1.085 GB, free: 37.8 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00408/2.379, allocations: 2.352 MB / 1.087 GB, free: 37.63 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.61e-05/2.379, allocations: 18.84 kB / 1.087 GB, free: 37.63 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/2.379, allocations: 0 / 1.087 GB, free: 37.63 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.758e-05/2.379, allocations: 17.73 kB / 1.087 GB, free: 37.62 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005895/2.385, allocations: 4.018 MB / 1.091 GB, free: 37.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/2.385, allocations: 0 / 1.091 GB, free: 37.17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009913/2.386, allocations: 244.4 kB / 1.091 GB, free: 37.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003733/2.39, allocations: 0.8808 MB / 1.092 GB, free: 37.14 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/2.39, allocations: 44.44 kB / 1.092 GB, free: 37.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/2.392, allocations: 2.852 MB / 1.095 GB, free: 35.04 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/2.392, allocations: 2.531 kB / 1.095 GB, free: 35.04 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00465/2.396, allocations: 3.255 MB / 1.098 GB, free: 34.54 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007053/2.397, allocations: 272.9 kB / 1.098 GB, free: 34.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002435/2.397, allocations: 38.94 kB / 1.098 GB, free: 34.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/2.398, allocations: 109.6 kB / 1.099 GB, free: 34.35 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000282/2.399, allocations: 149.6 kB / 1.099 GB, free: 34.34 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001304/2.399, allocations: 60.25 kB / 1.099 GB, free: 34.34 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001471/2.4, allocations: 0.9809 MB / 1.1 GB, free: 34.23 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/2.4, allocations: 1.906 kB / 1.1 GB, free: 34.23 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004456/2.405, allocations: 1.384 MB / 1.101 GB, free: 34.02 MB / 458.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.007186/2.412, allocations: 5.325 MB / 1.106 GB, free: 32.39 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004871/2.417, allocations: 3.022 MB / 1.109 GB, free: 32.34 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/2.417, allocations: 0 / 1.109 GB, free: 32.34 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001608/2.419, allocations: 1.071 MB / 1.11 GB, free: 32.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00311/2.422, allocations: 0.7343 MB / 1.111 GB, free: 32.32 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/2.433, allocations: 12.92 MB / 1.124 GB, free: 38.39 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001048/2.434, allocations: 1.433 MB / 1.125 GB, free: 37.67 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002805/2.437, allocations: 0.7234 MB / 1.126 GB, free: 37.65 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00103/2.438, allocations: 0.6568 MB / 1.126 GB, free: 37.64 MB / 474.7 MB Notification: Performance of SimCode: time 1.833e-06/2.438, allocations: 0 / 1.126 GB, free: 37.64 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.106/2.544, allocations: 64.17 MB / 1.189 GB, free: 19.05 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002444/2.544, allocations: 268.8 kB / 1.189 GB, free: 18.69 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.805/7.35, allocations: 3.234 kB / 1.189 GB, free: 18.69 MB / 474.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