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.01078/0.01079, allocations: 165.6 kB / 15.11 MB, free: 5.973 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.513/1.513, allocations: 170.8 MB / 186.6 MB, free: 1.121 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.001861/0.00186, allocations: 115.3 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003792/0.0003792, allocations: 8 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2907, allocations: 38.76 MB / 312.9 MB, free: 38.86 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7925/1.083, allocations: 311.9 MB / 0.6102 GB, free: 73.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/1.084, allocations: 86.64 kB / 0.6103 GB, free: 73.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5103/1.594, allocations: 136.2 MB / 0.7433 GB, free: 90.24 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.025e-06/1.594, allocations: 0 / 0.7433 GB, free: 90.24 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.57e-05/1.594, allocations: 19.84 kB / 0.7433 GB, free: 90.24 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.003858/1.598, allocations: 1.118 MB / 0.7444 GB, free: 89.37 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.012e-05/1.598, allocations: 11.91 kB / 0.7444 GB, free: 89.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004626/1.598, allocations: 89.73 kB / 0.7445 GB, free: 89.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00174/1.6, allocations: 0.5809 MB / 0.7451 GB, free: 88.87 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.282e-05/1.6, allocations: 41.94 kB / 0.7451 GB, free: 88.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/1.6, allocations: 47.59 kB / 0.7452 GB, free: 88.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/1.602, allocations: 0.7297 MB / 0.7459 GB, free: 88.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.187e-05/1.602, allocations: 3.906 kB / 0.7459 GB, free: 88.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001089/1.603, allocations: 31.41 kB / 0.7459 GB, free: 88.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001028/1.603, allocations: 43.56 kB / 0.746 GB, free: 88.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001788/1.604, allocations: 0.6867 MB / 0.7466 GB, free: 87.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006289/1.611, allocations: 2.843 MB / 0.7494 GB, free: 84.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/1.612, allocations: 472.5 kB / 0.7499 GB, free: 84.22 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003606/1.612, allocations: 340.8 kB / 0.7502 GB, free: 83.81 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.569e-05/1.612, allocations: 39 kB / 0.7502 GB, free: 83.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 5.65e-06/1.612, allocations: 0 / 0.7502 GB, free: 83.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.008303/1.621, allocations: 2.281 MB / 0.7524 GB, free: 81.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.417e-05/1.621, allocations: 85.67 kB / 0.7525 GB, free: 81.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001066/1.622, allocations: 0.55 MB / 0.7531 GB, free: 80.76 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/1.622, allocations: 37.7 kB / 0.7531 GB, free: 80.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002769/1.622, allocations: 332.3 kB / 0.7534 GB, free: 80.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002092/1.623, allocations: 197.1 kB / 0.7536 GB, free: 80.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.455e-05/1.623, allocations: 20 kB / 0.7536 GB, free: 80.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/1.623, allocations: 386.7 kB / 0.754 GB, free: 79.8 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006504/1.623, allocations: 281.8 kB / 0.7543 GB, free: 79.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007995/1.624, allocations: 453 kB / 0.7547 GB, free: 79.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007912/1.625, allocations: 335.1 kB / 0.755 GB, free: 78.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/1.625, allocations: 4 kB / 0.755 GB, free: 78.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002385/1.627, allocations: 0.923 MB / 0.7559 GB, free: 77.75 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004268/1.628, allocations: 1.752 MB / 0.7576 GB, free: 75.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/1.628, allocations: 4 kB / 0.7576 GB, free: 75.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003284/1.631, allocations: 363.1 kB / 0.758 GB, free: 75.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/1.632, allocations: 147.8 kB / 0.7581 GB, free: 75.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/1.634, allocations: 0.8177 MB / 0.7589 GB, free: 74.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/1.635, allocations: 44.05 kB / 0.759 GB, free: 74.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/1.635, allocations: 35.25 kB / 0.759 GB, free: 74.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/1.635, allocations: 7.938 kB / 0.759 GB, free: 74.43 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002047/1.637, allocations: 0.7811 MB / 0.7598 GB, free: 73.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/1.637, allocations: 4 kB / 0.7598 GB, free: 73.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002403/1.639, allocations: 225.2 kB / 0.76 GB, free: 73.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009759/1.64, allocations: 167.7 kB / 0.7601 GB, free: 73.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008224/1.641, allocations: 0.6928 MB / 0.7608 GB, free: 72.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001034/1.642, allocations: 55.88 kB / 0.7609 GB, free: 72.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.767e-05/1.642, allocations: 34.55 kB / 0.7609 GB, free: 72.45 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 () * Number of clocked 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.0007494/1.643, allocations: 316.9 kB / 0.7612 GB, free: 72.13 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/1.643, allocations: 79.11 kB / 0.7613 GB, free: 72.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002261/1.646, allocations: 0.8383 MB / 0.7621 GB, free: 71.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/1.646, allocations: 8 kB / 0.7621 GB, free: 71.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/1.646, allocations: 0 / 0.7621 GB, free: 71.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/1.646, allocations: 3.984 kB / 0.7621 GB, free: 71.19 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003998/1.65, allocations: 1.664 MB / 0.7637 GB, free: 69.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/1.65, allocations: 4 kB / 0.7637 GB, free: 69.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008687/1.651, allocations: 107.9 kB / 0.7638 GB, free: 69.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002458/1.653, allocations: 340.5 kB / 0.7642 GB, free: 69.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.323e-05/1.653, allocations: 19.94 kB / 0.7642 GB, free: 69.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/1.654, allocations: 0.7982 MB / 0.765 GB, free: 68.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-06/1.654, allocations: 11.27 kB / 0.765 GB, free: 68.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002859/1.657, allocations: 1.255 MB / 0.7662 GB, free: 66.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000372/1.658, allocations: 148.3 kB / 0.7663 GB, free: 66.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002419/1.658, allocations: 12 kB / 0.7664 GB, free: 66.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009777/1.659, allocations: 47.84 kB / 0.7664 GB, free: 66.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/1.659, allocations: 56.44 kB / 0.7665 GB, free: 66.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/1.659, allocations: 35.86 kB / 0.7665 GB, free: 66.58 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001033/1.66, allocations: 439 kB / 0.7669 GB, free: 66.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.66, allocations: 0 / 0.7669 GB, free: 66.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003185/1.663, allocations: 0.5854 MB / 0.7675 GB, free: 65.57 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]) * Number of clocked states: 0 () * 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.002379/1.666, allocations: 0.5938 MB / 0.7681 GB, free: 65.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002706/1.669, allocations: 1.119 MB / 0.7692 GB, free: 63.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/1.669, allocations: 1.812 kB / 0.7692 GB, free: 63.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007722/1.669, allocations: 381.1 kB / 0.7695 GB, free: 63.53 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/1.671, allocations: 326 kB / 0.7698 GB, free: 63.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003034/1.674, allocations: 1.838 MB / 0.7716 GB, free: 61.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006062/1.675, allocations: 0.987 MB / 0.7726 GB, free: 60.33 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001169/1.676, allocations: 282.4 kB / 0.7729 GB, free: 60.05 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001982/1.676, allocations: 63.42 kB / 0.7729 GB, free: 59.99 MB / 362.7 MB Notification: Performance of SimCode: time 1.643e-06/1.676, allocations: 3.938 kB / 0.7729 GB, free: 59.99 MB / 362.7 MB Notification: Performance of Templates: time 0.02854/1.705, allocations: 19.4 MB / 0.7919 GB, free: 40.58 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)