Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002264/0.002264, allocations: 197 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.488/1.488, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008566/0.0008566, allocations: 87.28 kB / 292.1 MB, free: 6 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.42e-05, allocations: 8 kB / 350.6 MB, free: 2.449 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.121/0.121, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9328/1.054, allocations: 325.5 MB / 0.7106 GB, free: 23.51 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002349/1.054, allocations: 91.56 kB / 0.7107 GB, free: 23.46 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.135/2.189, allocations: 286.5 MB / 0.9904 GB, free: 60.82 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.553e-06/2.189, allocations: 0 / 0.9904 GB, free: 60.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001507/2.19, allocations: 42.38 kB / 0.9905 GB, free: 60.81 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.005025/2.195, allocations: 1.795 MB / 0.9922 GB, free: 59.96 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/2.195, allocations: 10 kB / 0.9923 GB, free: 59.96 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002562/2.195, allocations: 157.9 kB / 0.9924 GB, free: 59.93 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006283/2.196, allocations: 162 kB / 0.9926 GB, free: 59.85 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00229/2.198, allocations: 1.037 MB / 0.9936 GB, free: 59.52 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.572e-05/2.198, allocations: 81.91 kB / 0.9936 GB, free: 59.52 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/2.198, allocations: 95.58 kB / 0.9937 GB, free: 59.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002312/2.2, allocations: 1.605 MB / 0.9953 GB, free: 59.26 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.784e-05/2.2, allocations: 7.625 kB / 0.9953 GB, free: 59.26 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/2.201, allocations: 48.3 kB / 0.9954 GB, free: 59.26 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001173/2.201, allocations: 106.8 kB / 0.9955 GB, free: 59.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002311/2.203, allocations: 1.578 MB / 0.997 GB, free: 59.25 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009879/2.213, allocations: 6.534 MB / 1.003 GB, free: 56.23 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001558/2.215, allocations: 0.9073 MB / 1.004 GB, free: 56.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000805/2.215, allocations: 0.54 MB / 1.005 GB, free: 56.19 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004303/2.22, allocations: 2.915 MB / 1.008 GB, free: 54.71 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.575e-05/2.22, allocations: 47.81 kB / 1.008 GB, free: 54.68 MB / 458.7 MB Notification: Performance of pre-optimization done (n=80): time 3.196e-06/2.22, allocations: 0 / 1.008 GB, free: 54.68 MB / 458.7 MB Notification: Performance of matching and sorting (n=90): time 0.005813/2.226, allocations: 2.821 MB / 1.01 GB, free: 54.1 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/2.226, allocations: 193.8 kB / 1.011 GB, free: 53.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/2.227, allocations: 1.131 MB / 1.012 GB, free: 53.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 9.444e-05/2.227, allocations: 56.88 kB / 1.012 GB, free: 53.67 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003855/2.228, allocations: 0.6422 MB / 1.012 GB, free: 53.39 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/2.228, allocations: 320.8 kB / 1.013 GB, free: 53.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.007e-05/2.228, allocations: 24.28 kB / 1.013 GB, free: 53.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.103e-05/2.228, allocations: 362.5 kB / 1.013 GB, free: 52.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000785/2.229, allocations: 0.5437 MB / 1.014 GB, free: 52.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009105/2.23, allocations: 0.9487 MB / 1.015 GB, free: 52.45 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008367/2.231, allocations: 0.6561 MB / 1.015 GB, free: 52.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/2.231, allocations: 6.188 kB / 1.015 GB, free: 52.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.002597/2.233, allocations: 1.818 MB / 1.017 GB, free: 52.28 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009126/2.234, allocations: 4.385 MB / 1.021 GB, free: 47.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/2.234, allocations: 14.62 kB / 1.021 GB, free: 47.75 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003577/2.238, allocations: 0.6448 MB / 1.022 GB, free: 47.72 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/2.239, allocations: 280.6 kB / 1.022 GB, free: 47.72 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001537/2.24, allocations: 2.171 MB / 1.024 GB, free: 46.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/2.242, allocations: 102.6 kB / 1.024 GB, free: 46.15 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/2.242, allocations: 71.86 kB / 1.024 GB, free: 46.15 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/2.242, allocations: 7.281 kB / 1.024 GB, free: 46.15 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002279/2.244, allocations: 1.595 MB / 1.026 GB, free: 46.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/2.244, allocations: 10.56 kB / 1.026 GB, free: 46.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002899/2.247, allocations: 0.5043 MB / 1.027 GB, free: 46.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009832/2.248, allocations: 288.6 kB / 1.027 GB, free: 46.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001281/2.249, allocations: 2.005 MB / 1.029 GB, free: 44.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/2.251, allocations: 98.41 kB / 1.029 GB, free: 44.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/2.251, allocations: 63.31 kB / 1.029 GB, free: 44.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],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 (163): * Single equations (assignments): 160 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004046/2.251, allocations: 200.1 kB / 1.029 GB, free: 44.37 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002312/2.252, allocations: 141.4 kB / 1.029 GB, free: 44.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002779/2.254, allocations: 1.505 MB / 1.031 GB, free: 44.16 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/2.254, allocations: 11.69 kB / 1.031 GB, free: 44.16 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/2.254, allocations: 0 / 1.031 GB, free: 44.16 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/2.254, allocations: 7.828 kB / 1.031 GB, free: 44.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00417/2.259, allocations: 2.797 MB / 1.033 GB, free: 43.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.513e-06/2.259, allocations: 7.344 kB / 1.033 GB, free: 43.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006433/2.259, allocations: 156.4 kB / 1.034 GB, free: 43.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002683/2.262, allocations: 0.5993 MB / 1.034 GB, free: 43.62 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/2.262, allocations: 22.14 kB / 1.034 GB, free: 43.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/2.264, allocations: 2.122 MB / 1.036 GB, free: 41.82 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/2.264, allocations: 0 / 1.036 GB, free: 41.82 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002813/2.267, allocations: 2.113 MB / 1.038 GB, free: 40.82 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000584/2.267, allocations: 257.3 kB / 1.039 GB, free: 40.62 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/2.267, allocations: 23.91 kB / 1.039 GB, free: 40.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008996/2.268, allocations: 78.09 kB / 1.039 GB, free: 40.59 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/2.269, allocations: 97.12 kB / 1.039 GB, free: 40.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.909e-05/2.269, allocations: 46.34 kB / 1.039 GB, free: 40.56 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001147/2.27, allocations: 0.8764 MB / 1.04 GB, free: 40.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.21e-07/2.27, allocations: 0 / 1.04 GB, free: 40.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003821/2.274, allocations: 1.227 MB / 1.041 GB, free: 39.89 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005904/2.28, allocations: 3.956 MB / 1.045 GB, free: 37.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003875/2.283, allocations: 2.196 MB / 1.047 GB, free: 37.11 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/2.283, allocations: 3.938 kB / 1.047 GB, free: 37.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/2.285, allocations: 0.693 MB / 1.048 GB, free: 36.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/2.288, allocations: 0.5878 MB / 1.048 GB, free: 36.78 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006136/2.294, allocations: 2.762 MB / 1.051 GB, free: 35.65 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006416/2.295, allocations: 1.286 MB / 1.052 GB, free: 34.89 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002245/2.297, allocations: 0.6588 MB / 1.053 GB, free: 34.86 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005851/2.297, allocations: 0.5122 MB / 1.053 GB, free: 34.48 MB / 458.7 MB Notification: Performance of SimCode: time 1.533e-06/2.297, allocations: 0 / 1.053 GB, free: 34.48 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4008/2.698, allocations: 54.49 MB / 1.106 GB, free: 55.34 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001835/2.699, allocations: 236.3 kB / 1.107 GB, free: 55.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.095/6.794, allocations: 0 / 1.107 GB, free: 55.04 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat