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.001067/0.001066, allocations: 181.3 kB / 17.01 MB, free: 5.125 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.447/1.447, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009954/0.0009953, allocations: 98.58 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003065/0.0003066, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.263, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6677/0.9308, allocations: 323.9 MB / 0.6834 GB, free: 106.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.9312, allocations: 100.8 kB / 0.6835 GB, free: 106.6 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6055/1.537, allocations: 192.9 MB / 0.8718 GB, free: 96.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.543e-06/1.537, allocations: 0 / 0.8718 GB, free: 96.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001173/1.537, allocations: 30.09 kB / 0.8719 GB, free: 96.41 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.004242/1.541, allocations: 1.405 MB / 0.8732 GB, free: 95.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/1.541, allocations: 13.59 kB / 0.8733 GB, free: 95.47 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004418/1.542, allocations: 115.9 kB / 0.8734 GB, free: 95.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006364/1.542, allocations: 110.2 kB / 0.8735 GB, free: 95.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/1.544, allocations: 0.7453 MB / 0.8742 GB, free: 94.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.319e-05/1.544, allocations: 51.62 kB / 0.8743 GB, free: 94.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001064/1.544, allocations: 65.06 kB / 0.8743 GB, free: 94.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001596/1.546, allocations: 1.055 MB / 0.8753 GB, free: 94.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/1.546, allocations: 0 / 0.8753 GB, free: 94.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.527e-05/1.546, allocations: 30.97 kB / 0.8754 GB, free: 94.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-05/1.546, allocations: 64.08 kB / 0.8754 GB, free: 94.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001327/1.548, allocations: 1.011 MB / 0.8764 GB, free: 93.89 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005739/1.553, allocations: 4.403 MB / 0.8807 GB, free: 90.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008134/1.554, allocations: 0.5686 MB / 0.8813 GB, free: 89.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002107/1.556, allocations: 1.99 MB / 0.8832 GB, free: 88.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/1.556, allocations: 41.61 kB / 0.8833 GB, free: 88.08 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 1.743e-06/1.556, allocations: 0 / 0.8833 GB, free: 88.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.003921/1.56, allocations: 1.947 MB / 0.8852 GB, free: 86.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/1.56, allocations: 158.2 kB / 0.8853 GB, free: 86.62 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009507/1.561, allocations: 0.8192 MB / 0.8861 GB, free: 86.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.706e-05/1.561, allocations: 47.95 kB / 0.8862 GB, free: 86.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003059/1.562, allocations: 478 kB / 0.8866 GB, free: 85.69 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001216/1.562, allocations: 161.2 kB / 0.8868 GB, free: 85.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.371e-05/1.562, allocations: 19.59 kB / 0.8868 GB, free: 85.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.272e-05/1.562, allocations: 333.6 kB / 0.8871 GB, free: 85.21 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004304/1.562, allocations: 310.3 kB / 0.8874 GB, free: 85.06 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005399/1.563, allocations: 0.5963 MB / 0.888 GB, free: 84.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005087/1.563, allocations: 398.7 kB / 0.8884 GB, free: 84.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/1.563, allocations: 3.875 kB / 0.8884 GB, free: 84.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001482/1.565, allocations: 1.082 MB / 0.8894 GB, free: 83.72 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006664/1.566, allocations: 3.314 MB / 0.8927 GB, free: 80.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/1.566, allocations: 8 kB / 0.8927 GB, free: 80.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/1.567, allocations: 322.5 kB / 0.893 GB, free: 79.86 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006114/1.568, allocations: 171.7 kB / 0.8931 GB, free: 79.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008459/1.569, allocations: 1.346 MB / 0.8945 GB, free: 78.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008967/1.57, allocations: 67.36 kB / 0.8945 GB, free: 78.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-05/1.57, allocations: 43.98 kB / 0.8946 GB, free: 78.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/1.57, allocations: 4 kB / 0.8946 GB, free: 78.19 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001337/1.571, allocations: 0.9534 MB / 0.8955 GB, free: 77.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/1.571, allocations: 14.91 kB / 0.8955 GB, free: 77.23 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001601/1.573, allocations: 289.9 kB / 0.8958 GB, free: 76.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005629/1.574, allocations: 179.7 kB / 0.896 GB, free: 76.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007446/1.574, allocations: 1.31 MB / 0.8972 GB, free: 75.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008038/1.575, allocations: 59.25 kB / 0.8973 GB, free: 75.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.899e-05/1.575, allocations: 39.98 kB / 0.8973 GB, free: 75.32 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.0005313/1.576, allocations: 360.8 kB / 0.8977 GB, free: 74.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000138/1.576, allocations: 98.81 kB / 0.8978 GB, free: 74.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00143/1.577, allocations: 0.7768 MB / 0.8985 GB, free: 74.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.104e-06/1.577, allocations: 10.27 kB / 0.8985 GB, free: 74.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.301e-06/1.577, allocations: 7.891 kB / 0.8985 GB, free: 74.06 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/1.577, allocations: 0 / 0.8985 GB, free: 74.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/1.58, allocations: 1.6 MB / 0.9001 GB, free: 72.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/1.58, allocations: 0 / 0.9001 GB, free: 72.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003374/1.58, allocations: 78.91 kB / 0.9002 GB, free: 72.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001324/1.581, allocations: 282.6 kB / 0.9005 GB, free: 72.05 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.007e-05/1.581, allocations: 18.89 kB / 0.9005 GB, free: 72.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007527/1.582, allocations: 1.313 MB / 0.9018 GB, free: 70.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/1.582, allocations: 0 / 0.9018 GB, free: 70.68 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/1.583, allocations: 1.106 MB / 0.9028 GB, free: 69.54 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000273/1.584, allocations: 195.8 kB / 0.903 GB, free: 69.32 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001221/1.584, allocations: 8 kB / 0.903 GB, free: 69.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000557/1.584, allocations: 45.81 kB / 0.9031 GB, free: 69.28 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/1.584, allocations: 52.36 kB / 0.9031 GB, free: 69.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.694e-05/1.584, allocations: 22.89 kB / 0.9031 GB, free: 69.21 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006821/1.585, allocations: 0.648 MB / 0.9038 GB, free: 68.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.585, allocations: 0 / 0.9038 GB, free: 68.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00241/1.588, allocations: 0.8297 MB / 0.9046 GB, free: 67.72 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.003286/1.591, allocations: 2.502 MB / 0.907 GB, free: 65.28 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002094/1.593, allocations: 1.219 MB / 0.9082 GB, free: 64.07 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.69e-06/1.593, allocations: 8 kB / 0.9082 GB, free: 64.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007794/1.594, allocations: 358.2 kB / 0.9086 GB, free: 63.71 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001595/1.595, allocations: 389.3 kB / 0.9089 GB, free: 63.34 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/1.6, allocations: 8.583 MB / 0.9173 GB, free: 54.53 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000429/1.601, allocations: 1.057 MB / 0.9184 GB, free: 53.45 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001196/1.602, allocations: 359.1 kB / 0.9187 GB, free: 53.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003784/1.602, allocations: 327.3 kB / 0.919 GB, free: 52.79 MB / 426.7 MB Notification: Performance of SimCode: time 1.082e-06/1.602, allocations: 0 / 0.919 GB, free: 52.79 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0513/1.654, allocations: 33.52 MB / 0.9517 GB, free: 19.38 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/1.654, allocations: 260.6 kB / 0.952 GB, free: 19.02 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.065/4.719, allocations: 0 / 0.952 GB, free: 19.02 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