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.001603/0.001603, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.494/1.494, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009549/0.0009549, allocations: 92.98 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.502e-05, allocations: 7.938 kB / 343.8 MB, free: 8.191 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1567, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.012/1.169, allocations: 328.8 MB / 0.7071 GB, free: 28.15 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003193/1.17, allocations: 92.69 kB / 0.7072 GB, free: 28.1 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7186/1.888, allocations: 168.6 MB / 0.8719 GB, free: 38.17 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.673e-06/1.888, allocations: 0 / 0.8719 GB, free: 38.17 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.999e-05/1.888, allocations: 23.91 kB / 0.8719 GB, free: 38.15 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.00293/1.891, allocations: 1.12 MB / 0.873 GB, free: 37 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/1.891, allocations: 8.031 kB / 0.873 GB, free: 36.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003702/1.892, allocations: 103.8 kB / 0.8731 GB, free: 36.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/1.893, allocations: 0.6163 MB / 0.8737 GB, free: 36.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/1.893, allocations: 24 kB / 0.8738 GB, free: 36.22 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.146e-05/1.893, allocations: 35.94 kB / 0.8738 GB, free: 36.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001037/1.894, allocations: 0.7054 MB / 0.8745 GB, free: 35.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/1.895, allocations: 0.795 MB / 0.8753 GB, free: 34.62 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/1.895, allocations: 7.875 kB / 0.8753 GB, free: 34.62 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-05/1.895, allocations: 4 kB / 0.8753 GB, free: 34.61 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.059e-05/1.896, allocations: 41.3 kB / 0.8753 GB, free: 34.57 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004433/1.9, allocations: 3.65 MB / 0.8789 GB, free: 30.75 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006193/1.901, allocations: 0.498 MB / 0.8794 GB, free: 30.24 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002845/1.901, allocations: 246.1 kB / 0.8796 GB, free: 30 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001915/1.903, allocations: 1.844 MB / 0.8814 GB, free: 27.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/1.903, allocations: 42.5 kB / 0.8814 GB, free: 27.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 1.964e-06/1.903, allocations: 0 / 0.8814 GB, free: 27.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.006388/1.909, allocations: 1.826 MB / 0.8832 GB, free: 26.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/1.909, allocations: 132.5 kB / 0.8833 GB, free: 25.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005824/1.91, allocations: 0.5071 MB / 0.8838 GB, free: 25.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.784e-05/1.91, allocations: 25.7 kB / 0.8839 GB, free: 25.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002428/1.91, allocations: 411.1 kB / 0.8843 GB, free: 24.91 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/1.91, allocations: 161.7 kB / 0.8844 GB, free: 24.75 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.325e-05/1.91, allocations: 3.938 kB / 0.8844 GB, free: 24.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/1.911, allocations: 374.8 kB / 0.8848 GB, free: 24.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/1.911, allocations: 241.5 kB / 0.885 GB, free: 24.13 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/1.911, allocations: 481.6 kB / 0.8855 GB, free: 23.55 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002366/1.914, allocations: 0.6576 MB / 0.8861 GB, free: 22.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/1.914, allocations: 0 / 0.8861 GB, free: 22.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003176/1.917, allocations: 1.159 MB / 0.8872 GB, free: 21.72 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005411/1.917, allocations: 2.704 MB / 0.8899 GB, free: 18.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/1.917, allocations: 8 kB / 0.8899 GB, free: 18.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002945/1.918, allocations: 93.66 kB / 0.89 GB, free: 18.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009702/1.919, allocations: 191.7 kB / 0.8902 GB, free: 18.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001624/1.92, allocations: 1.882 MB / 0.892 GB, free: 16.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008866/1.921, allocations: 36.11 kB / 0.892 GB, free: 16.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.753e-05/1.921, allocations: 39.98 kB / 0.8921 GB, free: 16.48 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/1.921, allocations: 0 / 0.8921 GB, free: 16.48 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00302/1.924, allocations: 1.03 MB / 0.8931 GB, free: 15.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/1.924, allocations: 8 kB / 0.8931 GB, free: 15.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002213/1.925, allocations: 93.66 kB / 0.8932 GB, free: 15.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006526/1.925, allocations: 171.7 kB / 0.8933 GB, free: 15.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000909/1.926, allocations: 1.238 MB / 0.8945 GB, free: 13.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006693/1.927, allocations: 36.02 kB / 0.8946 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.596e-05/1.927, allocations: 40.03 kB / 0.8946 GB, free: 13.81 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.0002607/1.927, allocations: 136.7 kB / 0.8947 GB, free: 13.67 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002141/1.929, allocations: 0.7008 MB / 0.8954 GB, free: 12.95 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.375e-05/1.93, allocations: 71.16 kB / 0.8955 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001937/1.931, allocations: 0.8404 MB / 0.8963 GB, free: 12.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/1.932, allocations: 8 kB / 0.8963 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/1.932, allocations: 7.953 kB / 0.8963 GB, free: 12.01 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/1.932, allocations: 3.984 kB / 0.8963 GB, free: 12.01 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0028/1.934, allocations: 1.517 MB / 0.8978 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/1.934, allocations: 3.938 kB / 0.8978 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005782/1.935, allocations: 135.8 kB / 0.8979 GB, free: 10.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000207/1.935, allocations: 69.73 kB / 0.898 GB, free: 10.24 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/1.935, allocations: 11.98 kB / 0.898 GB, free: 10.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009142/1.936, allocations: 1.78 MB / 0.8998 GB, free: 8.371 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.936, allocations: 7.969 kB / 0.8998 GB, free: 8.363 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001829/1.938, allocations: 1.138 MB / 0.9009 GB, free: 7.172 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001995/1.938, allocations: 160.1 kB / 0.901 GB, free: 6.996 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/1.938, allocations: 4 kB / 0.901 GB, free: 6.992 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004773/1.939, allocations: 35.97 kB / 0.9011 GB, free: 6.957 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/1.939, allocations: 48.48 kB / 0.9011 GB, free: 6.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.652e-05/1.939, allocations: 35.91 kB / 0.9012 GB, free: 6.875 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000404/1.939, allocations: 395.1 kB / 0.9015 GB, free: 6.496 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.939, allocations: 0 / 0.9015 GB, free: 6.496 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002141/1.942, allocations: 0.6205 MB / 0.9021 GB, free: 5.875 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.003657/1.945, allocations: 2.465 MB / 0.9045 GB, free: 3.402 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002195/1.947, allocations: 1.062 MB / 0.9056 GB, free: 2.344 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/1.947, allocations: 1.875 kB / 0.9056 GB, free: 2.344 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006119/1.948, allocations: 361.9 kB / 0.9059 GB, free: 1.996 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001485/1.95, allocations: 290.5 kB / 0.9062 GB, free: 1.719 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002912/1.953, allocations: 1.414 MB / 0.9076 GB, free: 260 kB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2606/2.213, allocations: 0.9998 MB / 0.9086 GB, free: 73.57 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00151/2.215, allocations: 328.1 kB / 0.9089 GB, free: 73.56 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/2.215, allocations: 281.2 kB / 0.9091 GB, free: 73.56 MB / 442.7 MB Notification: Performance of SimCode: time 1.242e-06/2.215, allocations: 0 / 0.9091 GB, free: 73.56 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05354/2.269, allocations: 25.54 MB / 0.9341 GB, free: 72.94 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/2.269, allocations: 186.6 kB / 0.9343 GB, free: 72.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.909/5.178, allocations: 0.5625 kB / 0.9343 GB, free: 72.75 MB / 442.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