Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") translateModel(Modelica.Fluid.Examples.Tanks.ThreeTanks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.674/0.674, allocations: 110.8 MB / 118 MB, free: 14.66 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001701/0.001701, allocations: 163.9 kB / 143.7 MB, free: 4.973 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 5.24e-06/5.26e-06, allocations: 4 kB / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04352/0.04354, allocations: 25.16 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5021/0.5457, allocations: 235.8 MB / 434.5 MB, free: 66.51 MB / 234.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/0.546, allocations: 68.39 kB / 434.5 MB, free: 66.51 MB / 234.7 MB Notification: Performance of FrontEnd: time 0.8454/1.391, allocations: 246.9 MB / 0.6655 GB, free: 3.457 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002377/1.392, allocations: 39.88 kB / 0.6655 GB, free: 3.418 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.007255/1.399, allocations: 1.697 MB / 0.6671 GB, free: 1.684 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/1.399, allocations: 8.031 kB / 0.6672 GB, free: 1.676 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001106/1.4, allocations: 154.2 kB / 0.6673 GB, free: 1.523 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003376/1.403, allocations: 1.017 MB / 0.6683 GB, free: 496 kB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000254/1.404, allocations: 147.1 kB / 0.6684 GB, free: 328 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005183/1.404, allocations: 60 kB / 0.6685 GB, free: 268 kB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00338/1.408, allocations: 1.406 MB / 0.6699 GB, free: 14.85 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003918/1.412, allocations: 1.498 MB / 0.6713 GB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.435e-05/1.412, allocations: 8 kB / 0.6713 GB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003012/1.412, allocations: 0 / 0.6713 GB, free: 13.3 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001787/1.412, allocations: 113.9 kB / 0.6714 GB, free: 13.19 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0134/1.426, allocations: 5.62 MB / 0.6769 GB, free: 7.367 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/1.427, allocations: 0.8337 MB / 0.6777 GB, free: 6.523 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001132/1.428, allocations: 0.6637 MB / 0.6784 GB, free: 5.859 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007286/1.436, allocations: 3.907 MB / 0.6822 GB, free: 1.605 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.005e-05/1.436, allocations: 43.34 kB / 0.6823 GB, free: 1.555 MB / 250.7 MB Notification: Performance of pre-optimization done (n=91): time 3.997e-06/1.436, allocations: 0 / 0.6823 GB, free: 1.555 MB / 250.7 MB Notification: Performance of matching and sorting (n=103): time 0.1622/1.598, allocations: 4.092 MB / 0.6862 GB, free: 26.45 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/1.598, allocations: 141.8 kB / 0.6864 GB, free: 26.29 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/1.599, allocations: 0.7352 MB / 0.6871 GB, free: 26.14 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001305/1.6, allocations: 25.7 kB / 0.6871 GB, free: 26.11 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002609/1.6, allocations: 449.5 kB / 0.6876 GB, free: 25.89 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003619/1.6, allocations: 353.2 kB / 0.6879 GB, free: 25.71 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.411e-05/1.6, allocations: 0 / 0.6879 GB, free: 25.71 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/1.6, allocations: 357.4 kB / 0.6882 GB, free: 25.4 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008614/1.601, allocations: 0.5574 MB / 0.6888 GB, free: 25.4 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009149/1.602, allocations: 0.8618 MB / 0.6896 GB, free: 25.05 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003344/1.606, allocations: 0.9884 MB / 0.6906 GB, free: 25.04 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/1.606, allocations: 2.781 kB / 0.6906 GB, free: 25.04 MB / 250.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.005273/1.611, allocations: 2.128 MB / 0.6927 GB, free: 24.92 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/1.611, allocations: 3.969 kB / 0.6927 GB, free: 24.92 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.877e-05/1.611, allocations: 9.844 kB / 0.6927 GB, free: 24.92 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006712/1.618, allocations: 1.08 MB / 0.6937 GB, free: 24.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/1.619, allocations: 272.4 kB / 0.694 GB, free: 24.91 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004109/1.623, allocations: 1.894 MB / 0.6958 GB, free: 24.38 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001772/1.625, allocations: 74.28 kB / 0.6959 GB, free: 24.37 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/1.625, allocations: 66.19 kB / 0.696 GB, free: 24.37 MB / 250.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 137 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0003232/1.626, allocations: 137.7 kB / 0.6961 GB, free: 24.26 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002154/1.626, allocations: 116.4 kB / 0.6962 GB, free: 24.2 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005881/1.632, allocations: 2.196 MB / 0.6984 GB, free: 24.11 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.33e-05/1.632, allocations: 10.06 kB / 0.6984 GB, free: 24.11 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/1.632, allocations: 0 / 0.6984 GB, free: 24.11 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/1.632, allocations: 6.844 kB / 0.6984 GB, free: 24.11 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007103/1.639, allocations: 3.371 MB / 0.7017 GB, free: 23.8 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/1.639, allocations: 0 / 0.7017 GB, free: 23.8 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009555/1.64, allocations: 185 kB / 0.7018 GB, free: 23.8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003038/1.643, allocations: 0.7994 MB / 0.7026 GB, free: 23.79 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/1.643, allocations: 19.5 kB / 0.7026 GB, free: 23.78 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003915/1.647, allocations: 1.956 MB / 0.7046 GB, free: 23.24 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.647, allocations: 0 / 0.7046 GB, free: 23.24 MB / 250.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005632/1.653, allocations: 2.851 MB / 0.7073 GB, free: 23 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004628/1.653, allocations: 190.5 kB / 0.7075 GB, free: 22.85 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002381/1.654, allocations: 1.5 kB / 0.7075 GB, free: 22.85 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/1.655, allocations: 80.56 kB / 0.7076 GB, free: 22.84 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/1.655, allocations: 93.09 kB / 0.7077 GB, free: 22.84 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/1.655, allocations: 45.67 kB / 0.7077 GB, free: 22.84 MB / 250.7 MB Notification: Performance of sort global known variables: time 0.0007671/1.656, allocations: 0.5511 MB / 0.7083 GB, free: 22.73 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.002596/1.658, allocations: 0.7393 MB / 0.709 GB, free: 22.73 MB / 250.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * 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 26} Notification: Performance of Backend phase and start with SimCode phase: time 0.001822/1.66, allocations: 0.8541 MB / 0.7098 GB, free: 22.62 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.003348/1.664, allocations: 1.53 MB / 0.7113 GB, free: 22.6 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/1.664, allocations: 3.719 kB / 0.7113 GB, free: 22.6 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002113/1.666, allocations: 0.859 MB / 0.7122 GB, free: 22.6 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003478/1.669, allocations: 0.5499 MB / 0.7127 GB, free: 22.58 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006256/1.676, allocations: 2.339 MB / 0.715 GB, free: 22.14 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001254/1.677, allocations: 1.412 MB / 0.7164 GB, free: 21.41 MB / 250.7 MB Notification: Performance of SimCode: time 1.263e-06/1.677, allocations: 0 / 0.7164 GB, free: 21.41 MB / 250.7 MB Notification: Performance of Templates: time 0.05258/1.729, allocations: 32.07 MB / 0.7477 GB, free: 17.93 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1)