Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001028/0.001028, allocations: 171.3 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.279/1.279, allocations: 170.6 MB / 178.7 MB, free: 15.66 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001531/0.001531, allocations: 107.5 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.767e-05/1.769e-05, allocations: 0 / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.072/0.07203, allocations: 38.78 MB / 301 MB, free: 3.633 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8335/0.9056, allocations: 315.4 MB / 0.6019 GB, free: 123.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.9059, allocations: 87.92 kB / 0.602 GB, free: 123.8 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4656/1.371, allocations: 140.4 MB / 0.7391 GB, free: 68.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.371, allocations: 0 / 0.7391 GB, free: 68.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.52e-05/1.372, allocations: 18.47 kB / 0.7391 GB, free: 68.25 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002451/1.374, allocations: 1.073 MB / 0.7402 GB, free: 67.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/1.374, allocations: 7.531 kB / 0.7402 GB, free: 67.7 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005094/1.375, allocations: 92.94 kB / 0.7403 GB, free: 67.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/1.376, allocations: 0.6352 MB / 0.7409 GB, free: 67.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.784e-05/1.376, allocations: 81.02 kB / 0.741 GB, free: 67.35 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/1.376, allocations: 32.53 kB / 0.741 GB, free: 67.35 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009333/1.377, allocations: 0.5832 MB / 0.7416 GB, free: 67.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/1.378, allocations: 0.7237 MB / 0.7423 GB, free: 67.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/1.378, allocations: 3.938 kB / 0.7423 GB, free: 67.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.374e-05/1.378, allocations: 6.438 kB / 0.7423 GB, free: 67.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.488e-05/1.378, allocations: 41.12 kB / 0.7423 GB, free: 67.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004224/1.383, allocations: 3.294 MB / 0.7456 GB, free: 65.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005217/1.383, allocations: 385.1 kB / 0.7459 GB, free: 65.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002677/1.383, allocations: 222.2 kB / 0.7461 GB, free: 65.26 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001516/1.385, allocations: 1.323 MB / 0.7474 GB, free: 64.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003451/1.385, allocations: 276.3 kB / 0.7477 GB, free: 64.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 2.285e-06/1.385, allocations: 0 / 0.7477 GB, free: 64.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.002967/1.388, allocations: 1.374 MB / 0.749 GB, free: 63.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.605e-05/1.388, allocations: 157.5 kB / 0.7492 GB, free: 63.74 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005974/1.389, allocations: 0.5341 MB / 0.7497 GB, free: 63.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.547e-05/1.389, allocations: 29.42 kB / 0.7497 GB, free: 63.58 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002253/1.389, allocations: 428 kB / 0.7501 GB, free: 63.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.253e-05/1.389, allocations: 118.2 kB / 0.7503 GB, free: 63.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/1.389, allocations: 0 / 0.7503 GB, free: 63.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.571e-05/1.39, allocations: 381.2 kB / 0.7506 GB, free: 62.99 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003086/1.39, allocations: 227.9 kB / 0.7508 GB, free: 62.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003892/1.39, allocations: 0.5054 MB / 0.7513 GB, free: 62.64 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00296/1.393, allocations: 0.7603 MB / 0.7521 GB, free: 62.64 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/1.393, allocations: 6.688 kB / 0.7521 GB, free: 62.64 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004064/1.397, allocations: 1.331 MB / 0.7534 GB, free: 62.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009263/1.398, allocations: 3.512 MB / 0.7568 GB, free: 58.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.625e-05/1.398, allocations: 14.98 kB / 0.7568 GB, free: 58.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004541/1.399, allocations: 108.3 kB / 0.7569 GB, free: 58.88 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005057/1.399, allocations: 149 kB / 0.7571 GB, free: 58.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006456/1.4, allocations: 0.7051 MB / 0.7578 GB, free: 58.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006558/1.401, allocations: 39.84 kB / 0.7578 GB, free: 58.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/1.401, allocations: 40.06 kB / 0.7578 GB, free: 58.36 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/1.401, allocations: 7.656 kB / 0.7578 GB, free: 58.36 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003694/1.404, allocations: 1.225 MB / 0.759 GB, free: 58.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/1.404, allocations: 7.875 kB / 0.759 GB, free: 58.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003024/1.405, allocations: 116.7 kB / 0.7592 GB, free: 58.33 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004563/1.405, allocations: 146.4 kB / 0.7593 GB, free: 58.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004093/1.406, allocations: 0.6553 MB / 0.7599 GB, free: 57.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005551/1.406, allocations: 33.44 kB / 0.76 GB, free: 57.81 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.444e-05/1.406, allocations: 39.94 kB / 0.76 GB, free: 57.81 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.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: 40 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002758/1.407, allocations: 186.6 kB / 0.7602 GB, free: 57.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/1.407, allocations: 75.25 kB / 0.7603 GB, free: 57.62 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001299/1.408, allocations: 0.6366 MB / 0.7609 GB, free: 57.55 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-06/1.408, allocations: 3.375 kB / 0.7609 GB, free: 57.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/1.408, allocations: 3.25 kB / 0.7609 GB, free: 57.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/1.408, allocations: 2.625 kB / 0.7609 GB, free: 57.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001922/1.41, allocations: 1.257 MB / 0.7621 GB, free: 57.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/1.41, allocations: 0 / 0.7621 GB, free: 57.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/1.41, allocations: 60.38 kB / 0.7622 GB, free: 57.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003089/1.411, allocations: 106.5 kB / 0.7623 GB, free: 57.26 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.75e-05/1.411, allocations: 10.92 kB / 0.7623 GB, free: 57.26 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004988/1.411, allocations: 0.6799 MB / 0.763 GB, free: 56.74 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.411, allocations: 2.719 kB / 0.763 GB, free: 56.74 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/1.412, allocations: 0.9671 MB / 0.7639 GB, free: 56.53 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001569/1.413, allocations: 142.9 kB / 0.764 GB, free: 56.4 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/1.413, allocations: 11.28 kB / 0.764 GB, free: 56.4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003934/1.413, allocations: 26.23 kB / 0.7641 GB, free: 56.4 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.275e-05/1.413, allocations: 34.48 kB / 0.7641 GB, free: 56.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.151e-05/1.413, allocations: 23.36 kB / 0.7641 GB, free: 56.4 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000411/1.414, allocations: 403.6 kB / 0.7645 GB, free: 56.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.414, allocations: 0 / 0.7645 GB, free: 56.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001724/1.415, allocations: 0.5176 MB / 0.765 GB, free: 56.22 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 7 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 7 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.00149/1.417, allocations: 0.5818 MB / 0.7656 GB, free: 56.04 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001471/1.418, allocations: 1.028 MB / 0.7666 GB, free: 55.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/1.418, allocations: 0 / 0.7666 GB, free: 55.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003863/1.419, allocations: 284.2 kB / 0.7669 GB, free: 55.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/1.42, allocations: 228.7 kB / 0.7671 GB, free: 55.83 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/1.422, allocations: 1.062 MB / 0.7681 GB, free: 55.55 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003912/1.422, allocations: 0.9807 MB / 0.7691 GB, free: 54.84 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009181/1.423, allocations: 264.8 kB / 0.7693 GB, free: 54.83 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001099/1.423, allocations: 51.5 kB / 0.7694 GB, free: 54.82 MB / 346.7 MB Notification: Performance of SimCode: time 3.7e-07/1.423, allocations: 3.375 kB / 0.7694 GB, free: 54.82 MB / 346.7 MB Notification: Performance of Templates: time 0.0225/1.446, allocations: 15.01 MB / 0.784 GB, free: 53.81 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)