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.001284/0.001285, 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.382/1.382, 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.001634/0.001634, allocations: 111.5 kB / 218 MB, free: 8.406 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.438e-05/1.44e-05, allocations: 0 / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07402/0.07405, allocations: 38.77 MB / 301 MB, free: 3.629 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8342/0.9083, allocations: 311.2 MB / 0.5978 GB, free: 125.2 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/0.9086, allocations: 85.86 kB / 0.5979 GB, free: 125.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4372/1.346, allocations: 135 MB / 0.7298 GB, free: 66.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.723e-06/1.346, allocations: 0 / 0.7298 GB, free: 66.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.331e-05/1.346, allocations: 18.09 kB / 0.7298 GB, free: 66.8 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.002418/1.348, allocations: 1.031 MB / 0.7308 GB, free: 66.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/1.348, allocations: 10.03 kB / 0.7308 GB, free: 66.33 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004168/1.349, allocations: 83.62 kB / 0.7309 GB, free: 66.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/1.35, allocations: 0.5788 MB / 0.7315 GB, free: 66.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/1.35, allocations: 22.67 kB / 0.7315 GB, free: 66.04 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001154/1.35, allocations: 28.47 kB / 0.7315 GB, free: 66.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001157/1.351, allocations: 0.6073 MB / 0.7321 GB, free: 66.04 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009978/1.352, allocations: 0.6597 MB / 0.7327 GB, free: 65.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.148e-05/1.353, allocations: 5.094 kB / 0.7327 GB, free: 65.92 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.34e-05/1.353, allocations: 1.219 kB / 0.7328 GB, free: 65.92 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-05/1.353, allocations: 49.48 kB / 0.7328 GB, free: 65.92 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004257/1.357, allocations: 2.743 MB / 0.7355 GB, free: 64.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005819/1.358, allocations: 439.3 kB / 0.7359 GB, free: 64.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000286/1.358, allocations: 238.1 kB / 0.7361 GB, free: 64.57 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002415/1.358, allocations: 340.2 kB / 0.7364 GB, free: 64.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/1.358, allocations: 45.34 kB / 0.7365 GB, free: 64.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=48): time 3.166e-06/1.358, allocations: 0 / 0.7365 GB, free: 64.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.005478/1.364, allocations: 1.812 MB / 0.7383 GB, free: 63.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/1.364, allocations: 84.02 kB / 0.7383 GB, free: 63.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006941/1.364, allocations: 451.2 kB / 0.7388 GB, free: 63.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.612e-05/1.364, allocations: 27.86 kB / 0.7388 GB, free: 63.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/1.365, allocations: 333.4 kB / 0.7391 GB, free: 63.37 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/1.365, allocations: 198.3 kB / 0.7393 GB, free: 63.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.746e-05/1.365, allocations: 0 / 0.7393 GB, free: 63.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001053/1.365, allocations: 374.8 kB / 0.7397 GB, free: 62.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000439/1.365, allocations: 265.2 kB / 0.7399 GB, free: 62.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005223/1.366, allocations: 437.4 kB / 0.7403 GB, free: 62.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003597/1.37, allocations: 0.8355 MB / 0.7411 GB, free: 62.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.649e-06/1.37, allocations: 3.75 kB / 0.7412 GB, free: 62.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.004417/1.374, allocations: 1.382 MB / 0.7425 GB, free: 62.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000386/1.374, allocations: 1.745 MB / 0.7442 GB, free: 60.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/1.375, allocations: 7.656 kB / 0.7442 GB, free: 60.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005047/1.375, allocations: 165.9 kB / 0.7444 GB, free: 60.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005708/1.376, allocations: 149.8 kB / 0.7445 GB, free: 60.86 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001464/1.377, allocations: 0.947 MB / 0.7454 GB, free: 60.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006774/1.378, allocations: 41.52 kB / 0.7455 GB, free: 60.33 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-05/1.378, allocations: 30.41 kB / 0.7455 GB, free: 60.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/1.378, allocations: 4.656 kB / 0.7455 GB, free: 60.33 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003958/1.382, allocations: 1.204 MB / 0.7467 GB, free: 60.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/1.382, allocations: 4.344 kB / 0.7467 GB, free: 60.31 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003578/1.382, allocations: 113.4 kB / 0.7468 GB, free: 60.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005762/1.383, allocations: 150.7 kB / 0.7469 GB, free: 60.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/1.384, allocations: 0.8053 MB / 0.7477 GB, free: 59.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006006/1.384, allocations: 28.66 kB / 0.7478 GB, free: 59.78 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.708e-05/1.385, allocations: 32.56 kB / 0.7478 GB, free: 59.78 MB / 346.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.0002125/1.385, allocations: 134.7 kB / 0.7479 GB, free: 59.67 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001663/1.385, allocations: 65.69 kB / 0.748 GB, free: 59.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001845/1.387, allocations: 0.8158 MB / 0.7488 GB, free: 59.56 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-06/1.387, allocations: 11.64 kB / 0.7488 GB, free: 59.55 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/1.387, allocations: 0 / 0.7488 GB, free: 59.55 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.135e-06/1.387, allocations: 3.891 kB / 0.7488 GB, free: 59.55 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002926/1.39, allocations: 1.574 MB / 0.7503 GB, free: 59.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/1.39, allocations: 7.531 kB / 0.7503 GB, free: 59.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004932/1.39, allocations: 105.3 kB / 0.7504 GB, free: 59.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004885/1.391, allocations: 164.1 kB / 0.7506 GB, free: 59.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.942e-05/1.391, allocations: 3.969 kB / 0.7506 GB, free: 59.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/1.392, allocations: 0.8769 MB / 0.7515 GB, free: 58.7 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/1.392, allocations: 2.156 kB / 0.7515 GB, free: 58.7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002076/1.394, allocations: 1.241 MB / 0.7527 GB, free: 58.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/1.394, allocations: 145 kB / 0.7528 GB, free: 58.33 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000151/1.394, allocations: 3.969 kB / 0.7528 GB, free: 58.33 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004919/1.395, allocations: 33.88 kB / 0.7528 GB, free: 58.32 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.914e-05/1.395, allocations: 55.53 kB / 0.7529 GB, free: 58.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.389e-05/1.395, allocations: 21.09 kB / 0.7529 GB, free: 58.32 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003672/1.395, allocations: 346.8 kB / 0.7532 GB, free: 58.24 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.395, allocations: 0 / 0.7532 GB, free: 58.24 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001823/1.397, allocations: 0.542 MB / 0.7538 GB, free: 58.15 MB / 346.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.001493/1.399, allocations: 0.5942 MB / 0.7544 GB, free: 57.96 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001825/1.401, allocations: 1.066 MB / 0.7554 GB, free: 57.94 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/1.401, allocations: 0 / 0.7554 GB, free: 57.94 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000548/1.401, allocations: 349.3 kB / 0.7557 GB, free: 57.94 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001448/1.403, allocations: 293.6 kB / 0.756 GB, free: 57.94 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/1.405, allocations: 1.14 MB / 0.7571 GB, free: 57.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004079/1.405, allocations: 0.9786 MB / 0.7581 GB, free: 56.94 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001102/1.406, allocations: 299.1 kB / 0.7584 GB, free: 56.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/1.406, allocations: 55.5 kB / 0.7584 GB, free: 56.91 MB / 346.7 MB Notification: Performance of SimCode: time 3.41e-07/1.406, allocations: 2.875 kB / 0.7584 GB, free: 56.91 MB / 346.7 MB Notification: Performance of Templates: time 0.02726/1.434, allocations: 18.25 MB / 0.7762 GB, free: 55.8 MB / 346.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)