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.001237/0.001237, allocations: 172.3 kB / 14.1 MB, free: 1.223 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.505/1.505, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.00112/0.00112, allocations: 90.62 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.793e-05/2.795e-05, allocations: 0 / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09267/0.09272, allocations: 47.58 MB / 370.1 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.723/0.8158, allocations: 326.7 MB / 0.6805 GB, free: 13.87 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.816, allocations: 93.75 kB / 0.6806 GB, free: 13.82 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.102/1.918, allocations: 325.1 MB / 0.9981 GB, free: 28.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.903e-06/1.918, allocations: 0 / 0.9981 GB, free: 28.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000232/1.918, allocations: 40.22 kB / 0.9981 GB, free: 28.8 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.006838/1.925, allocations: 2.054 MB / 1 GB, free: 26.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/1.925, allocations: 8.031 kB / 1 GB, free: 26.69 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007998/1.926, allocations: 185.9 kB / 1 GB, free: 26.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001289/1.927, allocations: 201.8 kB / 1 GB, free: 26.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0034/1.931, allocations: 1.184 MB / 1.002 GB, free: 25.06 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000119/1.931, allocations: 102.2 kB / 1.002 GB, free: 24.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005224/1.931, allocations: 124 kB / 1.002 GB, free: 24.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003902/1.935, allocations: 1.92 MB / 1.004 GB, free: 22.81 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.487e-05/1.935, allocations: 4 kB / 1.004 GB, free: 22.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003085/1.935, allocations: 59.97 kB / 1.004 GB, free: 22.75 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000145/1.936, allocations: 118.2 kB / 1.004 GB, free: 22.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003203/1.939, allocations: 1.922 MB / 1.006 GB, free: 20.7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/1.95, allocations: 7.67 MB / 1.013 GB, free: 12.62 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001556/1.952, allocations: 1.151 MB / 1.014 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009211/1.952, allocations: 0.7433 MB / 1.015 GB, free: 10.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004817/1.957, allocations: 3.473 MB / 1.019 GB, free: 6.969 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.351e-05/1.957, allocations: 47.56 kB / 1.019 GB, free: 6.914 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 3.958e-06/1.957, allocations: 0 / 1.019 GB, free: 6.914 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.009429/1.967, allocations: 4.124 MB / 1.023 GB, free: 2.738 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.333e-05/1.967, allocations: 171.5 kB / 1.023 GB, free: 2.535 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/1.97, allocations: 1.239 MB / 1.024 GB, free: 1.289 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002126/1.97, allocations: 57.7 kB / 1.024 GB, free: 1.227 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005037/1.97, allocations: 0.6997 MB / 1.025 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003697/1.971, allocations: 473.3 kB / 1.025 GB, free: 52 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/1.971, allocations: 36 kB / 1.025 GB, free: 16 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.2498/2.221, allocations: 369.2 kB / 1.026 GB, free: 50.16 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001728/2.222, allocations: 0.7354 MB / 1.026 GB, free: 50.16 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001438/2.224, allocations: 1.143 MB / 1.027 GB, free: 49.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/2.225, allocations: 0.86 MB / 1.028 GB, free: 49.71 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/2.225, allocations: 6 kB / 1.028 GB, free: 49.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.004188/2.23, allocations: 2.359 MB / 1.031 GB, free: 49.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007383/2.23, allocations: 4.337 MB / 1.035 GB, free: 45.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.308e-05/2.23, allocations: 11.25 kB / 1.035 GB, free: 45.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00565/2.236, allocations: 0.9387 MB / 1.036 GB, free: 45.12 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/2.238, allocations: 344.7 kB / 1.036 GB, free: 45.12 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002341/2.24, allocations: 2.9 MB / 1.039 GB, free: 43.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002306/2.242, allocations: 138.2 kB / 1.039 GB, free: 43.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002573/2.243, allocations: 76.48 kB / 1.039 GB, free: 43.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/2.243, allocations: 3.594 kB / 1.039 GB, free: 43.05 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00415/2.247, allocations: 2.067 MB / 1.041 GB, free: 42.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.537e-05/2.247, allocations: 12.59 kB / 1.041 GB, free: 42.97 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00462/2.252, allocations: 0.6755 MB / 1.042 GB, free: 42.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/2.253, allocations: 360.2 kB / 1.042 GB, free: 42.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00197/2.255, allocations: 2.65 MB / 1.045 GB, free: 40.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001967/2.257, allocations: 132.2 kB / 1.045 GB, free: 40.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002249/2.258, allocations: 78.45 kB / 1.045 GB, free: 40.87 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.0006133/2.258, allocations: 208.4 kB / 1.045 GB, free: 40.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003825/2.259, allocations: 182.2 kB / 1.045 GB, free: 40.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004775/2.263, allocations: 2.323 MB / 1.048 GB, free: 40.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.488e-05/2.263, allocations: 18.88 kB / 1.048 GB, free: 40.62 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/2.263, allocations: 1 kB / 1.048 GB, free: 40.62 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/2.263, allocations: 6.891 kB / 1.048 GB, free: 40.62 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006856/2.27, allocations: 3.991 MB / 1.051 GB, free: 40.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/2.27, allocations: 3.938 kB / 1.051 GB, free: 40.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000958/2.271, allocations: 244.6 kB / 1.052 GB, free: 40.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003907/2.275, allocations: 0.8709 MB / 1.053 GB, free: 40.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001644/2.275, allocations: 41.73 kB / 1.053 GB, free: 40.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001941/2.277, allocations: 2.843 MB / 1.055 GB, free: 38.06 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/2.277, allocations: 0.7031 kB / 1.055 GB, free: 38.06 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004338/2.282, allocations: 3.204 MB / 1.058 GB, free: 37.56 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006846/2.282, allocations: 274.1 kB / 1.059 GB, free: 37.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002428/2.283, allocations: 40.67 kB / 1.059 GB, free: 37.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/2.284, allocations: 111 kB / 1.059 GB, free: 37.37 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/2.284, allocations: 154.4 kB / 1.059 GB, free: 37.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/2.284, allocations: 60.97 kB / 1.059 GB, free: 37.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001263/2.285, allocations: 0.9539 MB / 1.06 GB, free: 37.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/2.285, allocations: 0 / 1.06 GB, free: 37.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003905/2.289, allocations: 1.387 MB / 1.061 GB, free: 37.25 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.00725/2.297, allocations: 5.28 MB / 1.067 GB, free: 35.83 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005142/2.302, allocations: 3.018 MB / 1.069 GB, free: 35.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/2.302, allocations: 0 / 1.069 GB, free: 35.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001703/2.304, allocations: 1.06 MB / 1.071 GB, free: 35.76 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004082/2.308, allocations: 0.7368 MB / 1.071 GB, free: 35.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008098/2.316, allocations: 3.542 MB / 1.075 GB, free: 35.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009939/2.317, allocations: 1.44 MB / 1.076 GB, free: 34.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003001/2.32, allocations: 0.8194 MB / 1.077 GB, free: 34.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008195/2.321, allocations: 0.6381 MB / 1.078 GB, free: 34.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.653e-06/2.321, allocations: 0 / 1.078 GB, free: 34.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09567/2.416, allocations: 67.33 MB / 1.143 GB, free: 19.2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/2.417, allocations: 236.1 kB / 1.143 GB, free: 18.89 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.281/6.697, allocations: 0 / 1.143 GB, free: 18.89 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