Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.9627/0.9627, 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.001716/0.001716, allocations: 163.4 kB / 144 MB, free: 4.832 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.787e-05/1.79e-05, allocations: 7.984 kB / 173.9 MB, free: 22.79 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04788/0.04791, allocations: 25.18 MB / 199 MB, free: 13.69 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6372/0.6852, allocations: 237.6 MB / 436.6 MB, free: 82.54 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002185/0.6854, allocations: 73.53 kB / 436.7 MB, free: 82.54 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5232/1.209, allocations: 175.8 MB / 0.5982 GB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.823e-06/1.209, allocations: 0 / 0.5982 GB, free: 14.05 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0001545/1.209, allocations: 22.42 kB / 0.5982 GB, free: 14.03 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: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.003697/1.213, allocations: 1.22 MB / 0.5994 GB, free: 12.77 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/1.213, allocations: 8.031 kB / 0.5994 GB, free: 12.77 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000522/1.213, allocations: 102.9 kB / 0.5995 GB, free: 12.66 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001693/1.215, allocations: 0.7465 MB / 0.6002 GB, free: 11.89 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.877e-05/1.215, allocations: 24 kB / 0.6003 GB, free: 11.87 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001648/1.215, allocations: 32.52 kB / 0.6003 GB, free: 11.84 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00123/1.216, allocations: 0.7834 MB / 0.6011 GB, free: 11.05 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/1.218, allocations: 0.8951 MB / 0.6019 GB, free: 10.1 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/1.218, allocations: 3.938 kB / 0.6019 GB, free: 10.1 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.514e-05/1.218, allocations: 4 kB / 0.6019 GB, free: 10.09 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.987e-05/1.218, allocations: 61.27 kB / 0.602 GB, free: 10.03 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005024/1.223, allocations: 4.26 MB / 0.6062 GB, free: 5.492 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006514/1.224, allocations: 0.4963 MB / 0.6067 GB, free: 4.988 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/1.224, allocations: 281.7 kB / 0.6069 GB, free: 4.715 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001895/1.226, allocations: 1.977 MB / 0.6089 GB, free: 2.52 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/1.226, allocations: 38.89 kB / 0.6089 GB, free: 2.473 MB / 234.7 MB Notification: Performance of pre-optimization done (n=40): time 2.305e-06/1.226, allocations: 0 / 0.6089 GB, free: 2.473 MB / 234.7 MB Notification: Performance of matching and sorting (n=44): time 0.00481/1.231, allocations: 1.644 MB / 0.6105 GB, free: 0.7656 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/1.231, allocations: 162.2 kB / 0.6106 GB, free: 0.5703 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1575/1.388, allocations: 0.5754 MB / 0.6112 GB, free: 27.71 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002313/1.388, allocations: 28.33 kB / 0.6112 GB, free: 27.68 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005753/1.389, allocations: 493.5 kB / 0.6117 GB, free: 27.57 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/1.389, allocations: 156.8 kB / 0.6119 GB, free: 27.5 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.641e-05/1.389, allocations: 0 / 0.6119 GB, free: 27.5 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001538/1.389, allocations: 386 kB / 0.6122 GB, free: 27.19 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004232/1.39, allocations: 253.9 kB / 0.6125 GB, free: 27.19 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005956/1.39, allocations: 0.5969 MB / 0.613 GB, free: 26.75 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001424/1.392, allocations: 473.6 kB / 0.6135 GB, free: 26.75 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/1.392, allocations: 5.281 kB / 0.6135 GB, free: 26.75 MB / 234.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002445/1.394, allocations: 1.045 MB / 0.6145 GB, free: 26.64 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/1.394, allocations: 9.906 kB / 0.6145 GB, free: 26.64 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/1.394, allocations: 11 kB / 0.6145 GB, free: 26.64 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005453/1.395, allocations: 151.6 kB / 0.6147 GB, free: 26.63 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006367/1.396, allocations: 180.9 kB / 0.6149 GB, free: 26.63 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/1.397, allocations: 1.433 MB / 0.6163 GB, free: 25.59 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008351/1.398, allocations: 49.42 kB / 0.6163 GB, free: 25.59 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.457e-05/1.398, allocations: 44.86 kB / 0.6164 GB, free: 25.59 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: 51 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002747/1.399, allocations: 151.6 kB / 0.6165 GB, free: 25.48 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/1.399, allocations: 78.98 kB / 0.6166 GB, free: 25.44 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00225/1.401, allocations: 0.7761 MB / 0.6173 GB, free: 25.36 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/1.401, allocations: 8.828 kB / 0.6173 GB, free: 25.36 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/1.401, allocations: 5.188 kB / 0.6173 GB, free: 25.36 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/1.401, allocations: 5.359 kB / 0.6174 GB, free: 25.36 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002814/1.404, allocations: 1.447 MB / 0.6188 GB, free: 25.05 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/1.404, allocations: 3.875 kB / 0.6188 GB, free: 25.05 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003727/1.404, allocations: 80.56 kB / 0.6188 GB, free: 25.05 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005945/1.405, allocations: 146.6 kB / 0.619 GB, free: 25.04 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.948e-05/1.405, allocations: 8.406 kB / 0.619 GB, free: 25.04 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/1.406, allocations: 1.376 MB / 0.6203 GB, free: 23.99 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.406, allocations: 3.406 kB / 0.6203 GB, free: 23.99 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/1.408, allocations: 1.09 MB / 0.6214 GB, free: 23.73 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/1.409, allocations: 160.1 kB / 0.6216 GB, free: 23.6 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001541/1.409, allocations: 3.453 kB / 0.6216 GB, free: 23.6 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004945/1.409, allocations: 30.72 kB / 0.6216 GB, free: 23.6 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/1.409, allocations: 48.02 kB / 0.6216 GB, free: 23.6 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.148e-05/1.41, allocations: 18.81 kB / 0.6217 GB, free: 23.6 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0005359/1.41, allocations: 447 kB / 0.6221 GB, free: 23.5 MB / 234.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.41, allocations: 0 / 0.6221 GB, free: 23.5 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001836/1.412, allocations: 0.4979 MB / 0.6226 GB, free: 23.5 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (42): * Single equations (assignments): 40 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001802/1.414, allocations: 0.6871 MB / 0.6232 GB, free: 23.4 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001116/1.415, allocations: 0.6309 MB / 0.6239 GB, free: 23.4 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/1.415, allocations: 2.219 kB / 0.6239 GB, free: 23.4 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004644/1.415, allocations: 285.7 kB / 0.6241 GB, free: 23.39 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001601/1.417, allocations: 328.9 kB / 0.6244 GB, free: 23.38 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/1.419, allocations: 1.245 MB / 0.6257 GB, free: 23.07 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/1.42, allocations: 1.046 MB / 0.6267 GB, free: 22.36 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0008133/1.421, allocations: 228.4 kB / 0.6269 GB, free: 22.35 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001678/1.421, allocations: 69.94 kB / 0.627 GB, free: 22.34 MB / 234.7 MB Notification: Performance of SimCode: time 6.51e-07/1.421, allocations: 0 / 0.627 GB, free: 22.34 MB / 234.7 MB Notification: Performance of Templates: time 0.02815/1.449, allocations: 17.53 MB / 0.6441 GB, free: 21.21 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & ./Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)