Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_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.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001807/0.001807, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.401/1.401, allocations: 194.3 MB / 203.1 MB, free: 9.258 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001646/0.001646, allocations: 122.2 kB / 248.1 MB, free: 6.363 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.915e-05/1.899e-05, allocations: 4 kB / 298.1 MB, free: 8.234 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0875/0.08754, allocations: 44.49 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.693/0.7806, allocations: 320.8 MB / 0.6478 GB, free: 7.242 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.7809, allocations: 94 kB / 0.6479 GB, free: 7.195 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4877/1.269, allocations: 140.5 MB / 0.7851 GB, free: 30.09 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.913e-06/1.269, allocations: 0 / 0.7851 GB, free: 30.09 MB / 395.1 MB Notification: Performance of Transformations before backend: time 9.006e-05/1.269, allocations: 19.91 kB / 0.7851 GB, free: 30.08 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002949/1.272, allocations: 1.073 MB / 0.7862 GB, free: 28.96 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/1.272, allocations: 8.031 kB / 0.7862 GB, free: 28.95 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006352/1.272, allocations: 98.95 kB / 0.7863 GB, free: 28.85 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001627/1.274, allocations: 0.6508 MB / 0.7869 GB, free: 28.18 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.651e-05/1.274, allocations: 76.72 kB / 0.787 GB, free: 28.09 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001488/1.274, allocations: 28 kB / 0.787 GB, free: 28.06 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00105/1.275, allocations: 0.5959 MB / 0.7876 GB, free: 27.47 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/1.277, allocations: 0.7256 MB / 0.7883 GB, free: 26.69 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.371e-05/1.277, allocations: 4 kB / 0.7883 GB, free: 26.68 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.779e-05/1.277, allocations: 3.938 kB / 0.7883 GB, free: 26.68 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.056e-05/1.277, allocations: 45.28 kB / 0.7883 GB, free: 26.64 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004339/1.281, allocations: 3.323 MB / 0.7916 GB, free: 23.14 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/1.282, allocations: 379.3 kB / 0.7919 GB, free: 22.75 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/1.282, allocations: 233.1 kB / 0.7922 GB, free: 22.52 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001508/1.283, allocations: 1.323 MB / 0.7935 GB, free: 21.07 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003562/1.284, allocations: 288.4 kB / 0.7937 GB, free: 20.77 MB / 395.1 MB Notification: Performance of pre-optimization done (n=35): time 2.084e-06/1.284, allocations: 0 / 0.7937 GB, free: 20.77 MB / 395.1 MB Notification: Performance of matching and sorting (n=40): time 0.003057/1.287, allocations: 1.308 MB / 0.795 GB, free: 19.41 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.821e-05/1.287, allocations: 162.5 kB / 0.7952 GB, free: 19.21 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006339/1.288, allocations: 0.5269 MB / 0.7957 GB, free: 18.68 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.605e-05/1.288, allocations: 29.7 kB / 0.7957 GB, free: 18.64 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/1.288, allocations: 419.1 kB / 0.7961 GB, free: 18.22 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001044/1.288, allocations: 134.1 kB / 0.7962 GB, free: 18.09 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/1.288, allocations: 4 kB / 0.7962 GB, free: 18.09 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/1.288, allocations: 386.7 kB / 0.7966 GB, free: 17.7 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003729/1.289, allocations: 237.5 kB / 0.7968 GB, free: 17.47 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003914/1.289, allocations: 0.5122 MB / 0.7973 GB, free: 16.82 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00306/1.292, allocations: 0.7586 MB / 0.7981 GB, free: 16.06 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/1.292, allocations: 0 / 0.7981 GB, free: 16.06 MB / 395.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003878/1.296, allocations: 1.289 MB / 0.7993 GB, free: 14.77 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006951/1.297, allocations: 3.519 MB / 0.8028 GB, free: 10.97 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/1.297, allocations: 8 kB / 0.8028 GB, free: 10.96 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004016/1.297, allocations: 116.8 kB / 0.8029 GB, free: 10.84 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004903/1.298, allocations: 147.8 kB / 0.803 GB, free: 10.7 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006655/1.298, allocations: 0.7122 MB / 0.8037 GB, free: 9.961 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006652/1.299, allocations: 31.92 kB / 0.8038 GB, free: 9.93 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.281e-05/1.299, allocations: 44.05 kB / 0.8038 GB, free: 9.887 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/1.299, allocations: 4 kB / 0.8038 GB, free: 9.883 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003721/1.303, allocations: 1.182 MB / 0.805 GB, free: 8.695 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/1.303, allocations: 11.94 kB / 0.805 GB, free: 8.684 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003222/1.303, allocations: 104.8 kB / 0.8051 GB, free: 8.578 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004522/1.304, allocations: 151.7 kB / 0.8052 GB, free: 8.43 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004123/1.304, allocations: 0.6655 MB / 0.8059 GB, free: 7.738 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005918/1.305, allocations: 31.97 kB / 0.8059 GB, free: 7.707 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.687e-05/1.305, allocations: 44 kB / 0.8059 GB, free: 7.664 MB / 395.1 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: 11 ($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,timeTable.nextEventScaled) * 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.0002736/1.305, allocations: 184.4 kB / 0.8061 GB, free: 7.473 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/1.305, allocations: 75.06 kB / 0.8062 GB, free: 7.398 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001319/1.306, allocations: 0.5962 MB / 0.8068 GB, free: 6.793 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/1.306, allocations: 7.953 kB / 0.8068 GB, free: 6.785 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.306, allocations: 0 / 0.8068 GB, free: 6.785 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/1.306, allocations: 0 / 0.8068 GB, free: 6.785 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/1.309, allocations: 1.227 MB / 0.808 GB, free: 5.516 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/1.309, allocations: 0 / 0.808 GB, free: 5.516 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002788/1.309, allocations: 59.91 kB / 0.808 GB, free: 5.457 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003177/1.309, allocations: 104.8 kB / 0.8081 GB, free: 5.352 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.112e-05/1.309, allocations: 11.98 kB / 0.8081 GB, free: 5.34 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006262/1.31, allocations: 0.6694 MB / 0.8088 GB, free: 4.645 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/1.31, allocations: 7.969 kB / 0.8088 GB, free: 4.637 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/1.311, allocations: 0.9412 MB / 0.8097 GB, free: 3.668 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/1.311, allocations: 148.2 kB / 0.8099 GB, free: 3.504 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/1.312, allocations: 4 kB / 0.8099 GB, free: 3.5 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003844/1.312, allocations: 28.03 kB / 0.8099 GB, free: 3.473 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.067e-05/1.312, allocations: 35.95 kB / 0.8099 GB, free: 3.438 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/1.312, allocations: 23.98 kB / 0.8099 GB, free: 3.414 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0004269/1.313, allocations: 399.1 kB / 0.8103 GB, free: 3.027 MB / 395.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.313, allocations: 0 / 0.8103 GB, free: 3.027 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001858/1.314, allocations: 0.523 MB / 0.8108 GB, free: 2.504 MB / 395.1 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: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,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.001627/1.316, allocations: 0.584 MB / 0.8114 GB, free: 1.945 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/1.318, allocations: 1.079 MB / 0.8125 GB, free: 0.8438 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/1.318, allocations: 4.062 kB / 0.8125 GB, free: 0.8398 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004125/1.318, allocations: 315.5 kB / 0.8128 GB, free: 0.5195 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/1.319, allocations: 230.8 kB / 0.813 GB, free: 308 kB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2024/1.522, allocations: 1.06 MB / 0.814 GB, free: 74.75 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/1.522, allocations: 0.984 MB / 0.815 GB, free: 74.04 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.001034/1.523, allocations: 261.9 kB / 0.8152 GB, free: 74.04 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/1.523, allocations: 44.22 kB / 0.8153 GB, free: 74.04 MB / 395.1 MB Notification: Performance of SimCode: time 7.12e-07/1.523, allocations: 2.875 kB / 0.8153 GB, free: 74.04 MB / 395.1 MB Notification: Performance of Templates: time 0.02383/1.547, allocations: 15.2 MB / 0.8301 GB, free: 73.71 MB / 395.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.pipe 2>&1)