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.001505/0.001505, 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.404/1.404, allocations: 223.2 MB / 240.3 MB, free: 11.92 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.0009068/0.0009068, allocations: 92.83 kB / 291.5 MB, free: 10.96 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002539/0.0002537, allocations: 11.94 kB / 351.2 MB, free: 15.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2572, allocations: 50.4 MB / 401.6 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7736/1.031, allocations: 324.8 MB / 0.7094 GB, free: 121.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002493/1.031, allocations: 94.08 kB / 0.7095 GB, free: 121.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8405/1.872, allocations: 288.3 MB / 0.991 GB, free: 43.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.564e-06/1.872, allocations: 0 / 0.991 GB, free: 43.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001201/1.872, allocations: 43.06 kB / 0.991 GB, free: 43.67 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005614/1.877, allocations: 1.961 MB / 0.9929 GB, free: 41.68 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/1.878, allocations: 8.031 kB / 0.9929 GB, free: 41.67 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000488/1.878, allocations: 163.5 kB / 0.9931 GB, free: 41.51 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005755/1.879, allocations: 170.2 kB / 0.9933 GB, free: 41.34 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/1.881, allocations: 1.038 MB / 0.9943 GB, free: 40.29 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.059e-05/1.881, allocations: 79.38 kB / 0.9944 GB, free: 40.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001678/1.881, allocations: 94.64 kB / 0.9944 GB, free: 40.13 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002389/1.883, allocations: 1.631 MB / 0.996 GB, free: 38.43 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.783e-05/1.884, allocations: 7.984 kB / 0.996 GB, free: 38.42 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001348/1.884, allocations: 45.39 kB / 0.9961 GB, free: 38.38 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000118/1.884, allocations: 93.94 kB / 0.9962 GB, free: 38.29 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002224/1.886, allocations: 1.62 MB / 0.9978 GB, free: 36.67 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008548/1.895, allocations: 6.53 MB / 1.004 GB, free: 29.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/1.896, allocations: 0.9211 MB / 1.005 GB, free: 28.92 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003493/1.899, allocations: 2.838 MB / 1.008 GB, free: 25.86 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/1.899, allocations: 47.22 kB / 1.008 GB, free: 25.8 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 2.495e-06/1.899, allocations: 0 / 1.008 GB, free: 25.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.007705/1.907, allocations: 3.713 MB / 1.011 GB, free: 21.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.536e-05/1.907, allocations: 188.9 kB / 1.012 GB, free: 21.75 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001429/1.909, allocations: 1.147 MB / 1.013 GB, free: 20.59 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001192/1.909, allocations: 49.64 kB / 1.013 GB, free: 20.54 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003843/1.909, allocations: 0.6531 MB / 1.013 GB, free: 19.88 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/1.909, allocations: 321.3 kB / 1.014 GB, free: 19.57 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.267e-05/1.909, allocations: 27.94 kB / 1.014 GB, free: 19.54 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.896e-05/1.91, allocations: 365.9 kB / 1.014 GB, free: 19.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007865/1.91, allocations: 0.5544 MB / 1.015 GB, free: 18.63 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009168/1.911, allocations: 0.959 MB / 1.016 GB, free: 17.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008725/1.912, allocations: 0.6627 MB / 1.016 GB, free: 16.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/1.912, allocations: 8 kB / 1.016 GB, free: 16.83 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002686/1.915, allocations: 1.838 MB / 1.018 GB, free: 14.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007756/1.916, allocations: 4.392 MB / 1.022 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/1.916, allocations: 8 kB / 1.022 GB, free: 10.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00365/1.919, allocations: 0.6618 MB / 1.023 GB, free: 9.594 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/1.921, allocations: 283.5 kB / 1.023 GB, free: 9.316 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/1.922, allocations: 2.16 MB / 1.025 GB, free: 7.078 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001609/1.924, allocations: 100 kB / 1.025 GB, free: 6.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001659/1.924, allocations: 71.97 kB / 1.026 GB, free: 6.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/1.924, allocations: 7.938 kB / 1.026 GB, free: 6.902 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002416/1.926, allocations: 1.627 MB / 1.027 GB, free: 5.266 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/1.926, allocations: 12.06 kB / 1.027 GB, free: 5.254 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002924/1.929, allocations: 0.5063 MB / 1.028 GB, free: 4.738 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/1.931, allocations: 287.5 kB / 1.028 GB, free: 4.457 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/1.932, allocations: 2.016 MB / 1.03 GB, free: 2.363 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/1.933, allocations: 99.91 kB / 1.03 GB, free: 2.266 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/1.933, allocations: 63.98 kB / 1.03 GB, free: 2.203 MB / 458.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 () * Number of clocked 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.0008206/1.934, allocations: 476.7 kB / 1.031 GB, free: 1.727 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/1.934, allocations: 138.3 kB / 1.031 GB, free: 1.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002606/1.937, allocations: 1.515 MB / 1.032 GB, free: 60 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/1.937, allocations: 8 kB / 1.032 GB, free: 52 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/1.937, allocations: 8.062 kB / 1.032 GB, free: 44 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/1.937, allocations: 11.92 kB / 1.032 GB, free: 32 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2919/2.229, allocations: 2.811 MB / 1.035 GB, free: 72.68 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/2.229, allocations: 0.5938 kB / 1.035 GB, free: 72.68 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006447/2.23, allocations: 154.2 kB / 1.035 GB, free: 72.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002617/2.232, allocations: 0.6084 MB / 1.036 GB, free: 72.66 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/2.232, allocations: 33.42 kB / 1.036 GB, free: 72.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001434/2.234, allocations: 2.118 MB / 1.038 GB, free: 71.11 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/2.234, allocations: 7.5 kB / 1.038 GB, free: 71.11 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003309/2.237, allocations: 2.143 MB / 1.04 GB, free: 70.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007942/2.238, allocations: 248.5 kB / 1.04 GB, free: 70.73 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002437/2.238, allocations: 24.31 kB / 1.04 GB, free: 70.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001022/2.239, allocations: 75.09 kB / 1.04 GB, free: 70.73 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/2.239, allocations: 101.4 kB / 1.04 GB, free: 70.72 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.185e-05/2.24, allocations: 43.31 kB / 1.04 GB, free: 70.72 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001369/2.241, allocations: 0.8937 MB / 1.041 GB, free: 70.61 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.2e-07/2.241, allocations: 0 / 1.041 GB, free: 70.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00433/2.245, allocations: 1.218 MB / 1.042 GB, free: 70.61 MB / 458.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]) * Number of clocked states: 0 () * 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.006396/2.252, allocations: 3.972 MB / 1.046 GB, free: 69.48 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003991/2.256, allocations: 2.184 MB / 1.048 GB, free: 69.46 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/2.256, allocations: 0 / 1.048 GB, free: 69.46 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/2.257, allocations: 0.7042 MB / 1.049 GB, free: 69.45 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002931/2.26, allocations: 0.5796 MB / 1.05 GB, free: 69.45 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008946/2.269, allocations: 11.98 MB / 1.061 GB, free: 60.03 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007437/2.27, allocations: 1.282 MB / 1.063 GB, free: 59.31 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002072/2.272, allocations: 0.5586 MB / 1.063 GB, free: 59.29 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006861/2.273, allocations: 0.5285 MB / 1.064 GB, free: 59.29 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/2.273, allocations: 0 / 1.064 GB, free: 59.29 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08104/2.354, allocations: 52 MB / 1.114 GB, free: 56.98 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/2.354, allocations: 264.8 kB / 1.115 GB, free: 56.63 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.918/6.272, allocations: 0 / 1.115 GB, free: 56.63 MB / 458.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