Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.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.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.00135/0.00135, allocations: 169.8 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.262/1.262, allocations: 170.6 MB / 183.8 MB, free: 11.49 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.001556/0.001556, allocations: 99.52 kB / 223.2 MB, free: 4.113 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.592e-05/2.596e-05, allocations: 4 kB / 268.9 MB, free: 20.92 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08176/0.0818, allocations: 38.77 MB / 307.6 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6129/0.6947, allocations: 311.9 MB / 0.605 GB, free: 6.922 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.695, allocations: 83.08 kB / 0.605 GB, free: 6.879 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4142/1.109, allocations: 135.8 MB / 0.7376 GB, free: 26.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.91e-07/1.109, allocations: 0 / 0.7376 GB, free: 26.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.78e-05/1.109, allocations: 16 kB / 0.7377 GB, free: 26.61 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001924/1.111, allocations: 1.034 MB / 0.7387 GB, free: 25.53 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/1.111, allocations: 8.031 kB / 0.7387 GB, free: 25.52 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002592/1.112, allocations: 83.14 kB / 0.7388 GB, free: 25.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009196/1.112, allocations: 0.5793 MB / 0.7393 GB, free: 24.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.26e-05/1.113, allocations: 36.98 kB / 0.7394 GB, free: 24.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.83e-05/1.113, allocations: 48 kB / 0.7394 GB, free: 24.74 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009593/1.114, allocations: 0.7187 MB / 0.7401 GB, free: 23.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/1.114, allocations: 3.984 kB / 0.7401 GB, free: 23.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.176e-05/1.114, allocations: 19.98 kB / 0.7401 GB, free: 23.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.966e-05/1.114, allocations: 44.92 kB / 0.7402 GB, free: 23.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008597/1.115, allocations: 0.6715 MB / 0.7408 GB, free: 23.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003422/1.118, allocations: 2.868 MB / 0.7436 GB, free: 20.2 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005612/1.119, allocations: 460.5 kB / 0.7441 GB, free: 19.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/1.119, allocations: 254.1 kB / 0.7443 GB, free: 19.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002443/1.119, allocations: 341.3 kB / 0.7446 GB, free: 19.07 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/1.119, allocations: 46.95 kB / 0.7447 GB, free: 19.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 2.544e-06/1.119, allocations: 0 / 0.7447 GB, free: 19.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.00337/1.123, allocations: 1.82 MB / 0.7465 GB, free: 17.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.269e-05/1.123, allocations: 93.61 kB / 0.7465 GB, free: 17.03 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005255/1.123, allocations: 0.5345 MB / 0.7471 GB, free: 16.49 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.756e-05/1.123, allocations: 45.64 kB / 0.7471 GB, free: 16.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/1.123, allocations: 328.5 kB / 0.7474 GB, free: 16.12 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/1.123, allocations: 205.1 kB / 0.7476 GB, free: 15.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/1.124, allocations: 16 kB / 0.7476 GB, free: 15.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.493e-05/1.124, allocations: 378.8 kB / 0.748 GB, free: 15.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003562/1.124, allocations: 277.5 kB / 0.7483 GB, free: 15.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004017/1.124, allocations: 439.1 kB / 0.7487 GB, free: 14.75 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003966/1.125, allocations: 333.9 kB / 0.749 GB, free: 14.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/1.125, allocations: 0 / 0.749 GB, free: 14.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001114/1.126, allocations: 0.9217 MB / 0.7499 GB, free: 13.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003085/1.126, allocations: 1.749 MB / 0.7516 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/1.126, allocations: 4 kB / 0.7516 GB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001841/1.128, allocations: 348.5 kB / 0.7519 GB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/1.129, allocations: 151.7 kB / 0.7521 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006336/1.129, allocations: 0.8099 MB / 0.7529 GB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005047/1.13, allocations: 47.81 kB / 0.7529 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.637e-05/1.13, allocations: 35.98 kB / 0.753 GB, free: 10.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.726e-06/1.13, allocations: 12.02 kB / 0.753 GB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009677/1.131, allocations: 0.7689 MB / 0.7537 GB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/1.131, allocations: 4.062 kB / 0.7537 GB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001278/1.132, allocations: 228.5 kB / 0.7539 GB, free: 9.184 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005009/1.133, allocations: 155.8 kB / 0.7541 GB, free: 9.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004304/1.133, allocations: 0.6929 MB / 0.7548 GB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004435/1.134, allocations: 51.81 kB / 0.7548 GB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.064e-05/1.134, allocations: 36.06 kB / 0.7549 GB, free: 8.227 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001457/1.134, allocations: 148.8 kB / 0.755 GB, free: 8.074 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.849e-05/1.134, allocations: 79.12 kB / 0.7551 GB, free: 7.996 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/1.135, allocations: 0.8348 MB / 0.7559 GB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/1.135, allocations: 8 kB / 0.7559 GB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/1.135, allocations: 0 / 0.7559 GB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/1.135, allocations: 3.984 kB / 0.7559 GB, free: 7.141 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/1.137, allocations: 1.637 MB / 0.7575 GB, free: 5.434 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/1.137, allocations: 0 / 0.7575 GB, free: 5.434 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004486/1.138, allocations: 119.9 kB / 0.7576 GB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001291/1.139, allocations: 324.5 kB / 0.7579 GB, free: 4.996 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.014e-05/1.139, allocations: 19.98 kB / 0.7579 GB, free: 4.977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005503/1.14, allocations: 0.7981 MB / 0.7587 GB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/1.14, allocations: 0 / 0.7587 GB, free: 4.152 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/1.141, allocations: 1.244 MB / 0.7599 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001314/1.141, allocations: 148.3 kB / 0.7601 GB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.018e-05/1.141, allocations: 15.98 kB / 0.7601 GB, free: 2.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004348/1.142, allocations: 47.83 kB / 0.7601 GB, free: 2.641 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.537e-05/1.142, allocations: 52.47 kB / 0.7602 GB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.826e-05/1.142, allocations: 27.92 kB / 0.7602 GB, free: 2.559 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003987/1.142, allocations: 439.1 kB / 0.7606 GB, free: 2.137 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.142, allocations: 0 / 0.7606 GB, free: 2.137 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001462/1.144, allocations: 0.5854 MB / 0.7612 GB, free: 1.551 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009327/1.145, allocations: 0.5993 MB / 0.7618 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.1535/1.298, allocations: 1.118 MB / 0.7629 GB, free: 76.2 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/1.298, allocations: 1.156 kB / 0.7629 GB, free: 76.2 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007228/1.299, allocations: 373 kB / 0.7632 GB, free: 76.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001763/1.301, allocations: 327.5 kB / 0.7635 GB, free: 76.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002128/1.303, allocations: 1.193 MB / 0.7647 GB, free: 75.93 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/1.303, allocations: 0.9817 MB / 0.7657 GB, free: 75.22 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001091/1.304, allocations: 320.8 kB / 0.766 GB, free: 75.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/1.305, allocations: 57.42 kB / 0.766 GB, free: 75.2 MB / 362.7 MB Notification: Performance of SimCode: time 8.72e-07/1.305, allocations: 1.859 kB / 0.766 GB, free: 75.2 MB / 362.7 MB Notification: Performance of Templates: time 0.03369/1.338, allocations: 20.72 MB / 0.7863 GB, free: 74.43 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.AST_BatchPlant.Test.TwoTanks.pipe 2>&1)