Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 1.096/1.096, allocations: 110.8 MB / 118.3 MB, free: 14.51 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00174/0.00174, allocations: 151.4 kB / 144 MB, free: 4.84 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.896e-05/1.898e-05, allocations: 0 / 173.9 MB, free: 22.78 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05439/0.05443, allocations: 25.18 MB / 199 MB, free: 13.69 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6627/0.7171, allocations: 240.7 MB / 439.7 MB, free: 84 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.7174, allocations: 68.56 kB / 439.8 MB, free: 84 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4687/1.186, allocations: 152.9 MB / 0.5788 GB, free: 33.67 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.503e-06/1.186, allocations: 0 / 0.5788 GB, free: 33.67 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.144e-05/1.186, allocations: 22.81 kB / 0.5788 GB, free: 33.65 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002926/1.189, allocations: 1.082 MB / 0.5798 GB, free: 32.54 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/1.189, allocations: 12.03 kB / 0.5799 GB, free: 32.52 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000394/1.19, allocations: 86.97 kB / 0.5799 GB, free: 32.44 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001504/1.191, allocations: 0.6423 MB / 0.5806 GB, free: 31.77 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.627e-05/1.191, allocations: 19.98 kB / 0.5806 GB, free: 31.75 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/1.191, allocations: 36.31 kB / 0.5806 GB, free: 31.71 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00116/1.193, allocations: 0.6624 MB / 0.5813 GB, free: 31.05 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001254/1.194, allocations: 0.7886 MB / 0.582 GB, free: 30.21 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/1.194, allocations: 11.88 kB / 0.582 GB, free: 30.2 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.216e-05/1.194, allocations: 0 / 0.582 GB, free: 30.2 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-05/1.194, allocations: 44.36 kB / 0.5821 GB, free: 30.16 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004561/1.199, allocations: 3.873 MB / 0.5859 GB, free: 26.05 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000648/1.199, allocations: 456.7 kB / 0.5863 GB, free: 25.61 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003085/1.2, allocations: 217.5 kB / 0.5865 GB, free: 25.39 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002783/1.202, allocations: 2.079 MB / 0.5885 GB, free: 23.08 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/1.202, allocations: 34.56 kB / 0.5886 GB, free: 23.04 MB / 234.7 MB Notification: Performance of pre-optimization done (n=37): time 2.766e-06/1.202, allocations: 7.938 kB / 0.5886 GB, free: 23.03 MB / 234.7 MB Notification: Performance of matching and sorting (n=41): time 0.006457/1.209, allocations: 1.66 MB / 0.5902 GB, free: 21.31 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.562e-05/1.209, allocations: 136.5 kB / 0.5903 GB, free: 21.15 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006729/1.21, allocations: 0.4994 MB / 0.5908 GB, free: 20.64 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.112e-05/1.21, allocations: 33.7 kB / 0.5909 GB, free: 20.61 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002892/1.21, allocations: 441.8 kB / 0.5913 GB, free: 20.17 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001067/1.21, allocations: 142 kB / 0.5914 GB, free: 20.03 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/1.21, allocations: 0 / 0.5914 GB, free: 20.03 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/1.21, allocations: 386.7 kB / 0.5918 GB, free: 19.64 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000295/1.211, allocations: 210 kB / 0.592 GB, free: 19.44 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004096/1.211, allocations: 0.5383 MB / 0.5925 GB, free: 18.75 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001735/1.213, allocations: 485.1 kB / 0.593 GB, free: 18.27 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.355e-06/1.213, allocations: 4 kB / 0.593 GB, free: 18.27 MB / 234.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002476/1.215, allocations: 0.9572 MB / 0.5939 GB, free: 17.3 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/1.215, allocations: 12.19 kB / 0.5939 GB, free: 17.29 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/1.215, allocations: 12 kB / 0.5939 GB, free: 17.28 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002481/1.216, allocations: 56.83 kB / 0.594 GB, free: 17.22 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000955/1.217, allocations: 239.6 kB / 0.5942 GB, free: 16.98 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009496/1.218, allocations: 1.267 MB / 0.5954 GB, free: 15.67 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007701/1.218, allocations: 44.03 kB / 0.5955 GB, free: 15.62 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.53e-05/1.218, allocations: 47.98 kB / 0.5955 GB, free: 15.58 MB / 234.7 MB Warning: Assuming fixed start value for the following 2 variables: tank1.level:VARIABLE(min = 0.0 start = tank1.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank1.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (97): * Single equations (assignments): 95 * 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: 1 * 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: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002599/1.219, allocations: 152.3 kB / 0.5957 GB, free: 15.43 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/1.219, allocations: 75.11 kB / 0.5958 GB, free: 15.35 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/1.221, allocations: 0.7753 MB / 0.5965 GB, free: 14.57 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/1.221, allocations: 7.609 kB / 0.5965 GB, free: 14.56 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/1.221, allocations: 4 kB / 0.5965 GB, free: 14.56 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/1.221, allocations: 3.984 kB / 0.5965 GB, free: 14.55 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00276/1.224, allocations: 1.364 MB / 0.5979 GB, free: 13.15 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/1.224, allocations: 8.031 kB / 0.5979 GB, free: 13.14 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006505/1.224, allocations: 139.8 kB / 0.598 GB, free: 13 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001514/1.225, allocations: 36.84 kB / 0.598 GB, free: 12.96 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.041e-05/1.225, allocations: 7.984 kB / 0.598 GB, free: 12.96 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007149/1.225, allocations: 1.212 MB / 0.5992 GB, free: 11.7 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/1.225, allocations: 4.031 kB / 0.5992 GB, free: 11.69 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/1.227, allocations: 1.039 MB / 0.6002 GB, free: 10.6 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002258/1.227, allocations: 148.1 kB / 0.6004 GB, free: 10.44 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001539/1.227, allocations: 16.05 kB / 0.6004 GB, free: 10.42 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005058/1.228, allocations: 23.92 kB / 0.6004 GB, free: 10.4 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/1.228, allocations: 56.36 kB / 0.6005 GB, free: 10.34 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.076e-05/1.228, allocations: 23.94 kB / 0.6005 GB, free: 10.32 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0004384/1.229, allocations: 387.1 kB / 0.6009 GB, free: 9.949 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.229, allocations: 0 / 0.6009 GB, free: 9.949 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.00167/1.23, allocations: 427.5 kB / 0.6013 GB, free: 9.531 MB / 234.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[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * 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: 1 * 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: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001696/1.232, allocations: 0.5829 MB / 0.6018 GB, free: 8.992 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001249/1.233, allocations: 0.5957 MB / 0.6024 GB, free: 8.402 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/1.233, allocations: 5.062 kB / 0.6024 GB, free: 8.398 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006055/1.234, allocations: 313.7 kB / 0.6027 GB, free: 8.094 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/1.235, allocations: 290.4 kB / 0.603 GB, free: 7.82 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/1.238, allocations: 1.088 MB / 0.6041 GB, free: 6.699 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004228/1.238, allocations: 1.006 MB / 0.6051 GB, free: 5.664 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0008213/1.239, allocations: 226.2 kB / 0.6053 GB, free: 5.445 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/1.239, allocations: 79.34 kB / 0.6053 GB, free: 5.367 MB / 234.7 MB Notification: Performance of SimCode: time 4.01e-07/1.239, allocations: 0 / 0.6053 GB, free: 5.367 MB / 234.7 MB Notification: Performance of Templates: time 0.1715/1.411, allocations: 15.3 MB / 0.6203 GB, free: 33.25 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)