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.001055/0.001055, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.512/1.512, allocations: 205.2 MB / 219.8 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.0007653/0.0007652, allocations: 78.78 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.148e-05, allocations: 3.938 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09731/0.09735, allocations: 47.58 MB / 370.1 MB, free: 1.609 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7451/0.8425, allocations: 323.8 MB / 0.6776 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.8428, allocations: 93.44 kB / 0.6777 GB, free: 0.7695 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8524/1.695, allocations: 192.2 MB / 0.8655 GB, free: 75.98 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.695, allocations: 0.5156 kB / 0.8655 GB, free: 75.98 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001329/1.695, allocations: 29.02 kB / 0.8655 GB, free: 75.98 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.003474/1.699, allocations: 1.296 MB / 0.8668 GB, free: 75.6 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/1.699, allocations: 9.438 kB / 0.8668 GB, free: 75.6 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002105/1.699, allocations: 109.8 kB / 0.8669 GB, free: 75.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004691/1.7, allocations: 118.2 kB / 0.867 GB, free: 75.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/1.701, allocations: 0.7311 MB / 0.8677 GB, free: 75.26 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/1.701, allocations: 52.08 kB / 0.8678 GB, free: 75.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/1.701, allocations: 60.33 kB / 0.8678 GB, free: 75.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/1.703, allocations: 1.044 MB / 0.8688 GB, free: 75.07 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/1.703, allocations: 3.938 kB / 0.8688 GB, free: 75.07 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.065e-05/1.703, allocations: 29.61 kB / 0.8689 GB, free: 75.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.599e-05/1.703, allocations: 65.08 kB / 0.8689 GB, free: 75.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/1.705, allocations: 0.9937 MB / 0.8699 GB, free: 75.06 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006182/1.711, allocations: 4.398 MB / 0.8742 GB, free: 72.93 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009242/1.712, allocations: 0.567 MB / 0.8747 GB, free: 72.9 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004434/1.713, allocations: 317.3 kB / 0.8751 GB, free: 72.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002199/1.715, allocations: 2.073 MB / 0.8771 GB, free: 71.65 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/1.715, allocations: 37.67 kB / 0.8771 GB, free: 71.61 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 2.094e-06/1.715, allocations: 1.781 kB / 0.8771 GB, free: 71.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.002749/1.718, allocations: 1.506 MB / 0.8786 GB, free: 71.18 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.715e-05/1.718, allocations: 158 kB / 0.8787 GB, free: 70.99 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009311/1.719, allocations: 0.8134 MB / 0.8795 GB, free: 70.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.375e-05/1.719, allocations: 38.23 kB / 0.8796 GB, free: 70.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003323/1.719, allocations: 480 kB / 0.88 GB, free: 70.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/1.719, allocations: 161.5 kB / 0.8802 GB, free: 70.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/1.719, allocations: 20.47 kB / 0.8802 GB, free: 70.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.625e-05/1.719, allocations: 346.3 kB / 0.8805 GB, free: 70.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005096/1.72, allocations: 299.2 kB / 0.8808 GB, free: 70.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006485/1.721, allocations: 0.5853 MB / 0.8814 GB, free: 69.9 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005998/1.721, allocations: 393.8 kB / 0.8818 GB, free: 69.89 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.171e-06/1.721, allocations: 3.719 kB / 0.8818 GB, free: 69.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002031/1.723, allocations: 1.069 MB / 0.8828 GB, free: 69.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006049/1.724, allocations: 3.312 MB / 0.886 GB, free: 66.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.668e-05/1.724, allocations: 9.266 kB / 0.886 GB, free: 66.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00199/1.726, allocations: 315.5 kB / 0.8864 GB, free: 66.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006755/1.727, allocations: 175.8 kB / 0.8865 GB, free: 66.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009585/1.728, allocations: 1.353 MB / 0.8878 GB, free: 65.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008789/1.728, allocations: 59.58 kB / 0.8879 GB, free: 65.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.791e-05/1.729, allocations: 42.36 kB / 0.8879 GB, free: 65.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/1.729, allocations: 4.594 kB / 0.8879 GB, free: 65.29 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001559/1.73, allocations: 0.9438 MB / 0.8889 GB, free: 65.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/1.73, allocations: 8.188 kB / 0.8889 GB, free: 65.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001618/1.732, allocations: 292.1 kB / 0.8891 GB, free: 65.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005526/1.732, allocations: 177.9 kB / 0.8893 GB, free: 65.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007936/1.733, allocations: 1.312 MB / 0.8906 GB, free: 64.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007636/1.734, allocations: 53.2 kB / 0.8907 GB, free: 64.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.176e-05/1.734, allocations: 42.92 kB / 0.8907 GB, free: 64.2 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.0002358/1.734, allocations: 164.3 kB / 0.8908 GB, free: 64.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/1.734, allocations: 94.88 kB / 0.8909 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001618/1.736, allocations: 0.769 MB / 0.8917 GB, free: 63.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/1.736, allocations: 6.016 kB / 0.8917 GB, free: 63.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/1.736, allocations: 3.969 kB / 0.8917 GB, free: 63.95 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/1.736, allocations: 2.953 kB / 0.8917 GB, free: 63.95 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002654/1.739, allocations: 1.588 MB / 0.8933 GB, free: 63.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/1.739, allocations: 1.125 kB / 0.8933 GB, free: 63.61 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003745/1.739, allocations: 79.66 kB / 0.8933 GB, free: 63.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001426/1.741, allocations: 282.7 kB / 0.8936 GB, free: 63.59 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.372e-05/1.741, allocations: 14.97 kB / 0.8936 GB, free: 63.59 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007988/1.741, allocations: 1.308 MB / 0.8949 GB, free: 62.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/1.741, allocations: 7.547 kB / 0.8949 GB, free: 62.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/1.743, allocations: 1.094 MB / 0.896 GB, free: 62.29 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000327/1.743, allocations: 192.3 kB / 0.8962 GB, free: 62.15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001328/1.743, allocations: 20.08 kB / 0.8962 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000558/1.744, allocations: 41.59 kB / 0.8962 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/1.744, allocations: 45.62 kB / 0.8963 GB, free: 62.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.76e-05/1.744, allocations: 28.78 kB / 0.8963 GB, free: 62.14 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007564/1.745, allocations: 0.6362 MB / 0.8969 GB, free: 62.03 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.745, allocations: 0 / 0.8969 GB, free: 62.03 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002421/1.747, allocations: 0.8295 MB / 0.8977 GB, free: 62 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.003394/1.751, allocations: 2.496 MB / 0.9002 GB, free: 60.94 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002227/1.753, allocations: 1.23 MB / 0.9014 GB, free: 60.91 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/1.753, allocations: 1.438 kB / 0.9014 GB, free: 60.91 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000728/1.754, allocations: 350.9 kB / 0.9017 GB, free: 60.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/1.755, allocations: 378.6 kB / 0.902 GB, free: 60.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002988/1.758, allocations: 1.693 MB / 0.9037 GB, free: 60.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003897/1.759, allocations: 1.056 MB / 0.9047 GB, free: 59.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00119/1.76, allocations: 417.2 kB / 0.9051 GB, free: 59.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003422/1.76, allocations: 317.7 kB / 0.9054 GB, free: 59.67 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/1.76, allocations: 0 / 0.9054 GB, free: 59.67 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04782/1.808, allocations: 35.2 MB / 0.9398 GB, free: 58.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001907/1.808, allocations: 234.9 kB / 0.94 GB, free: 57.79 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.966/4.774, allocations: 4 kB / 0.94 GB, free: 57.79 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