Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001984/0.001984, allocations: 195.3 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009867/0.0009869, allocations: 92.66 kB / 292.1 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.869e-05/3.89e-05, allocations: 4 kB / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.112, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8177/0.9297, allocations: 329.5 MB / 0.7145 GB, free: 19.53 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.93, allocations: 99.55 kB / 0.7146 GB, free: 19.48 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6037/1.534, allocations: 169.8 MB / 0.8803 GB, free: 56.02 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.813e-06/1.534, allocations: 0 / 0.8803 GB, free: 56.02 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001047/1.534, allocations: 23.98 kB / 0.8804 GB, free: 55.99 MB / 458.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.003323/1.537, allocations: 1.112 MB / 0.8814 GB, free: 54.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/1.537, allocations: 16.02 kB / 0.8815 GB, free: 54.82 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002977/1.538, allocations: 99.36 kB / 0.8816 GB, free: 54.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005656/1.538, allocations: 102.6 kB / 0.8817 GB, free: 54.62 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001552/1.54, allocations: 0.6285 MB / 0.8823 GB, free: 53.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.876e-05/1.54, allocations: 45.3 kB / 0.8823 GB, free: 53.9 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001513/1.54, allocations: 52 kB / 0.8824 GB, free: 53.85 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001406/1.541, allocations: 0.8737 MB / 0.8832 GB, free: 52.92 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.406e-05/1.541, allocations: 4 kB / 0.8832 GB, free: 52.91 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.785e-05/1.542, allocations: 27.98 kB / 0.8832 GB, free: 52.89 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.28e-05/1.542, allocations: 53.28 kB / 0.8833 GB, free: 52.83 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/1.543, allocations: 0.778 MB / 0.8841 GB, free: 52.05 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004935/1.548, allocations: 3.778 MB / 0.8877 GB, free: 48.05 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007512/1.549, allocations: 0.5203 MB / 0.8882 GB, free: 47.53 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003399/1.549, allocations: 258.1 kB / 0.8885 GB, free: 47.28 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002014/1.551, allocations: 1.884 MB / 0.8903 GB, free: 45.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/1.551, allocations: 42.56 kB / 0.8904 GB, free: 45.13 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 2.324e-06/1.551, allocations: 0 / 0.8904 GB, free: 45.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.002498/1.553, allocations: 1.369 MB / 0.8917 GB, free: 43.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/1.554, allocations: 136.5 kB / 0.8918 GB, free: 43.54 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006637/1.554, allocations: 0.6599 MB / 0.8925 GB, free: 42.87 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.921e-05/1.554, allocations: 37.7 kB / 0.8925 GB, free: 42.82 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/1.554, allocations: 395.1 kB / 0.8929 GB, free: 42.43 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.775e-05/1.555, allocations: 165.6 kB / 0.8931 GB, free: 42.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.325e-05/1.555, allocations: 12 kB / 0.8931 GB, free: 42.26 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/1.555, allocations: 394.7 kB / 0.8934 GB, free: 41.86 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003543/1.555, allocations: 249.5 kB / 0.8937 GB, free: 41.62 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004469/1.556, allocations: 490.8 kB / 0.8942 GB, free: 41.04 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004113/1.556, allocations: 329.9 kB / 0.8945 GB, free: 40.71 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/1.556, allocations: 0 / 0.8945 GB, free: 40.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001154/1.557, allocations: 0.8786 MB / 0.8953 GB, free: 39.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005009/1.558, allocations: 2.703 MB / 0.898 GB, free: 36.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/1.558, allocations: 11.94 kB / 0.898 GB, free: 36.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009544/1.559, allocations: 165.5 kB / 0.8981 GB, free: 36.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009297/1.56, allocations: 195.7 kB / 0.8983 GB, free: 36.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008742/1.56, allocations: 1.8 MB / 0.9001 GB, free: 34.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006778/1.561, allocations: 56.09 kB / 0.9001 GB, free: 34.61 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.629e-05/1.561, allocations: 32 kB / 0.9002 GB, free: 34.58 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/1.561, allocations: 7.938 kB / 0.9002 GB, free: 34.57 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001065/1.562, allocations: 0.7763 MB / 0.9009 GB, free: 33.79 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/1.562, allocations: 7.953 kB / 0.9009 GB, free: 33.78 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008205/1.563, allocations: 169.8 kB / 0.9011 GB, free: 33.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005803/1.564, allocations: 171.7 kB / 0.9013 GB, free: 33.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005133/1.564, allocations: 1.183 MB / 0.9024 GB, free: 32.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005675/1.565, allocations: 51.86 kB / 0.9025 GB, free: 32.16 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.872e-05/1.565, allocations: 39.98 kB / 0.9025 GB, free: 32.12 MB / 458.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 () * 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.00019/1.565, allocations: 157.7 kB / 0.9027 GB, free: 31.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001224/1.565, allocations: 82.97 kB / 0.9027 GB, free: 31.88 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/1.567, allocations: 0.8143 MB / 0.9035 GB, free: 31.04 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/1.567, allocations: 8 kB / 0.9035 GB, free: 31.03 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/1.567, allocations: 0 / 0.9035 GB, free: 31.03 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/1.567, allocations: 7.938 kB / 0.9035 GB, free: 31.02 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002054/1.569, allocations: 1.548 MB / 0.9051 GB, free: 29.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/1.569, allocations: 4 kB / 0.9051 GB, free: 29.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005945/1.569, allocations: 131.9 kB / 0.9052 GB, free: 29.27 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005479/1.57, allocations: 133.6 kB / 0.9053 GB, free: 29.14 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/1.57, allocations: 15.98 kB / 0.9053 GB, free: 29.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006609/1.571, allocations: 1.749 MB / 0.907 GB, free: 27.3 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/1.571, allocations: 224 / 0.907 GB, free: 27.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001255/1.572, allocations: 1.122 MB / 0.9081 GB, free: 26.12 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/1.572, allocations: 168 kB / 0.9083 GB, free: 25.94 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/1.572, allocations: 12 kB / 0.9083 GB, free: 25.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004979/1.573, allocations: 47.88 kB / 0.9083 GB, free: 25.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000113/1.573, allocations: 48.48 kB / 0.9084 GB, free: 25.83 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.471e-05/1.573, allocations: 35.98 kB / 0.9084 GB, free: 25.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005729/1.574, allocations: 0.5109 MB / 0.9089 GB, free: 25.29 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.574, allocations: 3.938 kB / 0.9089 GB, free: 25.29 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002011/1.576, allocations: 0.6596 MB / 0.9096 GB, free: 24.63 MB / 458.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]) * 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.00302/1.579, allocations: 2.437 MB / 0.912 GB, free: 22.15 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002572/1.581, allocations: 1.161 MB / 0.9131 GB, free: 20.99 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.581, allocations: 0 / 0.9131 GB, free: 20.99 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007296/1.582, allocations: 379 kB / 0.9135 GB, free: 20.62 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001856/1.584, allocations: 380.9 kB / 0.9138 GB, free: 20.26 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00339/1.587, allocations: 1.497 MB / 0.9153 GB, free: 18.71 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/1.588, allocations: 1.004 MB / 0.9163 GB, free: 17.68 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001199/1.589, allocations: 372.1 kB / 0.9166 GB, free: 17.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003588/1.589, allocations: 287.3 kB / 0.9169 GB, free: 17.04 MB / 458.7 MB Notification: Performance of SimCode: time 7.31e-07/1.589, allocations: 0 / 0.9169 GB, free: 17.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2794/1.868, allocations: 30.68 MB / 0.9468 GB, free: 84.61 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/1.869, allocations: 236.7 kB / 0.9471 GB, free: 84.3 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.981/4.849, allocations: 2.156 kB / 0.9471 GB, free: 84.3 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat