Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",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.001112/0.001116, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.439/1.439, allocations: 223.2 MB / 240.3 MB, free: 10.17 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.001256/0.001256, allocations: 95.09 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003123/0.0003125, allocations: 8 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3355, allocations: 50.41 MB / 401.6 MB, free: 32.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9459/1.281, allocations: 328.8 MB / 0.7132 GB, free: 155.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002423/1.282, allocations: 97.69 kB / 0.7133 GB, free: 155.1 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6223/1.904, allocations: 170.5 MB / 0.8798 GB, free: 102 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.904, allocations: 0 / 0.8798 GB, free: 102 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001229/1.904, allocations: 22.55 kB / 0.8799 GB, free: 102 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.00417/1.908, allocations: 1.206 MB / 0.881 GB, free: 101.4 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/1.909, allocations: 9.219 kB / 0.8811 GB, free: 101.4 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004055/1.909, allocations: 100.4 kB / 0.8812 GB, free: 101.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007088/1.91, allocations: 107 kB / 0.8813 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001862/1.912, allocations: 0.6306 MB / 0.8819 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.662e-05/1.912, allocations: 46.14 kB / 0.8819 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/1.912, allocations: 59.98 kB / 0.882 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/1.913, allocations: 0.8888 MB / 0.8828 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/1.913, allocations: 0 / 0.8828 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.402e-05/1.913, allocations: 26.81 kB / 0.8829 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.658e-05/1.913, allocations: 42.28 kB / 0.8829 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/1.914, allocations: 0.7939 MB / 0.8837 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004523/1.919, allocations: 3.784 MB / 0.8874 GB, free: 98.9 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000748/1.92, allocations: 0.5255 MB / 0.8879 GB, free: 98.88 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001952/1.921, allocations: 1.844 MB / 0.8897 GB, free: 97.64 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.558e-05/1.922, allocations: 45.22 kB / 0.8897 GB, free: 97.6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 1.994e-06/1.922, allocations: 0 / 0.8897 GB, free: 97.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.00329/1.925, allocations: 1.758 MB / 0.8914 GB, free: 97 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.978e-05/1.925, allocations: 132.1 kB / 0.8916 GB, free: 96.85 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007662/1.926, allocations: 0.6694 MB / 0.8922 GB, free: 96.72 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.268e-05/1.926, allocations: 40.55 kB / 0.8923 GB, free: 96.69 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002515/1.926, allocations: 398.2 kB / 0.8926 GB, free: 96.53 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/1.926, allocations: 158 kB / 0.8928 GB, free: 96.45 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.778e-05/1.926, allocations: 15.38 kB / 0.8928 GB, free: 96.45 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001032/1.926, allocations: 387.1 kB / 0.8932 GB, free: 96.14 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/1.927, allocations: 259.2 kB / 0.8934 GB, free: 96.14 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004735/1.927, allocations: 0.4919 MB / 0.8939 GB, free: 95.86 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/1.928, allocations: 320.8 kB / 0.8942 GB, free: 95.86 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.094e-06/1.928, allocations: 7.641 kB / 0.8942 GB, free: 95.85 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001332/1.929, allocations: 0.8855 MB / 0.8951 GB, free: 95.75 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006106/1.93, allocations: 2.696 MB / 0.8977 GB, free: 92.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/1.93, allocations: 11.44 kB / 0.8977 GB, free: 92.95 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/1.931, allocations: 170.8 kB / 0.8979 GB, free: 92.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001019/1.932, allocations: 187.5 kB / 0.8981 GB, free: 92.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001005/1.933, allocations: 1.814 MB / 0.8998 GB, free: 91.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006986/1.933, allocations: 57.47 kB / 0.8999 GB, free: 91.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.915e-05/1.933, allocations: 39.08 kB / 0.8999 GB, free: 91.29 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/1.933, allocations: 9.094 kB / 0.8999 GB, free: 91.29 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001166/1.935, allocations: 0.7823 MB / 0.9007 GB, free: 91.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/1.935, allocations: 3.969 kB / 0.9007 GB, free: 91.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008379/1.936, allocations: 172.6 kB / 0.9009 GB, free: 91.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006813/1.936, allocations: 171.8 kB / 0.901 GB, free: 91.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000613/1.937, allocations: 1.185 MB / 0.9022 GB, free: 90.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006702/1.938, allocations: 52.31 kB / 0.9022 GB, free: 90.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.607e-05/1.938, allocations: 36.84 kB / 0.9023 GB, free: 90.21 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0005286/1.938, allocations: 332.1 kB / 0.9026 GB, free: 90.02 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/1.938, allocations: 81.72 kB / 0.9027 GB, free: 89.98 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/1.94, allocations: 0.8193 MB / 0.9035 GB, free: 89.89 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/1.94, allocations: 9.938 kB / 0.9035 GB, free: 89.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/1.94, allocations: 0 / 0.9035 GB, free: 89.89 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/1.94, allocations: 6.828 kB / 0.9035 GB, free: 89.89 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002316/1.942, allocations: 1.566 MB / 0.905 GB, free: 89.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/1.942, allocations: 0 / 0.905 GB, free: 89.53 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006196/1.943, allocations: 142.8 kB / 0.9052 GB, free: 89.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005573/1.943, allocations: 126.8 kB / 0.9053 GB, free: 89.51 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.108e-05/1.943, allocations: 15.09 kB / 0.9053 GB, free: 89.51 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007279/1.944, allocations: 1.749 MB / 0.907 GB, free: 87.89 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/1.944, allocations: 0 / 0.907 GB, free: 87.89 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/1.945, allocations: 1.128 MB / 0.9081 GB, free: 87.61 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002276/1.946, allocations: 175.3 kB / 0.9083 GB, free: 87.46 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/1.946, allocations: 10.88 kB / 0.9083 GB, free: 87.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005087/1.946, allocations: 46.36 kB / 0.9083 GB, free: 87.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/1.946, allocations: 56.98 kB / 0.9084 GB, free: 87.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.368e-05/1.947, allocations: 29.22 kB / 0.9084 GB, free: 87.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005609/1.947, allocations: 0.5193 MB / 0.9089 GB, free: 87.37 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.947, allocations: 3.531 kB / 0.9089 GB, free: 87.37 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002043/1.949, allocations: 0.6535 MB / 0.9096 GB, free: 87.27 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003044/1.952, allocations: 2.459 MB / 0.912 GB, free: 86.15 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002516/1.955, allocations: 1.162 MB / 0.9131 GB, free: 86.13 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.955, allocations: 0 / 0.9131 GB, free: 86.13 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000728/1.955, allocations: 386.8 kB / 0.9135 GB, free: 86.13 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001634/1.957, allocations: 359.9 kB / 0.9138 GB, free: 86.12 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004256/1.961, allocations: 7.213 MB / 0.9208 GB, free: 80.26 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/1.962, allocations: 1.005 MB / 0.9218 GB, free: 79.55 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001054/1.963, allocations: 322.8 kB / 0.9221 GB, free: 79.54 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/1.963, allocations: 295.6 kB / 0.9224 GB, free: 79.53 MB / 458.7 MB Notification: Performance of SimCode: time 1.082e-06/1.963, allocations: 0 / 0.9224 GB, free: 79.53 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04757/2.011, allocations: 29.14 MB / 0.9509 GB, free: 78.29 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002153/2.011, allocations: 271.5 kB / 0.9511 GB, free: 77.93 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.007/5.018, allocations: 3.516 kB / 0.9511 GB, free: 77.93 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat