Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008591/0.0008591, allocations: 88.28 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.88e-05/1.883e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1124, allocations: 50.42 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8891/1.002, allocations: 328 MB / 0.6988 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000264/1.002, allocations: 91.75 kB / 0.6989 GB, free: 0.5898 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6371/1.639, allocations: 168.9 MB / 0.8638 GB, free: 31.45 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.292e-06/1.639, allocations: 0 / 0.8638 GB, free: 31.45 MB / 442.7 MB Notification: Performance of Transformations before backend: time 5.853e-05/1.639, allocations: 23.92 kB / 0.8638 GB, free: 31.43 MB / 442.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.002423/1.642, allocations: 1.11 MB / 0.8649 GB, free: 30.27 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/1.642, allocations: 8.031 kB / 0.8649 GB, free: 30.26 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003588/1.642, allocations: 98.95 kB / 0.865 GB, free: 30.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/1.643, allocations: 0.6284 MB / 0.8656 GB, free: 29.49 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.566e-05/1.643, allocations: 20 kB / 0.8656 GB, free: 29.47 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.637e-05/1.643, allocations: 32 kB / 0.8657 GB, free: 29.44 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009948/1.644, allocations: 0.7054 MB / 0.8664 GB, free: 28.73 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/1.646, allocations: 0.7975 MB / 0.8671 GB, free: 27.88 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/1.646, allocations: 0 / 0.8671 GB, free: 27.88 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.685e-05/1.646, allocations: 4 kB / 0.8671 GB, free: 27.88 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.413e-05/1.646, allocations: 41.3 kB / 0.8672 GB, free: 27.84 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00436/1.65, allocations: 3.644 MB / 0.8707 GB, free: 23.97 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006223/1.651, allocations: 0.4996 MB / 0.8712 GB, free: 23.46 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000295/1.651, allocations: 246.1 kB / 0.8715 GB, free: 23.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001904/1.653, allocations: 1.856 MB / 0.8733 GB, free: 21.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/1.653, allocations: 38.56 kB / 0.8733 GB, free: 21.11 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 1.864e-06/1.653, allocations: 0 / 0.8733 GB, free: 21.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.006242/1.659, allocations: 1.814 MB / 0.8751 GB, free: 19.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/1.659, allocations: 132.5 kB / 0.8752 GB, free: 19.07 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006745/1.66, allocations: 0.5032 MB / 0.8757 GB, free: 18.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.416e-05/1.66, allocations: 29.7 kB / 0.8757 GB, free: 18.53 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/1.66, allocations: 411.1 kB / 0.8761 GB, free: 18.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/1.66, allocations: 157.8 kB / 0.8763 GB, free: 17.96 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.498e-05/1.66, allocations: 3.938 kB / 0.8763 GB, free: 17.96 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.898e-05/1.661, allocations: 378.7 kB / 0.8766 GB, free: 17.58 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003056/1.661, allocations: 245.4 kB / 0.8769 GB, free: 17.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004/1.661, allocations: 472.8 kB / 0.8773 GB, free: 16.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002108/1.663, allocations: 0.6108 MB / 0.8779 GB, free: 16.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/1.663, allocations: 0 / 0.8779 GB, free: 16.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002896/1.666, allocations: 1.105 MB / 0.879 GB, free: 15.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005715/1.667, allocations: 2.705 MB / 0.8816 GB, free: 12.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/1.667, allocations: 7.984 kB / 0.8817 GB, free: 12.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003179/1.667, allocations: 93.62 kB / 0.8817 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009139/1.668, allocations: 187.7 kB / 0.8819 GB, free: 11.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001644/1.67, allocations: 1.89 MB / 0.8838 GB, free: 9.871 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007547/1.671, allocations: 43.75 kB / 0.8838 GB, free: 9.828 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.483e-05/1.671, allocations: 35.98 kB / 0.8838 GB, free: 9.793 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/1.671, allocations: 4 kB / 0.8838 GB, free: 9.789 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00267/1.673, allocations: 0.9869 MB / 0.8848 GB, free: 8.793 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.108e-06/1.673, allocations: 4 kB / 0.8848 GB, free: 8.789 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000198/1.674, allocations: 89.66 kB / 0.8849 GB, free: 8.695 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006579/1.674, allocations: 179.7 kB / 0.8851 GB, free: 8.52 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008361/1.675, allocations: 1.234 MB / 0.8863 GB, free: 7.234 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005713/1.676, allocations: 40 kB / 0.8863 GB, free: 7.195 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.93e-05/1.676, allocations: 39.98 kB / 0.8864 GB, free: 7.156 MB / 442.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.0001967/1.676, allocations: 126.1 kB / 0.8865 GB, free: 7.027 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002342/1.678, allocations: 0.7086 MB / 0.8872 GB, free: 6.305 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.475e-05/1.678, allocations: 67.16 kB / 0.8872 GB, free: 6.238 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/1.68, allocations: 0.8372 MB / 0.888 GB, free: 5.391 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.364e-05/1.681, allocations: 4 kB / 0.888 GB, free: 5.387 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/1.681, allocations: 4 kB / 0.8881 GB, free: 5.383 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.916e-06/1.681, allocations: 7.984 kB / 0.8881 GB, free: 5.375 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00278/1.683, allocations: 1.521 MB / 0.8895 GB, free: 3.797 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/1.683, allocations: 0 / 0.8895 GB, free: 3.797 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005888/1.684, allocations: 135.8 kB / 0.8897 GB, free: 3.664 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001945/1.684, allocations: 73.84 kB / 0.8897 GB, free: 3.586 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.758e-05/1.684, allocations: 11.98 kB / 0.8898 GB, free: 3.574 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/1.685, allocations: 1.781 MB / 0.8915 GB, free: 1.719 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/1.685, allocations: 0 / 0.8915 GB, free: 1.719 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/1.687, allocations: 1.142 MB / 0.8926 GB, free: 0.5234 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/1.687, allocations: 164.1 kB / 0.8928 GB, free: 352 kB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/1.688, allocations: 4 kB / 0.8928 GB, free: 348 kB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004732/1.688, allocations: 28.03 kB / 0.8928 GB, free: 320 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/1.688, allocations: 56.48 kB / 0.8929 GB, free: 264 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/1.688, allocations: 23.98 kB / 0.8929 GB, free: 240 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.2684/1.957, allocations: 390.1 kB / 0.8932 GB, free: 89.14 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.957, allocations: 0 / 0.8932 GB, free: 89.14 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002999/1.96, allocations: 0.6161 MB / 0.8938 GB, free: 89.14 MB / 442.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.005242/1.965, allocations: 2.452 MB / 0.8962 GB, free: 88.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002988/1.968, allocations: 1.073 MB / 0.8973 GB, free: 88.19 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.968, allocations: 1.25 kB / 0.8973 GB, free: 88.19 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007928/1.969, allocations: 353.5 kB / 0.8976 GB, free: 88.19 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001714/1.971, allocations: 293.5 kB / 0.8979 GB, free: 88.19 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/1.974, allocations: 1.407 MB / 0.8993 GB, free: 87.85 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006096/1.975, allocations: 1.005 MB / 0.9003 GB, free: 87.15 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00113/1.976, allocations: 331.1 kB / 0.9006 GB, free: 87.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/1.976, allocations: 282.1 kB / 0.9008 GB, free: 87.13 MB / 442.7 MB Notification: Performance of SimCode: time 6.82e-07/1.976, allocations: 0 / 0.9008 GB, free: 87.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05993/2.036, allocations: 25.5 MB / 0.9257 GB, free: 86.48 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001733/2.036, allocations: 191.1 kB / 0.9259 GB, free: 86.28 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.918/4.954, allocations: 0 / 0.9259 GB, free: 86.28 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat