Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0008684/0.0008684, allocations: 171.5 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.224/1.224, allocations: 170.7 MB / 178.7 MB, free: 15.58 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.001577/0.001577, allocations: 95.47 kB / 218 MB, free: 8.355 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.781e-05/1.792e-05, allocations: 4 kB / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07632/0.07635, allocations: 38.78 MB / 301 MB, free: 3.621 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8588/0.9352, allocations: 310.6 MB / 0.5973 GB, free: 98.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.9355, allocations: 78.94 kB / 0.5974 GB, free: 98.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.039/1.975, allocations: 265.1 MB / 0.8562 GB, free: 48.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.975, allocations: 1.094 kB / 0.8562 GB, free: 48.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000306/1.975, allocations: 43.78 kB / 0.8563 GB, free: 48.11 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.008772/1.984, allocations: 1.8 MB / 0.858 GB, free: 47.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.151e-05/1.984, allocations: 9.844 kB / 0.858 GB, free: 47.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001513/1.986, allocations: 176 kB / 0.8582 GB, free: 47.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003527/1.989, allocations: 1.113 MB / 0.8593 GB, free: 47.01 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/1.989, allocations: 141.4 kB / 0.8594 GB, free: 46.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005114/1.99, allocations: 60.56 kB / 0.8595 GB, free: 46.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003284/1.993, allocations: 1.598 MB / 0.861 GB, free: 46.9 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003189/1.996, allocations: 1.617 MB / 0.8626 GB, free: 46.72 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.653e-05/1.996, allocations: 0 / 0.8626 GB, free: 46.72 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002427/1.997, allocations: 3.969 kB / 0.8626 GB, free: 46.72 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001609/1.997, allocations: 104.8 kB / 0.8627 GB, free: 46.72 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01146/2.008, allocations: 6.159 MB / 0.8687 GB, free: 44.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/2.01, allocations: 1.126 MB / 0.8698 GB, free: 44.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008426/2.011, allocations: 0.6807 MB / 0.8705 GB, free: 44.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005239/2.016, allocations: 4.198 MB / 0.8746 GB, free: 42.47 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/2.016, allocations: 50.55 kB / 0.8747 GB, free: 42.43 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001007/2.017, allocations: 165.5 kB / 0.8748 GB, free: 42.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 3.987e-06/2.017, allocations: 0 / 0.8748 GB, free: 42.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.01138/2.028, allocations: 4.123 MB / 0.8788 GB, free: 41.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/2.028, allocations: 147.4 kB / 0.879 GB, free: 41.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/2.03, allocations: 0.8109 MB / 0.8798 GB, free: 41.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001194/2.03, allocations: 28.3 kB / 0.8798 GB, free: 41.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003895/2.03, allocations: 0.6107 MB / 0.8804 GB, free: 41.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003005/2.031, allocations: 381.8 kB / 0.8808 GB, free: 40.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.219e-05/2.031, allocations: 0 / 0.8808 GB, free: 40.96 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/2.031, allocations: 362.5 kB / 0.8811 GB, free: 40.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008445/2.032, allocations: 0.6076 MB / 0.8817 GB, free: 40.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/2.033, allocations: 0.9313 MB / 0.8826 GB, free: 40.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009409/2.042, allocations: 2.326 MB / 0.8849 GB, free: 40.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/2.042, allocations: 3.656 kB / 0.8849 GB, free: 40.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.01218/2.054, allocations: 3.561 MB / 0.8884 GB, free: 40.15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009105/2.055, allocations: 3.493 MB / 0.8918 GB, free: 36.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.578e-05/2.055, allocations: 7.906 kB / 0.8918 GB, free: 36.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005628/2.061, allocations: 1.084 MB / 0.8928 GB, free: 36.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/2.062, allocations: 293.4 kB / 0.8931 GB, free: 36.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003739/2.066, allocations: 1.896 MB / 0.895 GB, free: 35.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001666/2.068, allocations: 61.34 kB / 0.895 GB, free: 35.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002382/2.068, allocations: 75.61 kB / 0.8951 GB, free: 35.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/2.068, allocations: 7.547 kB / 0.8951 GB, free: 35.96 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01032/2.078, allocations: 2.959 MB / 0.898 GB, free: 35.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.403e-05/2.078, allocations: 10.84 kB / 0.898 GB, free: 35.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005222/2.084, allocations: 0.9125 MB / 0.8989 GB, free: 35.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/2.085, allocations: 303.5 kB / 0.8992 GB, free: 35.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/2.086, allocations: 1.269 MB / 0.9004 GB, free: 35.38 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/2.088, allocations: 60.11 kB / 0.9005 GB, free: 35.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001949/2.088, allocations: 70.98 kB / 0.9006 GB, free: 35.37 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0004989/2.089, allocations: 138 kB / 0.9007 GB, free: 35.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004444/2.089, allocations: 129.8 kB / 0.9008 GB, free: 35.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005521/2.094, allocations: 2.134 MB / 0.9029 GB, free: 35.08 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/2.095, allocations: 21.83 kB / 0.9029 GB, free: 35.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.869e-06/2.095, allocations: 0 / 0.9029 GB, free: 35.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/2.095, allocations: 7.594 kB / 0.9029 GB, free: 35.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006821/2.101, allocations: 3.449 MB / 0.9063 GB, free: 34.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/2.101, allocations: 0 / 0.9063 GB, free: 34.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008619/2.102, allocations: 192.8 kB / 0.9065 GB, free: 34.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002735/2.105, allocations: 0.8006 MB / 0.9073 GB, free: 34.72 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/2.105, allocations: 25.14 kB / 0.9073 GB, free: 34.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003255/2.108, allocations: 1.882 MB / 0.9091 GB, free: 34.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/2.108, allocations: 0 / 0.9091 GB, free: 34.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005456/2.114, allocations: 2.867 MB / 0.9119 GB, free: 33.92 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008652/2.115, allocations: 383 kB / 0.9123 GB, free: 33.75 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003968/2.115, allocations: 3 kB / 0.9123 GB, free: 33.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001237/2.116, allocations: 66.39 kB / 0.9123 GB, free: 33.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/2.117, allocations: 100.2 kB / 0.9124 GB, free: 33.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001342/2.117, allocations: 50.17 kB / 0.9125 GB, free: 33.74 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009479/2.118, allocations: 0.5983 MB / 0.9131 GB, free: 33.63 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/2.118, allocations: 1.562 kB / 0.9131 GB, free: 33.63 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004339/2.122, allocations: 1.157 MB / 0.9142 GB, free: 33.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.004028/2.126, allocations: 1.05 MB / 0.9152 GB, free: 33.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004855/2.131, allocations: 2.431 MB / 0.9176 GB, free: 33.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/2.131, allocations: 0 / 0.9176 GB, free: 33.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/2.133, allocations: 0.792 MB / 0.9184 GB, free: 33.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00297/2.136, allocations: 0.5243 MB / 0.9189 GB, free: 33.03 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00512/2.141, allocations: 2.342 MB / 0.9212 GB, free: 32.39 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/2.142, allocations: 1.318 MB / 0.9225 GB, free: 31.66 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002396/2.144, allocations: 0.5735 MB / 0.923 GB, free: 31.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003174/2.144, allocations: 105.6 kB / 0.9231 GB, free: 31.58 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/2.144, allocations: 0 / 0.9231 GB, free: 31.58 MB / 362.7 MB Notification: Performance of Templates: time 0.05722/2.202, allocations: 37.65 MB / 0.9599 GB, free: 16.14 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)