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") [: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/Complex 3.2.1+maint.om/package.mo): time 0.00321/0.003209, allocations: 173.7 kB / 7.447 MB, free: 2.508 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.48/1.48, allocations: 170.6 MB / 178.4 MB, free: 15.44 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.001808/0.001808, allocations: 128.3 kB / 217.7 MB, free: 8.199 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.618e-06/9.659e-06, allocations: 7.938 kB / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.103, allocations: 38.76 MB / 300.5 MB, free: 3.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9409/1.044, allocations: 310.6 MB / 0.5967 GB, free: 125.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004379/1.045, allocations: 78.58 kB / 0.5968 GB, free: 125.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.217/2.262, allocations: 266.3 MB / 0.8569 GB, free: 32.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002497/2.262, allocations: 44.17 kB / 0.8569 GB, free: 32.84 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.008715/2.271, allocations: 1.837 MB / 0.8587 GB, free: 32.15 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/2.271, allocations: 7.875 kB / 0.8587 GB, free: 32.15 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00168/2.273, allocations: 172.7 kB / 0.8589 GB, free: 32.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004082/2.277, allocations: 1.126 MB / 0.86 GB, free: 31.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002541/2.277, allocations: 142.5 kB / 0.8601 GB, free: 31.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000601/2.278, allocations: 54.69 kB / 0.8602 GB, free: 31.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003569/2.281, allocations: 1.642 MB / 0.8618 GB, free: 31.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003543/2.285, allocations: 1.636 MB / 0.8634 GB, free: 31.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.784e-05/2.285, allocations: 2.906 kB / 0.8634 GB, free: 31.52 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/2.285, allocations: 7.25 kB / 0.8634 GB, free: 31.52 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001489/2.285, allocations: 114.9 kB / 0.8635 GB, free: 31.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/2.299, allocations: 6.201 MB / 0.8696 GB, free: 29.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/2.3, allocations: 0.8883 MB / 0.8704 GB, free: 29.62 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001016/2.301, allocations: 0.6926 MB / 0.8711 GB, free: 29.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006371/2.307, allocations: 4.187 MB / 0.8752 GB, free: 27.31 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.586e-05/2.307, allocations: 50.47 kB / 0.8752 GB, free: 27.27 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 4.207e-06/2.307, allocations: 0 / 0.8752 GB, free: 27.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=112): time 0.01412/2.322, allocations: 4.291 MB / 0.8794 GB, free: 26.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.694e-05/2.322, allocations: 148.2 kB / 0.8796 GB, free: 26.58 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002063/2.324, allocations: 0.8148 MB / 0.8804 GB, free: 26.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001725/2.324, allocations: 29.36 kB / 0.8804 GB, free: 26.4 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004935/2.325, allocations: 475.8 kB / 0.8808 GB, free: 26.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005323/2.325, allocations: 378.7 kB / 0.8812 GB, free: 25.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/2.325, allocations: 0 / 0.8812 GB, free: 25.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/2.325, allocations: 360 kB / 0.8816 GB, free: 25.57 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/2.327, allocations: 0.6361 MB / 0.8822 GB, free: 25.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/2.328, allocations: 0.9455 MB / 0.8831 GB, free: 25.22 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01196/2.34, allocations: 2.473 MB / 0.8855 GB, free: 25.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.674e-05/2.34, allocations: 3.219 kB / 0.8855 GB, free: 25.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.01775/2.358, allocations: 3.737 MB / 0.8892 GB, free: 25.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001371/2.359, allocations: 3.487 MB / 0.8926 GB, free: 21.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.147e-05/2.36, allocations: 11.53 kB / 0.8926 GB, free: 21.44 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006973/2.367, allocations: 1.12 MB / 0.8937 GB, free: 21.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001914/2.369, allocations: 294.3 kB / 0.894 GB, free: 21.43 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005302/2.374, allocations: 1.974 MB / 0.8959 GB, free: 20.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002819/2.377, allocations: 65.06 kB / 0.8959 GB, free: 20.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006846/2.378, allocations: 66.98 kB / 0.896 GB, free: 20.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.473e-05/2.378, allocations: 11.31 kB / 0.896 GB, free: 20.88 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01569/2.393, allocations: 3.113 MB / 0.8991 GB, free: 20.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.997e-05/2.393, allocations: 11 kB / 0.8991 GB, free: 20.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006342/2.4, allocations: 0.9454 MB / 0.9 GB, free: 20.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001749/2.402, allocations: 307.5 kB / 0.9003 GB, free: 20.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/2.404, allocations: 1.323 MB / 0.9016 GB, free: 20.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/2.406, allocations: 54.92 kB / 0.9016 GB, free: 20.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004704/2.407, allocations: 65.17 kB / 0.9017 GB, free: 20.29 MB / 346.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.001038/2.408, allocations: 143 kB / 0.9018 GB, free: 20.17 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008186/2.409, allocations: 135.4 kB / 0.902 GB, free: 20.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008008/2.417, allocations: 2.257 MB / 0.9042 GB, free: 20.01 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.664e-05/2.417, allocations: 11.81 kB / 0.9042 GB, free: 20.01 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.827e-05/2.417, allocations: 0 / 0.9042 GB, free: 20.01 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.95e-05/2.417, allocations: 10.98 kB / 0.9042 GB, free: 20.01 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009729/2.427, allocations: 3.552 MB / 0.9077 GB, free: 19.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/2.427, allocations: 2.438 kB / 0.9077 GB, free: 19.67 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/2.428, allocations: 187.3 kB / 0.9078 GB, free: 19.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003187/2.431, allocations: 0.8199 MB / 0.9086 GB, free: 19.66 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001918/2.431, allocations: 16.66 kB / 0.9086 GB, free: 19.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004517/2.436, allocations: 1.969 MB / 0.9106 GB, free: 19.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/2.436, allocations: 2.781 kB / 0.9106 GB, free: 19.11 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00732/2.443, allocations: 2.974 MB / 0.9135 GB, free: 18.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/2.445, allocations: 382 kB / 0.9138 GB, free: 18.69 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007142/2.445, allocations: 0 / 0.9138 GB, free: 18.69 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/2.447, allocations: 72.41 kB / 0.9139 GB, free: 18.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000278/2.448, allocations: 90.92 kB / 0.914 GB, free: 18.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002079/2.448, allocations: 54.58 kB / 0.9141 GB, free: 18.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.001482/2.449, allocations: 0.6036 MB / 0.9146 GB, free: 18.57 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006898/2.456, allocations: 1.158 MB / 0.9158 GB, free: 18.37 MB / 346.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.005215/2.462, allocations: 1.064 MB / 0.9168 GB, free: 18.05 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007211/2.469, allocations: 2.495 MB / 0.9192 GB, free: 18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/2.469, allocations: 0 / 0.9192 GB, free: 18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002335/2.471, allocations: 0.8085 MB / 0.92 GB, free: 17.99 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004047/2.475, allocations: 0.4982 MB / 0.9205 GB, free: 17.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/2.486, allocations: 2.465 MB / 0.9229 GB, free: 17.51 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002978/2.489, allocations: 1.473 MB / 0.9244 GB, free: 16.78 MB / 346.7 MB Notification: Performance of SimCode: time 3.216e-06/2.489, allocations: 0 / 0.9244 GB, free: 16.78 MB / 346.7 MB Notification: Performance of Templates: time 0.1086/2.597, allocations: 44.09 MB / 0.9674 GB, free: 14.45 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)