Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002796/0.002796, allocations: 196.8 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.534/1.534, allocations: 225.4 MB / 240.1 MB, free: 15.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009119/0.0009121, allocations: 100.8 kB / 292.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.219e-05, allocations: 4 kB / 350.6 MB, free: 2.469 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 51.47 MB / 402.1 MB, free: 14.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8036/0.9088, allocations: 328.1 MB / 0.7131 GB, free: 21.06 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002275/0.9091, allocations: 90.94 kB / 0.7132 GB, free: 21.02 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.188/2.097, allocations: 330.2 MB / 1.036 GB, free: 57.74 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.833e-06/2.097, allocations: 0 / 1.036 GB, free: 57.74 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001465/2.097, allocations: 46.8 kB / 1.036 GB, free: 57.73 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: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.006191/2.103, allocations: 2.051 MB / 1.038 GB, free: 56.59 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/2.103, allocations: 7.375 kB / 1.038 GB, free: 56.59 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003771/2.104, allocations: 188.7 kB / 1.038 GB, free: 56.48 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007686/2.104, allocations: 197.1 kB / 1.038 GB, free: 56.39 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0025/2.107, allocations: 1.196 MB / 1.039 GB, free: 55.75 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.718e-05/2.107, allocations: 101 kB / 1.039 GB, free: 55.71 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002117/2.107, allocations: 125.5 kB / 1.04 GB, free: 55.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002774/2.11, allocations: 1.92 MB / 1.041 GB, free: 54.82 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.037e-05/2.11, allocations: 0 / 1.041 GB, free: 54.82 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001623/2.11, allocations: 55.91 kB / 1.041 GB, free: 54.79 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001457/2.11, allocations: 114.1 kB / 1.042 GB, free: 54.77 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00266/2.113, allocations: 1.926 MB / 1.043 GB, free: 54.1 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/2.124, allocations: 7.675 MB / 1.051 GB, free: 49.15 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/2.125, allocations: 1.145 MB / 1.052 GB, free: 48.72 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009283/2.126, allocations: 0.7417 MB / 1.053 GB, free: 48.43 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004353/2.131, allocations: 3.478 MB / 1.056 GB, free: 46.12 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/2.131, allocations: 47.34 kB / 1.056 GB, free: 46.08 MB / 458.7 MB Notification: Performance of pre-optimization done (n=119): time 2.635e-06/2.131, allocations: 0 / 1.056 GB, free: 46.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=134): time 0.008702/2.14, allocations: 4.117 MB / 1.06 GB, free: 43.93 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.91e-05/2.14, allocations: 172.5 kB / 1.06 GB, free: 43.74 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001607/2.141, allocations: 1.242 MB / 1.062 GB, free: 43.13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/2.141, allocations: 61.38 kB / 1.062 GB, free: 43.07 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004341/2.142, allocations: 0.7024 MB / 1.062 GB, free: 42.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003082/2.142, allocations: 471.8 kB / 1.063 GB, free: 42.06 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.202e-05/2.142, allocations: 34.56 kB / 1.063 GB, free: 42.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.508e-05/2.142, allocations: 372.1 kB / 1.063 GB, free: 41.68 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001002/2.143, allocations: 0.737 MB / 1.064 GB, free: 41.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/2.145, allocations: 1.147 MB / 1.065 GB, free: 40.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/2.146, allocations: 0.8614 MB / 1.066 GB, free: 40.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.583e-06/2.146, allocations: 6.062 kB / 1.066 GB, free: 40.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.003304/2.149, allocations: 2.358 MB / 1.068 GB, free: 37.78 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007107/2.15, allocations: 4.336 MB / 1.072 GB, free: 33.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/2.15, allocations: 12 kB / 1.072 GB, free: 33.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005002/2.155, allocations: 0.9318 MB / 1.073 GB, free: 32.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/2.156, allocations: 347.4 kB / 1.074 GB, free: 31.93 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002043/2.158, allocations: 2.904 MB / 1.077 GB, free: 28.92 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001652/2.16, allocations: 127.9 kB / 1.077 GB, free: 28.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001544/2.16, allocations: 83.97 kB / 1.077 GB, free: 28.71 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/2.16, allocations: 5.406 kB / 1.077 GB, free: 28.71 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002879/2.163, allocations: 2.069 MB / 1.079 GB, free: 26.63 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.661e-05/2.163, allocations: 12 kB / 1.079 GB, free: 26.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003878/2.167, allocations: 0.6748 MB / 1.079 GB, free: 25.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001442/2.168, allocations: 355.4 kB / 1.08 GB, free: 25.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001585/2.17, allocations: 2.662 MB / 1.082 GB, free: 22.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/2.171, allocations: 123.9 kB / 1.082 GB, free: 22.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/2.172, allocations: 75.97 kB / 1.083 GB, free: 22.63 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0005254/2.172, allocations: 223.2 kB / 1.083 GB, free: 22.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000276/2.172, allocations: 173.9 kB / 1.083 GB, free: 22.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004097/2.177, allocations: 2.329 MB / 1.085 GB, free: 19.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/2.177, allocations: 16 kB / 1.085 GB, free: 19.89 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/2.177, allocations: 4 kB / 1.085 GB, free: 19.88 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/2.177, allocations: 7.969 kB / 1.085 GB, free: 19.88 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005634/2.182, allocations: 3.983 MB / 1.089 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.447e-06/2.182, allocations: 3.953 kB / 1.089 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009421/2.183, allocations: 239.6 kB / 1.089 GB, free: 15.59 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003553/2.187, allocations: 0.8699 MB / 1.09 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/2.187, allocations: 47.91 kB / 1.09 GB, free: 14.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/2.189, allocations: 2.832 MB / 1.093 GB, free: 11.73 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/2.189, allocations: 4.031 kB / 1.093 GB, free: 11.73 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004057/2.193, allocations: 3.206 MB / 1.096 GB, free: 8.438 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006848/2.193, allocations: 274.8 kB / 1.096 GB, free: 8.148 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002384/2.194, allocations: 39.98 kB / 1.096 GB, free: 8.109 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/2.195, allocations: 111.8 kB / 1.097 GB, free: 8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002621/2.195, allocations: 145 kB / 1.097 GB, free: 7.859 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/2.195, allocations: 63.95 kB / 1.097 GB, free: 7.797 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001214/2.196, allocations: 0.9579 MB / 1.098 GB, free: 6.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.91e-07/2.196, allocations: 3.938 kB / 1.098 GB, free: 6.836 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003979/2.2, allocations: 1.397 MB / 1.099 GB, free: 5.438 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.007006/2.207, allocations: 5.298 MB / 1.104 GB, free: 204 kB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.3098/2.517, allocations: 3.022 MB / 1.107 GB, free: 56.76 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/2.517, allocations: 4 kB / 1.107 GB, free: 56.76 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/2.519, allocations: 1.049 MB / 1.108 GB, free: 56.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004141/2.523, allocations: 0.7435 MB / 1.109 GB, free: 56.74 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00795/2.531, allocations: 3.529 MB / 1.112 GB, free: 56.09 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008113/2.532, allocations: 1.44 MB / 1.114 GB, free: 55.37 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003023/2.535, allocations: 0.8293 MB / 1.115 GB, free: 55.35 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008132/2.536, allocations: 0.6327 MB / 1.115 GB, free: 55.34 MB / 458.7 MB Notification: Performance of SimCode: time 1.513e-06/2.536, allocations: 7.391 kB / 1.115 GB, free: 55.34 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1185/2.654, allocations: 67.29 MB / 1.181 GB, free: 52.14 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/2.655, allocations: 232.8 kB / 1.181 GB, free: 51.83 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.388/7.043, allocations: 4 kB / 1.181 GB, free: 51.83 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat