Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001692/0.001692, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.784/1.784, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008859/0.0008857, allocations: 90.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.336e-05/2.338e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09946/0.0995, allocations: 47.59 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8478/0.9474, allocations: 323.4 MB / 0.6705 GB, free: 6.16 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.9477, allocations: 91.67 kB / 0.6706 GB, free: 6.113 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6089/1.557, allocations: 191 MB / 0.857 GB, free: 11.68 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.334e-06/1.557, allocations: 3.984 kB / 0.8571 GB, free: 11.68 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.643e-05/1.557, allocations: 24 kB / 0.8571 GB, free: 11.66 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.002792/1.56, allocations: 1.305 MB / 0.8584 GB, free: 10.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/1.56, allocations: 12.03 kB / 0.8584 GB, free: 10.29 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003741/1.56, allocations: 114.8 kB / 0.8585 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/1.561, allocations: 0.7259 MB / 0.8592 GB, free: 9.406 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.654e-05/1.561, allocations: 28 kB / 0.8592 GB, free: 9.379 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.304e-05/1.561, allocations: 32 kB / 0.8592 GB, free: 9.348 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001211/1.563, allocations: 0.9005 MB / 0.8601 GB, free: 8.445 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001207/1.564, allocations: 0.9498 MB / 0.861 GB, free: 7.441 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/1.564, allocations: 11.94 kB / 0.8611 GB, free: 7.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.934e-05/1.564, allocations: 3.953 kB / 0.8611 GB, free: 7.426 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-05/1.564, allocations: 61.28 kB / 0.8611 GB, free: 7.363 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005105/1.569, allocations: 4.236 MB / 0.8653 GB, free: 2.887 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006655/1.57, allocations: 0.5358 MB / 0.8658 GB, free: 2.344 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003439/1.57, allocations: 302 kB / 0.8661 GB, free: 2.047 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2718/1.842, allocations: 2.032 MB / 0.8681 GB, free: 79.97 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.799e-05/1.842, allocations: 39.05 kB / 0.8681 GB, free: 79.93 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 4.228e-06/1.842, allocations: 1.656 kB / 0.8681 GB, free: 79.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.009322/1.851, allocations: 1.743 MB / 0.8698 GB, free: 79.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/1.852, allocations: 159.5 kB / 0.8699 GB, free: 79.4 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001708/1.853, allocations: 0.6316 MB / 0.8706 GB, free: 79.28 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001197/1.853, allocations: 29.05 kB / 0.8706 GB, free: 79.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000548/1.854, allocations: 494.4 kB / 0.8711 GB, free: 79.04 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002339/1.854, allocations: 153.8 kB / 0.8712 GB, free: 78.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.986e-05/1.854, allocations: 0 / 0.8712 GB, free: 78.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001884/1.855, allocations: 389 kB / 0.8716 GB, free: 78.65 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008673/1.855, allocations: 295.8 kB / 0.8719 GB, free: 78.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/1.857, allocations: 0.572 MB / 0.8724 GB, free: 78.31 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/1.868, allocations: 1.366 MB / 0.8738 GB, free: 78.31 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.971e-05/1.868, allocations: 2.344 kB / 0.8738 GB, free: 78.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.01436/1.883, allocations: 1.982 MB / 0.8757 GB, free: 78.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001065/1.884, allocations: 3.313 MB / 0.8789 GB, free: 74.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.925e-05/1.884, allocations: 13.58 kB / 0.8789 GB, free: 74.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009287/1.885, allocations: 165 kB / 0.8791 GB, free: 74.76 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/1.886, allocations: 174.4 kB / 0.8793 GB, free: 74.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002983/1.889, allocations: 1.5 MB / 0.8807 GB, free: 73.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/1.89, allocations: 49.73 kB / 0.8808 GB, free: 73.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002021/1.891, allocations: 44.47 kB / 0.8808 GB, free: 73.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/1.891, allocations: 4.375 kB / 0.8808 GB, free: 73.71 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01059/1.901, allocations: 1.795 MB / 0.8826 GB, free: 73.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/1.901, allocations: 10.66 kB / 0.8826 GB, free: 73.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008359/1.902, allocations: 163.6 kB / 0.8827 GB, free: 73.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009811/1.903, allocations: 175.3 kB / 0.8829 GB, free: 73.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002268/1.906, allocations: 1.406 MB / 0.8843 GB, free: 72.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001232/1.907, allocations: 44.42 kB / 0.8843 GB, free: 72.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/1.907, allocations: 42.42 kB / 0.8844 GB, free: 72.62 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.000367/1.907, allocations: 135.1 kB / 0.8845 GB, free: 72.52 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003375/1.911, allocations: 0.7034 MB / 0.8852 GB, free: 72.42 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002456/1.911, allocations: 84 kB / 0.8853 GB, free: 72.38 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003238/1.914, allocations: 0.7953 MB / 0.886 GB, free: 72.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-05/1.914, allocations: 5.656 kB / 0.886 GB, free: 72.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/1.914, allocations: 1.203 kB / 0.886 GB, free: 72.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/1.914, allocations: 4.734 kB / 0.886 GB, free: 72.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003693/1.918, allocations: 1.544 MB / 0.8876 GB, free: 71.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/1.918, allocations: 1.25 kB / 0.8876 GB, free: 71.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004106/1.918, allocations: 74.8 kB / 0.8876 GB, free: 71.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005635/1.919, allocations: 158 kB / 0.8878 GB, free: 71.96 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.75e-05/1.919, allocations: 11.05 kB / 0.8878 GB, free: 71.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001211/1.92, allocations: 1.396 MB / 0.8892 GB, free: 70.92 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.92, allocations: 0 / 0.8892 GB, free: 70.92 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/1.922, allocations: 1.11 MB / 0.8902 GB, free: 70.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/1.922, allocations: 176.2 kB / 0.8904 GB, free: 70.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/1.922, allocations: 11.02 kB / 0.8904 GB, free: 70.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005172/1.923, allocations: 33.36 kB / 0.8904 GB, free: 70.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/1.923, allocations: 45.47 kB / 0.8905 GB, free: 70.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.265e-05/1.923, allocations: 25.27 kB / 0.8905 GB, free: 70.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005333/1.924, allocations: 493.5 kB / 0.891 GB, free: 70.43 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.924, allocations: 0 / 0.891 GB, free: 70.43 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00258/1.926, allocations: 0.7821 MB / 0.8917 GB, free: 70.43 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.004188/1.93, allocations: 2.505 MB / 0.8942 GB, free: 69.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002184/1.933, allocations: 1.148 MB / 0.8953 GB, free: 69.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/1.933, allocations: 0 / 0.8953 GB, free: 69.49 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000452/1.933, allocations: 300.3 kB / 0.8956 GB, free: 69.49 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/1.934, allocations: 297.2 kB / 0.8959 GB, free: 69.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003041/1.938, allocations: 1.597 MB / 0.8974 GB, free: 69.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/1.938, allocations: 1.062 MB / 0.8985 GB, free: 68.43 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001162/1.939, allocations: 367.1 kB / 0.8988 GB, free: 68.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003759/1.94, allocations: 316 kB / 0.8991 GB, free: 68.4 MB / 426.7 MB Notification: Performance of SimCode: time 6.31e-07/1.94, allocations: 0 / 0.8991 GB, free: 68.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05395/1.994, allocations: 29.71 MB / 0.9281 GB, free: 67.12 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/1.994, allocations: 186.8 kB / 0.9283 GB, free: 66.94 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.823/4.817, allocations: 0 / 0.9283 GB, free: 66.94 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_3.2.3_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_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat