Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",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.0009969/0.000997, 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.381/1.381, 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.0009401/0.00094, allocations: 101.8 kB / 286.5 MB, free: 220 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.145e-05/3.148e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.118, allocations: 50.41 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8695/0.9875, allocations: 324.7 MB / 0.7022 GB, free: 6.828 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.9878, allocations: 89.75 kB / 0.7023 GB, free: 6.781 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.088/2.076, allocations: 287.4 MB / 0.9829 GB, free: 66.72 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.873e-06/2.076, allocations: 3.938 kB / 0.9829 GB, free: 66.71 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001147/2.076, allocations: 45.08 kB / 0.983 GB, free: 66.7 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003824/2.08, allocations: 1.783 MB / 0.9847 GB, free: 65.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/2.08, allocations: 7.906 kB / 0.9847 GB, free: 65.45 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001859/2.08, allocations: 162.4 kB / 0.9849 GB, free: 65.29 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004887/2.081, allocations: 170.2 kB / 0.9851 GB, free: 65.12 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001876/2.083, allocations: 1.037 MB / 0.9861 GB, free: 64.07 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.392e-05/2.083, allocations: 75.08 kB / 0.9861 GB, free: 64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/2.083, allocations: 102.2 kB / 0.9862 GB, free: 63.9 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002176/2.085, allocations: 1.612 MB / 0.9878 GB, free: 62.23 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/2.085, allocations: 4 kB / 0.9878 GB, free: 62.23 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/2.085, allocations: 39.59 kB / 0.9879 GB, free: 62.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/2.086, allocations: 101.9 kB / 0.988 GB, free: 62.09 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002083/2.088, allocations: 1.591 MB / 0.9895 GB, free: 60.5 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00794/2.096, allocations: 6.525 MB / 0.9959 GB, free: 53.71 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/2.097, allocations: 0.9067 MB / 0.9968 GB, free: 52.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006281/2.097, allocations: 0.5522 MB / 0.9973 GB, free: 52.26 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00312/2.101, allocations: 2.909 MB / 1 GB, free: 49.13 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/2.101, allocations: 53.73 kB / 1 GB, free: 49.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 2.144e-06/2.101, allocations: 0 / 1 GB, free: 49.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.005018/2.106, allocations: 2.81 MB / 1.003 GB, free: 46.22 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/2.106, allocations: 196.6 kB / 1.003 GB, free: 45.98 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001267/2.107, allocations: 1.133 MB / 1.004 GB, free: 44.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.42e-05/2.107, allocations: 53.69 kB / 1.004 GB, free: 44.78 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/2.107, allocations: 0.647 MB / 1.005 GB, free: 44.13 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001753/2.108, allocations: 314.7 kB / 1.005 GB, free: 43.83 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.906e-05/2.108, allocations: 32 kB / 1.005 GB, free: 43.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.087e-05/2.108, allocations: 353.9 kB / 1.006 GB, free: 43.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006963/2.108, allocations: 0.5467 MB / 1.006 GB, free: 42.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008351/2.109, allocations: 0.9469 MB / 1.007 GB, free: 41.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008315/2.11, allocations: 0.6616 MB / 1.008 GB, free: 41.15 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/2.11, allocations: 4 kB / 1.008 GB, free: 41.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002366/2.113, allocations: 1.812 MB / 1.009 GB, free: 39.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000664/2.113, allocations: 4.389 MB / 1.014 GB, free: 34.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/2.113, allocations: 12 kB / 1.014 GB, free: 34.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00354/2.117, allocations: 0.6546 MB / 1.014 GB, free: 34.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001098/2.118, allocations: 283.5 kB / 1.015 GB, free: 33.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/2.119, allocations: 2.159 MB / 1.017 GB, free: 31.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/2.121, allocations: 103.6 kB / 1.017 GB, free: 31.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/2.121, allocations: 63.98 kB / 1.017 GB, free: 31.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/2.121, allocations: 5.562 kB / 1.017 GB, free: 31.34 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002195/2.123, allocations: 1.603 MB / 1.019 GB, free: 29.73 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/2.123, allocations: 8.781 kB / 1.019 GB, free: 29.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002842/2.126, allocations: 0.5059 MB / 1.019 GB, free: 29.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009253/2.127, allocations: 283.5 kB / 1.019 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/2.128, allocations: 2.008 MB / 1.021 GB, free: 26.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/2.129, allocations: 108 kB / 1.021 GB, free: 26.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/2.129, allocations: 63.98 kB / 1.021 GB, free: 26.68 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003166/2.13, allocations: 196.5 kB / 1.022 GB, free: 26.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/2.13, allocations: 142.3 kB / 1.022 GB, free: 26.34 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002619/2.133, allocations: 1.504 MB / 1.023 GB, free: 24.83 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/2.133, allocations: 12 kB / 1.023 GB, free: 24.82 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/2.133, allocations: 3.953 kB / 1.023 GB, free: 24.81 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/2.133, allocations: 3.984 kB / 1.023 GB, free: 24.81 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003805/2.136, allocations: 2.8 MB / 1.026 GB, free: 21.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/2.136, allocations: 4 kB / 1.026 GB, free: 21.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006416/2.137, allocations: 159.7 kB / 1.026 GB, free: 21.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002657/2.14, allocations: 0.6034 MB / 1.027 GB, free: 21.18 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-05/2.14, allocations: 23.98 kB / 1.027 GB, free: 21.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/2.141, allocations: 2.112 MB / 1.029 GB, free: 18.97 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/2.141, allocations: 8.016 kB / 1.029 GB, free: 18.96 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002702/2.144, allocations: 2.105 MB / 1.031 GB, free: 16.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004846/2.144, allocations: 255.1 kB / 1.031 GB, free: 16.52 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/2.145, allocations: 24 kB / 1.031 GB, free: 16.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008783/2.146, allocations: 79.94 kB / 1.031 GB, free: 16.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/2.146, allocations: 96.8 kB / 1.031 GB, free: 16.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.209e-05/2.146, allocations: 43.97 kB / 1.031 GB, free: 16.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001067/2.147, allocations: 0.8753 MB / 1.032 GB, free: 15.39 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/2.147, allocations: 3.938 kB / 1.032 GB, free: 15.39 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003218/2.15, allocations: 1.221 MB / 1.033 GB, free: 14.17 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004844/2.155, allocations: 3.95 MB / 1.037 GB, free: 10.29 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003342/2.158, allocations: 2.193 MB / 1.039 GB, free: 8.098 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/2.158, allocations: 7.859 kB / 1.039 GB, free: 8.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/2.159, allocations: 0.6925 MB / 1.04 GB, free: 7.402 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002584/2.162, allocations: 0.5728 MB / 1.041 GB, free: 6.844 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004838/2.167, allocations: 2.742 MB / 1.043 GB, free: 4.066 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000529/2.167, allocations: 1.293 MB / 1.045 GB, free: 2.746 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001967/2.169, allocations: 0.6573 MB / 1.045 GB, free: 2.117 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005705/2.17, allocations: 0.5148 MB / 1.046 GB, free: 1.602 MB / 442.7 MB Notification: Performance of SimCode: time 8.12e-07/2.17, allocations: 0 / 1.046 GB, free: 1.602 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3535/2.524, allocations: 54.54 MB / 1.099 GB, free: 62.87 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001576/2.524, allocations: 241.8 kB / 1.099 GB, free: 62.55 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.834/6.358, allocations: 0 / 1.099 GB, free: 62.55 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat