Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",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.002212/0.002212, allocations: 181.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.263/2.263, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001065/0.001065, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.404e-05/3.421e-05, allocations: 7.984 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09451/0.09456, allocations: 47.58 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9715/1.066, allocations: 323.8 MB / 0.6767 GB, free: 456 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/1.067, allocations: 95.05 kB / 0.6768 GB, free: 408 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.383/2.449, allocations: 192.2 MB / 0.8646 GB, free: 75.97 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.685e-06/2.449, allocations: 0 / 0.8646 GB, free: 75.97 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002/2.45, allocations: 25.2 kB / 0.8646 GB, free: 75.97 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.007018/2.457, allocations: 1.298 MB / 0.8658 GB, free: 75.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.5e-05/2.457, allocations: 9.406 kB / 0.8659 GB, free: 75.59 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007537/2.458, allocations: 113.5 kB / 0.866 GB, free: 75.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001163/2.459, allocations: 112.8 kB / 0.8661 GB, free: 75.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004107/2.463, allocations: 0.7356 MB / 0.8668 GB, free: 75.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/2.463, allocations: 53.47 kB / 0.8668 GB, free: 75.25 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003474/2.463, allocations: 63.11 kB / 0.8669 GB, free: 75.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004503/2.468, allocations: 1.039 MB / 0.8679 GB, free: 75.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.053e-05/2.468, allocations: 8.094 kB / 0.8679 GB, free: 75.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002531/2.468, allocations: 28.44 kB / 0.868 GB, free: 75.06 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002725/2.469, allocations: 64.16 kB / 0.868 GB, free: 75.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003136/2.472, allocations: 0.994 MB / 0.869 GB, free: 75.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01129/2.483, allocations: 4.397 MB / 0.8733 GB, free: 72.92 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/2.485, allocations: 0.5603 MB / 0.8738 GB, free: 72.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008186/2.486, allocations: 312.4 kB / 0.8741 GB, free: 72.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003985/2.49, allocations: 2.081 MB / 0.8762 GB, free: 71.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/2.49, allocations: 43.39 kB / 0.8762 GB, free: 71.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 2.846e-06/2.49, allocations: 2.844 kB / 0.8762 GB, free: 71.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.005009/2.495, allocations: 1.502 MB / 0.8777 GB, free: 71.17 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.882e-05/2.495, allocations: 163.2 kB / 0.8778 GB, free: 70.98 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/2.497, allocations: 0.8137 MB / 0.8786 GB, free: 70.82 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002391/2.497, allocations: 36.33 kB / 0.8786 GB, free: 70.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000378/2.497, allocations: 492.3 kB / 0.8791 GB, free: 70.54 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002236/2.498, allocations: 158.7 kB / 0.8793 GB, free: 70.46 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.957e-05/2.498, allocations: 16.81 kB / 0.8793 GB, free: 70.46 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.865e-05/2.498, allocations: 348.1 kB / 0.8796 GB, free: 70.15 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008451/2.499, allocations: 303.5 kB / 0.8799 GB, free: 70.15 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001051/2.5, allocations: 0.5861 MB / 0.8805 GB, free: 69.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/2.501, allocations: 394.5 kB / 0.8809 GB, free: 69.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/2.501, allocations: 2.656 kB / 0.8809 GB, free: 69.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003149/2.504, allocations: 1.012 MB / 0.8818 GB, free: 69.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007257/2.505, allocations: 3.317 MB / 0.8851 GB, free: 66.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.429e-05/2.505, allocations: 7.438 kB / 0.8851 GB, free: 66.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003414/2.508, allocations: 315 kB / 0.8854 GB, free: 66.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/2.51, allocations: 175.7 kB / 0.8856 GB, free: 66.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/2.511, allocations: 1.35 MB / 0.8869 GB, free: 65.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/2.513, allocations: 59.8 kB / 0.8869 GB, free: 65.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001498/2.513, allocations: 41.31 kB / 0.887 GB, free: 65.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/2.513, allocations: 7.188 kB / 0.887 GB, free: 65.23 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00262/2.516, allocations: 0.9417 MB / 0.8879 GB, free: 65.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/2.516, allocations: 11.62 kB / 0.8879 GB, free: 65.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002887/2.519, allocations: 284.7 kB / 0.8882 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/2.52, allocations: 177.9 kB / 0.8884 GB, free: 65.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001278/2.521, allocations: 1.296 MB / 0.8896 GB, free: 64.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001017/2.522, allocations: 58.3 kB / 0.8897 GB, free: 64.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/2.522, allocations: 45.2 kB / 0.8897 GB, free: 64.15 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003889/2.523, allocations: 161.5 kB / 0.8899 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003509/2.523, allocations: 92.78 kB / 0.89 GB, free: 63.99 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002979/2.526, allocations: 0.7718 MB / 0.8907 GB, free: 63.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/2.526, allocations: 6.25 kB / 0.8907 GB, free: 63.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/2.526, allocations: 0 / 0.8907 GB, free: 63.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/2.526, allocations: 2.625 kB / 0.8907 GB, free: 63.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004797/2.531, allocations: 1.59 MB / 0.8923 GB, free: 63.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/2.531, allocations: 4.922 kB / 0.8923 GB, free: 63.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007215/2.532, allocations: 73.59 kB / 0.8924 GB, free: 63.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002344/2.534, allocations: 282.6 kB / 0.8926 GB, free: 63.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.065e-05/2.534, allocations: 17.62 kB / 0.8926 GB, free: 63.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001171/2.535, allocations: 1.303 MB / 0.8939 GB, free: 62.5 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/2.535, allocations: 3.969 kB / 0.8939 GB, free: 62.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/2.538, allocations: 1.09 MB / 0.895 GB, free: 62.24 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004152/2.538, allocations: 192.5 kB / 0.8952 GB, free: 62.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002101/2.539, allocations: 15.14 kB / 0.8952 GB, free: 62.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/2.54, allocations: 48.39 kB / 0.8952 GB, free: 62.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/2.54, allocations: 48.75 kB / 0.8953 GB, free: 62.09 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-05/2.54, allocations: 24.92 kB / 0.8953 GB, free: 62.09 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001175/2.541, allocations: 0.6358 MB / 0.8959 GB, free: 61.98 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.541, allocations: 0 / 0.8959 GB, free: 61.98 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003079/2.544, allocations: 0.8331 MB / 0.8967 GB, free: 61.97 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00496/2.549, allocations: 2.495 MB / 0.8992 GB, free: 60.91 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003496/2.553, allocations: 1.203 MB / 0.9003 GB, free: 60.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/2.553, allocations: 0 / 0.9003 GB, free: 60.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/2.554, allocations: 355.7 kB / 0.9007 GB, free: 60.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002961/2.557, allocations: 373.4 kB / 0.901 GB, free: 60.88 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004697/2.562, allocations: 1.724 MB / 0.9027 GB, free: 60.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000573/2.562, allocations: 1.053 MB / 0.9037 GB, free: 59.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006681/2.563, allocations: 334.9 kB / 0.9041 GB, free: 59.63 MB / 426.7 MB Notification: Performance of SimCode: time 2.014e-06/2.563, allocations: 0 / 0.9041 GB, free: 59.63 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.45/6.013, allocations: 30.46 MB / 0.9338 GB, free: 58.46 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat