Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",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.001045/0.001046, allocations: 180 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.476/1.476, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008616/0.0008617, allocations: 101 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002651/0.0002653, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2443/0.2446, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7004/0.9451, allocations: 328.2 MB / 0.6876 GB, free: 136.8 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.9454, allocations: 101.7 kB / 0.6877 GB, free: 136.8 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5538/1.499, allocations: 167 MB / 0.8508 GB, free: 90.27 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.663e-06/1.499, allocations: 0 / 0.8508 GB, free: 90.27 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001136/1.499, allocations: 25.59 kB / 0.8508 GB, free: 90.27 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003744/1.503, allocations: 1.204 MB / 0.852 GB, free: 89.63 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/1.503, allocations: 10.53 kB / 0.852 GB, free: 89.63 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003656/1.504, allocations: 105.7 kB / 0.8521 GB, free: 89.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006178/1.504, allocations: 107.3 kB / 0.8522 GB, free: 89.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001703/1.506, allocations: 0.6368 MB / 0.8528 GB, free: 89.3 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.949e-05/1.506, allocations: 44.8 kB / 0.8529 GB, free: 89.3 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001991/1.506, allocations: 54.67 kB / 0.8529 GB, free: 89.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00159/1.508, allocations: 0.8828 MB / 0.8538 GB, free: 89.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/1.508, allocations: 7.562 kB / 0.8538 GB, free: 89.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00011/1.508, allocations: 26.48 kB / 0.8538 GB, free: 89.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.197e-05/1.508, allocations: 49.83 kB / 0.8539 GB, free: 89.12 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00128/1.509, allocations: 0.7915 MB / 0.8546 GB, free: 89.11 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005369/1.515, allocations: 3.781 MB / 0.8583 GB, free: 87.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008173/1.516, allocations: 0.5193 MB / 0.8588 GB, free: 87.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002148/1.518, allocations: 1.854 MB / 0.8606 GB, free: 85.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/1.518, allocations: 41.16 kB / 0.8607 GB, free: 85.78 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 1.743e-06/1.518, allocations: 3.938 kB / 0.8607 GB, free: 85.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.003461/1.521, allocations: 1.753 MB / 0.8624 GB, free: 85.16 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.829e-05/1.521, allocations: 132.4 kB / 0.8625 GB, free: 85 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008641/1.522, allocations: 0.6642 MB / 0.8632 GB, free: 84.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.037e-05/1.522, allocations: 37.95 kB / 0.8632 GB, free: 84.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002706/1.523, allocations: 396.8 kB / 0.8636 GB, free: 84.65 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/1.523, allocations: 167.5 kB / 0.8637 GB, free: 84.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/1.523, allocations: 8.875 kB / 0.8637 GB, free: 84.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/1.523, allocations: 394.8 kB / 0.8641 GB, free: 84.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000402/1.523, allocations: 257.4 kB / 0.8644 GB, free: 84.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005032/1.524, allocations: 0.4883 MB / 0.8648 GB, free: 83.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004825/1.524, allocations: 328.6 kB / 0.8652 GB, free: 83.96 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/1.524, allocations: 0 / 0.8652 GB, free: 83.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001395/1.526, allocations: 0.8832 MB / 0.866 GB, free: 83.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006814/1.526, allocations: 2.707 MB / 0.8687 GB, free: 81.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.914e-05/1.526, allocations: 9.5 kB / 0.8687 GB, free: 81.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/1.527, allocations: 162.6 kB / 0.8688 GB, free: 81.03 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009736/1.528, allocations: 202.2 kB / 0.869 GB, free: 81.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/1.529, allocations: 1.808 MB / 0.8708 GB, free: 79.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007908/1.53, allocations: 52.11 kB / 0.8708 GB, free: 79.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.211e-05/1.53, allocations: 38.52 kB / 0.8709 GB, free: 79.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/1.53, allocations: 3.875 kB / 0.8709 GB, free: 79.4 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00123/1.532, allocations: 0.788 MB / 0.8716 GB, free: 79.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/1.532, allocations: 3.75 kB / 0.8717 GB, free: 79.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008668/1.533, allocations: 165.6 kB / 0.8718 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006337/1.533, allocations: 173.8 kB / 0.872 GB, free: 79.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005843/1.534, allocations: 1.189 MB / 0.8731 GB, free: 78.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007072/1.534, allocations: 58.53 kB / 0.8732 GB, free: 78.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.956e-05/1.535, allocations: 29.34 kB / 0.8732 GB, free: 78.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0004317/1.535, allocations: 332.9 kB / 0.8735 GB, free: 78.12 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/1.535, allocations: 77.91 kB / 0.8736 GB, free: 78.08 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001459/1.537, allocations: 0.8293 MB / 0.8744 GB, free: 77.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/1.537, allocations: 7.719 kB / 0.8744 GB, free: 77.99 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/1.537, allocations: 7.625 kB / 0.8744 GB, free: 77.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/1.537, allocations: 6.984 kB / 0.8744 GB, free: 77.99 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002585/1.539, allocations: 1.567 MB / 0.876 GB, free: 77.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/1.539, allocations: 0 / 0.876 GB, free: 77.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000628/1.54, allocations: 131.9 kB / 0.8761 GB, free: 77.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00056/1.541, allocations: 129.5 kB / 0.8762 GB, free: 77.61 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.256e-05/1.541, allocations: 15.12 kB / 0.8762 GB, free: 77.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007392/1.541, allocations: 1.75 MB / 0.8779 GB, free: 75.98 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/1.541, allocations: 0 / 0.8779 GB, free: 75.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/1.543, allocations: 1.13 MB / 0.879 GB, free: 75.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002715/1.543, allocations: 179.2 kB / 0.8792 GB, free: 75.56 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000165/1.543, allocations: 13.94 kB / 0.8792 GB, free: 75.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005818/1.544, allocations: 44.27 kB / 0.8793 GB, free: 75.55 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/1.544, allocations: 53.59 kB / 0.8793 GB, free: 75.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.318e-05/1.544, allocations: 26.75 kB / 0.8794 GB, free: 75.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000657/1.545, allocations: 0.5212 MB / 0.8799 GB, free: 75.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/1.545, allocations: 0 / 0.8799 GB, free: 75.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002257/1.547, allocations: 0.6558 MB / 0.8805 GB, free: 75.36 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003613/1.551, allocations: 2.451 MB / 0.8829 GB, free: 74.23 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002665/1.553, allocations: 1.159 MB / 0.884 GB, free: 73.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/1.553, allocations: 2.844 kB / 0.884 GB, free: 73.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008078/1.554, allocations: 388.4 kB / 0.8844 GB, free: 73.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001808/1.556, allocations: 365.4 kB / 0.8847 GB, free: 73.78 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005537/1.562, allocations: 7.202 MB / 0.8918 GB, free: 67.61 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005793/1.562, allocations: 1.004 MB / 0.8928 GB, free: 66.89 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00117/1.563, allocations: 325.3 kB / 0.8931 GB, free: 66.87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000428/1.564, allocations: 297.7 kB / 0.8934 GB, free: 66.66 MB / 426.7 MB Notification: Performance of SimCode: time 1.202e-06/1.564, allocations: 0 / 0.8934 GB, free: 66.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05201/1.616, allocations: 29.13 MB / 0.9218 GB, free: 58.66 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000204/1.616, allocations: 264.6 kB / 0.9221 GB, free: 58.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.899/4.515, allocations: 0 / 0.9221 GB, free: 58.3 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat