Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001549/0.001549, allocations: 177 kB / 8.699 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.732/1.732, allocations: 205.3 MB / 214.4 MB, free: 1.73 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.0008928/0.0008927, allocations: 78.25 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.057e-05/2.061e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 47.58 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8079/0.9102, allocations: 323.7 MB / 0.6708 GB, free: 6.375 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002359/0.9105, allocations: 87.11 kB / 0.6709 GB, free: 6.332 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.009/1.92, allocations: 280.4 MB / 0.9447 GB, free: 73.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.633e-06/1.92, allocations: 3.938 kB / 0.9447 GB, free: 73.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001323/1.92, allocations: 38.38 kB / 0.9447 GB, free: 73.72 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005211/1.925, allocations: 1.786 MB / 0.9464 GB, free: 72.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/1.925, allocations: 11.69 kB / 0.9465 GB, free: 72.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000643/1.926, allocations: 168.8 kB / 0.9466 GB, free: 72.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001927/1.928, allocations: 1.032 MB / 0.9476 GB, free: 72.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.669e-05/1.928, allocations: 37.72 kB / 0.9477 GB, free: 72.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/1.928, allocations: 60.81 kB / 0.9477 GB, free: 72.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001968/1.93, allocations: 1.432 MB / 0.9491 GB, free: 71.89 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/1.932, allocations: 1.473 MB / 0.9506 GB, free: 71.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.944e-05/1.932, allocations: 6.312 kB / 0.9506 GB, free: 71.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001248/1.932, allocations: 3.844 kB / 0.9506 GB, free: 71.23 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001252/1.933, allocations: 102.3 kB / 0.9507 GB, free: 71.21 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008612/1.941, allocations: 6.306 MB / 0.9568 GB, free: 67.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/1.942, allocations: 0.875 MB / 0.9577 GB, free: 66.72 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005864/1.943, allocations: 0.5251 MB / 0.9582 GB, free: 66.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00321/1.946, allocations: 2.836 MB / 0.961 GB, free: 64.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/1.946, allocations: 50.14 kB / 0.961 GB, free: 64.51 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 2.565e-06/1.946, allocations: 0 / 0.961 GB, free: 64.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.008548/1.955, allocations: 3.124 MB / 0.9641 GB, free: 63.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.573e-05/1.955, allocations: 196 kB / 0.9642 GB, free: 63.08 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/1.956, allocations: 0.8703 MB / 0.9651 GB, free: 62.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.641e-05/1.956, allocations: 33.52 kB / 0.9651 GB, free: 62.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003809/1.956, allocations: 0.6564 MB / 0.9658 GB, free: 62.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002076/1.956, allocations: 314.8 kB / 0.9661 GB, free: 61.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.174e-05/1.957, allocations: 0 / 0.9661 GB, free: 61.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.35e-05/1.957, allocations: 362.4 kB / 0.9664 GB, free: 61.57 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00066/1.957, allocations: 0.5254 MB / 0.9669 GB, free: 61.36 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008625/1.958, allocations: 0.919 MB / 0.9678 GB, free: 60.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008729/1.967, allocations: 2.166 MB / 0.9699 GB, free: 60.28 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.1e-05/1.967, allocations: 6.25 kB / 0.9699 GB, free: 60.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.01126/1.978, allocations: 3.219 MB / 0.9731 GB, free: 57.77 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001131/1.979, allocations: 4.359 MB / 0.9773 GB, free: 53.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/1.979, allocations: 12 kB / 0.9774 GB, free: 53.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009981/1.98, allocations: 333.8 kB / 0.9777 GB, free: 52.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/1.981, allocations: 275.5 kB / 0.9779 GB, free: 52.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003174/1.985, allocations: 2.456 MB / 0.9803 GB, free: 49.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/1.986, allocations: 71.77 kB / 0.9804 GB, free: 49.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/1.986, allocations: 63.98 kB / 0.9805 GB, free: 49.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.448e-06/1.986, allocations: 7.953 kB / 0.9805 GB, free: 49.83 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009649/1.996, allocations: 2.927 MB / 0.9833 GB, free: 46.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/1.996, allocations: 10.34 kB / 0.9833 GB, free: 46.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007813/1.997, allocations: 266.1 kB / 0.9836 GB, free: 46.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009238/1.998, allocations: 283.5 kB / 0.9839 GB, free: 46.39 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002246/2, allocations: 2.218 MB / 0.986 GB, free: 44.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/2.001, allocations: 71.59 kB / 0.9861 GB, free: 44.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/2.001, allocations: 63.97 kB / 0.9862 GB, free: 43.97 MB / 426.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.0003475/2.001, allocations: 157.5 kB / 0.9863 GB, free: 43.82 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003439/2.005, allocations: 1.36 MB / 0.9876 GB, free: 42.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/2.005, allocations: 122.5 kB / 0.9878 GB, free: 42.32 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003428/2.009, allocations: 1.513 MB / 0.9892 GB, free: 40.81 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/2.009, allocations: 12 kB / 0.9892 GB, free: 40.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/2.009, allocations: 5.625 kB / 0.9892 GB, free: 40.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/2.009, allocations: 7.969 kB / 0.9893 GB, free: 40.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004907/2.014, allocations: 2.723 MB / 0.9919 GB, free: 38.03 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/2.014, allocations: 4 kB / 0.9919 GB, free: 38.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006431/2.014, allocations: 151.8 kB / 0.9921 GB, free: 37.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009231/2.015, allocations: 326.4 kB / 0.9924 GB, free: 37.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.014e-05/2.015, allocations: 19.44 kB / 0.9924 GB, free: 37.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/2.018, allocations: 2.275 MB / 0.9946 GB, free: 35.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/2.018, allocations: 7.781 kB / 0.9946 GB, free: 35.2 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003403/2.021, allocations: 2.131 MB / 0.9967 GB, free: 33.01 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004508/2.021, allocations: 227.4 kB / 0.9969 GB, free: 32.77 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002966/2.022, allocations: 4 kB / 0.9969 GB, free: 32.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/2.023, allocations: 55.94 kB / 0.997 GB, free: 32.71 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/2.023, allocations: 97.12 kB / 0.9971 GB, free: 32.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/2.023, allocations: 43.97 kB / 0.9971 GB, free: 32.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009595/2.024, allocations: 0.6608 MB / 0.9978 GB, free: 31.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/2.024, allocations: 0 / 0.9978 GB, free: 31.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00434/2.028, allocations: 1.136 MB / 0.9989 GB, free: 30.77 MB / 426.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.006114/2.035, allocations: 3.954 MB / 1.003 GB, free: 26.85 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003329/2.038, allocations: 2.094 MB / 1.005 GB, free: 24.76 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/2.038, allocations: 4 kB / 1.005 GB, free: 24.76 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000946/2.039, allocations: 0.6493 MB / 1.005 GB, free: 24.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002215/2.041, allocations: 479.5 kB / 1.006 GB, free: 23.66 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004908/2.046, allocations: 2.596 MB / 1.008 GB, free: 21.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006265/2.047, allocations: 1.292 MB / 1.01 GB, free: 19.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001913/2.049, allocations: 0.5844 MB / 1.01 GB, free: 19.13 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005504/2.049, allocations: 0.4915 MB / 1.011 GB, free: 18.64 MB / 426.7 MB Notification: Performance of SimCode: time 4.01e-07/2.049, allocations: 0 / 1.011 GB, free: 18.64 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3149/2.364, allocations: 46.83 MB / 1.056 GB, free: 66.57 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001368/2.364, allocations: 194.8 kB / 1.057 GB, free: 66.37 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.494/5.858, allocations: 3.938 kB / 1.057 GB, free: 66.37 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat