Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002375/0.002376, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.022/2.022, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001215/0.001215, allocations: 98.08 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005543/0.0005545, allocations: 8 kB / 327.1 MB, free: 112 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3386, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.001/1.34, allocations: 323.9 MB / 0.6822 GB, free: 106.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003128/1.34, allocations: 97.16 kB / 0.6823 GB, free: 106.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9521/2.292, allocations: 192.9 MB / 0.8706 GB, free: 96.57 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.935e-06/2.293, allocations: 0 / 0.8706 GB, free: 96.57 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002268/2.293, allocations: 33.88 kB / 0.8706 GB, free: 96.56 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.008273/2.301, allocations: 1.413 MB / 0.872 GB, free: 95.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.964e-05/2.301, allocations: 7.875 kB / 0.872 GB, free: 95.62 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007176/2.302, allocations: 112.2 kB / 0.8721 GB, free: 95.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001994/2.304, allocations: 113.4 kB / 0.8722 GB, free: 95.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004331/2.308, allocations: 0.7394 MB / 0.873 GB, free: 94.95 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/2.308, allocations: 47.61 kB / 0.873 GB, free: 94.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004979/2.309, allocations: 65.66 kB / 0.8731 GB, free: 94.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005463/2.314, allocations: 1.055 MB / 0.8741 GB, free: 94.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.183e-05/2.315, allocations: 7.344 kB / 0.8741 GB, free: 94.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002654/2.315, allocations: 33.05 kB / 0.8741 GB, free: 94.21 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002093/2.315, allocations: 62.41 kB / 0.8742 GB, free: 94.2 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005489/2.321, allocations: 1.021 MB / 0.8752 GB, free: 93.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01743/2.338, allocations: 4.392 MB / 0.8795 GB, free: 90.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00161/2.34, allocations: 0.5693 MB / 0.88 GB, free: 89.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003736/2.343, allocations: 1.988 MB / 0.882 GB, free: 87.92 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/2.344, allocations: 53.53 kB / 0.882 GB, free: 87.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 4.238e-06/2.344, allocations: 0 / 0.882 GB, free: 87.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.007289/2.351, allocations: 1.934 MB / 0.8839 GB, free: 86.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.972e-05/2.351, allocations: 162.1 kB / 0.8841 GB, free: 86.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001542/2.353, allocations: 0.8224 MB / 0.8849 GB, free: 85.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001345/2.353, allocations: 41.62 kB / 0.8849 GB, free: 85.9 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003405/2.353, allocations: 489.4 kB / 0.8854 GB, free: 85.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001775/2.353, allocations: 160.6 kB / 0.8855 GB, free: 85.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.66e-05/2.353, allocations: 18.47 kB / 0.8855 GB, free: 85.31 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.044e-05/2.353, allocations: 342 kB / 0.8859 GB, free: 84.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008166/2.354, allocations: 313.6 kB / 0.8862 GB, free: 84.82 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009747/2.355, allocations: 0.588 MB / 0.8867 GB, free: 84.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009464/2.356, allocations: 397.7 kB / 0.8871 GB, free: 84.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/2.356, allocations: 3.469 kB / 0.8871 GB, free: 84.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002773/2.359, allocations: 1.022 MB / 0.8881 GB, free: 83.57 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006773/2.36, allocations: 3.316 MB / 0.8914 GB, free: 80.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.838e-05/2.36, allocations: 9.344 kB / 0.8914 GB, free: 80.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00352/2.363, allocations: 322.5 kB / 0.8917 GB, free: 79.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/2.365, allocations: 175.7 kB / 0.8919 GB, free: 79.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001436/2.366, allocations: 1.349 MB / 0.8932 GB, free: 78.17 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/2.368, allocations: 62.7 kB / 0.8932 GB, free: 78.11 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/2.368, allocations: 43.98 kB / 0.8933 GB, free: 78.07 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/2.368, allocations: 4 kB / 0.8933 GB, free: 78.06 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00241/2.37, allocations: 0.9522 MB / 0.8942 GB, free: 77.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.733e-05/2.37, allocations: 8 kB / 0.8942 GB, free: 77.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002963/2.373, allocations: 283.9 kB / 0.8945 GB, free: 76.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/2.375, allocations: 179.6 kB / 0.8947 GB, free: 76.65 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001305/2.376, allocations: 1.29 MB / 0.8959 GB, free: 75.31 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001126/2.377, allocations: 59.03 kB / 0.896 GB, free: 75.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/2.377, allocations: 39.98 kB / 0.896 GB, free: 75.22 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 () * Number of clocked 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.0007263/2.378, allocations: 368 kB / 0.8964 GB, free: 74.85 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002628/2.378, allocations: 94.88 kB / 0.8965 GB, free: 74.76 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002537/2.381, allocations: 0.7864 MB / 0.8972 GB, free: 73.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/2.381, allocations: 8 kB / 0.8972 GB, free: 73.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.824e-06/2.381, allocations: 3.953 kB / 0.8972 GB, free: 73.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/2.381, allocations: 3.984 kB / 0.8972 GB, free: 73.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003835/2.385, allocations: 1.596 MB / 0.8988 GB, free: 72.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/2.385, allocations: 4 kB / 0.8988 GB, free: 72.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006616/2.386, allocations: 79.89 kB / 0.8989 GB, free: 72.22 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002317/2.388, allocations: 282.4 kB / 0.8991 GB, free: 71.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.908e-05/2.388, allocations: 12 kB / 0.8992 GB, free: 71.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/2.389, allocations: 1.316 MB / 0.9004 GB, free: 70.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/2.389, allocations: 0 / 0.9004 GB, free: 70.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002456/2.392, allocations: 1.105 MB / 0.9015 GB, free: 69.43 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003892/2.392, allocations: 187.8 kB / 0.9017 GB, free: 69.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002242/2.392, allocations: 18.78 kB / 0.9017 GB, free: 69.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001045/2.393, allocations: 42.89 kB / 0.9018 GB, free: 69.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001638/2.394, allocations: 52.31 kB / 0.9018 GB, free: 69.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.032e-05/2.394, allocations: 23.98 kB / 0.9018 GB, free: 69.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001207/2.395, allocations: 0.6442 MB / 0.9025 GB, free: 68.45 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/2.395, allocations: 0 / 0.9025 GB, free: 68.45 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003282/2.398, allocations: 0.8297 MB / 0.9033 GB, free: 67.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]) * Number of clocked states: 0 () * 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.005173/2.403, allocations: 2.518 MB / 0.9057 GB, free: 65.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003752/2.407, allocations: 1.21 MB / 0.9069 GB, free: 63.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/2.407, allocations: 0 / 0.9069 GB, free: 63.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/2.409, allocations: 355.8 kB / 0.9072 GB, free: 63.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003066/2.412, allocations: 387.5 kB / 0.9076 GB, free: 63.24 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007506/2.419, allocations: 8.641 MB / 0.9161 GB, free: 54.37 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005813/2.42, allocations: 1.053 MB / 0.9171 GB, free: 53.29 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008299/2.421, allocations: 331.3 kB / 0.9174 GB, free: 52.96 MB / 426.7 MB Notification: Performance of SimCode: time 8.92e-07/2.421, allocations: 0 / 0.9174 GB, free: 52.96 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.496/5.917, allocations: 30.23 MB / 0.9469 GB, free: 22.86 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat