Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008635/0.0008637, allocations: 95.52 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003044/0.0003044, allocations: 11.94 kB / 351.2 MB, free: 14.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2619, allocations: 50.4 MB / 401.6 MB, free: 32.53 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7216/0.9836, allocations: 324.5 MB / 0.709 GB, free: 159.4 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.9838, allocations: 97.97 kB / 0.7091 GB, free: 159.4 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7099/1.694, allocations: 196.6 MB / 0.9011 GB, free: 100.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.714e-06/1.694, allocations: 0 / 0.9011 GB, free: 100.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001253/1.694, allocations: 26.16 kB / 0.9012 GB, free: 100.2 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004618/1.699, allocations: 1.413 MB / 0.9025 GB, free: 99.56 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/1.699, allocations: 7.75 kB / 0.9025 GB, free: 99.56 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004433/1.699, allocations: 113.4 kB / 0.9027 GB, free: 99.52 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000717/1.7, allocations: 113.2 kB / 0.9028 GB, free: 99.47 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002139/1.702, allocations: 0.7402 MB / 0.9035 GB, free: 99.22 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.522e-05/1.702, allocations: 52.89 kB / 0.9035 GB, free: 99.22 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002144/1.702, allocations: 64.19 kB / 0.9036 GB, free: 99.22 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001942/1.704, allocations: 1.064 MB / 0.9046 GB, free: 99.03 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.921e-05/1.704, allocations: 0 / 0.9046 GB, free: 99.03 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001243/1.704, allocations: 28.31 kB / 0.9047 GB, free: 99.03 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.652e-05/1.704, allocations: 70.72 kB / 0.9047 GB, free: 99.03 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/1.706, allocations: 1.008 MB / 0.9057 GB, free: 99.03 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006592/1.713, allocations: 4.406 MB / 0.91 GB, free: 96.89 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008689/1.714, allocations: 0.5618 MB / 0.9106 GB, free: 96.86 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002372/1.716, allocations: 1.999 MB / 0.9125 GB, free: 95.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/1.716, allocations: 42.45 kB / 0.9126 GB, free: 95.57 MB / 458.7 MB Notification: Performance of pre-optimization done (n=40): time 1.793e-06/1.716, allocations: 3.969 kB / 0.9126 GB, free: 95.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=45): time 0.004378/1.72, allocations: 1.937 MB / 0.9145 GB, free: 94.95 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/1.72, allocations: 157.8 kB / 0.9146 GB, free: 94.76 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/1.722, allocations: 0.8252 MB / 0.9154 GB, free: 94.61 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 7.495e-05/1.722, allocations: 40.8 kB / 0.9155 GB, free: 94.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003145/1.722, allocations: 484.6 kB / 0.9159 GB, free: 94.36 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/1.722, allocations: 162.7 kB / 0.9161 GB, free: 94.26 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.618e-05/1.722, allocations: 15.09 kB / 0.9161 GB, free: 94.26 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.692e-05/1.722, allocations: 346.7 kB / 0.9164 GB, free: 93.95 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004508/1.723, allocations: 310.6 kB / 0.9167 GB, free: 93.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005775/1.723, allocations: 0.593 MB / 0.9173 GB, free: 93.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005783/1.724, allocations: 403.4 kB / 0.9177 GB, free: 93.61 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/1.724, allocations: 0 / 0.9177 GB, free: 93.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.001731/1.726, allocations: 1.076 MB / 0.9187 GB, free: 93.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007578/1.727, allocations: 3.312 MB / 0.922 GB, free: 90.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/1.727, allocations: 7.594 kB / 0.922 GB, free: 90.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001999/1.729, allocations: 321.8 kB / 0.9223 GB, free: 90.04 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006686/1.729, allocations: 178 kB / 0.9224 GB, free: 90.04 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009887/1.73, allocations: 1.351 MB / 0.9238 GB, free: 89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/1.731, allocations: 66.02 kB / 0.9238 GB, free: 88.99 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.437e-05/1.731, allocations: 41.61 kB / 0.9239 GB, free: 88.99 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/1.731, allocations: 6.281 kB / 0.9239 GB, free: 88.99 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001531/1.733, allocations: 0.9525 MB / 0.9248 GB, free: 88.96 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.418e-05/1.733, allocations: 11.75 kB / 0.9248 GB, free: 88.96 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00169/1.735, allocations: 296 kB / 0.9251 GB, free: 88.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005955/1.735, allocations: 174.3 kB / 0.9253 GB, free: 88.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008217/1.736, allocations: 1.308 MB / 0.9265 GB, free: 87.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008664/1.737, allocations: 54.52 kB / 0.9266 GB, free: 87.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.752e-05/1.737, allocations: 43.7 kB / 0.9266 GB, free: 87.91 MB / 458.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.0005711/1.738, allocations: 362.5 kB / 0.927 GB, free: 87.71 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002464/1.738, allocations: 96.05 kB / 0.9271 GB, free: 87.66 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/1.74, allocations: 0.789 MB / 0.9278 GB, free: 87.57 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/1.74, allocations: 11.59 kB / 0.9279 GB, free: 87.57 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/1.74, allocations: 0 / 0.9279 GB, free: 87.57 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/1.74, allocations: 0 / 0.9279 GB, free: 87.57 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002651/1.742, allocations: 1.607 MB / 0.9294 GB, free: 87.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/1.742, allocations: 2.156 kB / 0.9294 GB, free: 87.21 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003646/1.743, allocations: 78.34 kB / 0.9295 GB, free: 87.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/1.744, allocations: 289.3 kB / 0.9298 GB, free: 87.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.72e-05/1.744, allocations: 15.16 kB / 0.9298 GB, free: 87.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000796/1.745, allocations: 1.304 MB / 0.9311 GB, free: 86.15 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/1.745, allocations: 3.75 kB / 0.9311 GB, free: 86.15 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001669/1.747, allocations: 1.106 MB / 0.9321 GB, free: 85.6 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003972/1.747, allocations: 186.1 kB / 0.9323 GB, free: 85.44 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002442/1.747, allocations: 11.97 kB / 0.9323 GB, free: 85.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007089/1.748, allocations: 53.09 kB / 0.9324 GB, free: 85.41 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/1.748, allocations: 53.89 kB / 0.9324 GB, free: 85.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.795e-05/1.748, allocations: 27.25 kB / 0.9325 GB, free: 85.4 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000913/1.749, allocations: 0.6468 MB / 0.9331 GB, free: 85.11 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.749, allocations: 0 / 0.9331 GB, free: 85.11 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003061/1.752, allocations: 0.826 MB / 0.9339 GB, free: 84.91 MB / 458.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.004334/1.757, allocations: 2.493 MB / 0.9363 GB, free: 83.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002553/1.759, allocations: 1.238 MB / 0.9375 GB, free: 83.11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/1.759, allocations: 0 / 0.9375 GB, free: 83.11 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007769/1.76, allocations: 356.4 kB / 0.9379 GB, free: 83.02 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/1.762, allocations: 384.5 kB / 0.9383 GB, free: 82.94 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006608/1.769, allocations: 8.593 MB / 0.9466 GB, free: 75.52 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005556/1.769, allocations: 1.053 MB / 0.9477 GB, free: 74.79 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001296/1.771, allocations: 355 kB / 0.948 GB, free: 74.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004569/1.771, allocations: 328.1 kB / 0.9483 GB, free: 74.54 MB / 458.7 MB Notification: Performance of SimCode: time 1.072e-06/1.771, allocations: 0 / 0.9483 GB, free: 74.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06403/1.835, allocations: 33.53 MB / 0.9811 GB, free: 59.74 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002232/1.835, allocations: 271.4 kB / 0.9813 GB, free: 59.38 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.207/5.042, allocations: 0 / 0.9813 GB, free: 59.38 MB / 458.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat