Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.Heater_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1031/0.1031, allocations: 21.44 MB / 36.39 MB, free: 1.207 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001212/0.001212, allocations: 183.1 kB / 42.62 MB, free: 3.992 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.756/1.756, allocations: 205.4 MB / 254.1 MB, free: 15.49 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001116/0.001116, allocations: 97.53 kB / 307.8 MB, free: 11.33 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003607, allocations: 8.25 kB / 373.2 MB, free: 59.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1344, allocations: 52.95 MB / 426.2 MB, free: 13.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4523/0.5868, allocations: 83.25 MB / 0.4975 GB, free: 17.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002693/0.5871, allocations: 75.92 kB / 0.4976 GB, free: 17.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05558/0.6427, allocations: 20.54 MB / 0.5176 GB, free: 16.19 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.6427, allocations: 0 / 0.5176 GB, free: 16.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.81e-05/0.6428, allocations: 35.16 kB / 0.5177 GB, free: 16.18 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: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003665/0.6465, allocations: 1.689 MB / 0.5193 GB, free: 15.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.6466, allocations: 7.75 kB / 0.5193 GB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002887/0.6469, allocations: 147.4 kB / 0.5195 GB, free: 15.34 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/0.6486, allocations: 0.9481 MB / 0.5204 GB, free: 15.01 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001011/0.6487, allocations: 118.2 kB / 0.5205 GB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002349/0.649, allocations: 139.7 kB / 0.5206 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002703/0.6517, allocations: 1.758 MB / 0.5223 GB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.838e-05/0.6517, allocations: 0 / 0.5223 GB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001527/0.6519, allocations: 53.22 kB / 0.5224 GB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.6519, allocations: 27.16 kB / 0.5224 GB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0022/0.6541, allocations: 1.415 MB / 0.5238 GB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/0.6646, allocations: 7.184 MB / 0.5308 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004776/0.6694, allocations: 1.88 MB / 0.5327 GB, free: 10.59 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001987/0.6696, allocations: 105.1 kB / 0.5328 GB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.6697, allocations: 42.16 kB / 0.5328 GB, free: 10.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 4.678e-06/0.6697, allocations: 0 / 0.5328 GB, free: 10.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=102): time 0.006433/0.6761, allocations: 3.823 MB / 0.5365 GB, free: 24.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.037e-05/0.6762, allocations: 60.28 kB / 0.5366 GB, free: 24.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009741/0.6772, allocations: 0.5641 MB / 0.5371 GB, free: 24.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001146/0.6773, allocations: 43.8 kB / 0.5372 GB, free: 24.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003097/0.6776, allocations: 489.1 kB / 0.5376 GB, free: 23.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004214/0.6781, allocations: 415.8 kB / 0.538 GB, free: 23.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.548e-05/0.6782, allocations: 21.66 kB / 0.5381 GB, free: 23.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002383/0.6784, allocations: 409.6 kB / 0.5385 GB, free: 23.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.6795, allocations: 0.8118 MB / 0.5392 GB, free: 23.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001066/0.6806, allocations: 0.9012 MB / 0.5401 GB, free: 22.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001115/0.6817, allocations: 0.9131 MB / 0.541 GB, free: 22.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.6817, allocations: 0 / 0.541 GB, free: 22.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.00355/0.6853, allocations: 2.295 MB / 0.5433 GB, free: 22.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.6853, allocations: 11.45 kB / 0.5433 GB, free: 22.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.6854, allocations: 3.875 kB / 0.5433 GB, free: 22.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001269/0.6866, allocations: 497 kB / 0.5437 GB, free: 22.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003823/0.6905, allocations: 0.5477 MB / 0.5443 GB, free: 21.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01653/0.707, allocations: 21.97 MB / 0.5657 GB, free: 17.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00178/0.7088, allocations: 150.6 kB / 0.5659 GB, free: 17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.709, allocations: 39.91 kB / 0.5659 GB, free: 17 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001167/0.7101, allocations: 405.7 kB / 0.5663 GB, free: 16.84 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002112/0.7104, allocations: 85.69 kB / 0.5664 GB, free: 16.8 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003355/0.7137, allocations: 1.958 MB / 0.5683 GB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.7138, allocations: 15.53 kB / 0.5683 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/0.7138, allocations: 3.594 kB / 0.5683 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.7138, allocations: 7.984 kB / 0.5683 GB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005603/0.7194, allocations: 3.556 MB / 0.5718 GB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.7194, allocations: 0 / 0.5718 GB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00397/0.7234, allocations: 0.5096 MB / 0.5723 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/0.7247, allocations: 485.5 kB / 0.5728 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001992/0.7249, allocations: 67.3 kB / 0.5728 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01661/0.7416, allocations: 21.98 MB / 0.5943 GB, free: 6.637 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.7416, allocations: 0 / 0.5943 GB, free: 6.637 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005073/0.7467, allocations: 2.756 MB / 0.597 GB, free: 4.938 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004741/0.7472, allocations: 191.4 kB / 0.5972 GB, free: 4.754 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002139/0.7474, allocations: 62.34 kB / 0.5972 GB, free: 4.719 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008144/0.7482, allocations: 70.3 kB / 0.5973 GB, free: 4.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/0.7486, allocations: 91.53 kB / 0.5974 GB, free: 4.625 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.39e-05/0.7487, allocations: 31.55 kB / 0.5974 GB, free: 4.613 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006358/0.7493, allocations: 442.7 kB / 0.5978 GB, free: 4.355 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.7493, allocations: 0 / 0.5978 GB, free: 4.355 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001689/0.751, allocations: 0.4968 MB / 0.5983 GB, free: 4.262 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 42 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.wall.wall.T[5,3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 15 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003227/0.7513, allocations: 183.2 kB / 0.5985 GB, free: 4.125 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006635/0.758, allocations: 3.582 MB / 0.602 GB, free: 1.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/0.758, allocations: 3.188 kB / 0.602 GB, free: 1.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005411/0.7634, allocations: 2.691 MB / 0.6046 GB, free: 14.97 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00137/0.7648, allocations: 297.4 kB / 0.6049 GB, free: 14.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01089/0.7757, allocations: 6.448 MB / 0.6112 GB, free: 8.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/0.7769, allocations: 1.287 MB / 0.6125 GB, free: 6.863 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001108/0.778, allocations: 339.2 kB / 0.6128 GB, free: 6.527 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003173/0.7783, allocations: 71.44 kB / 0.6129 GB, free: 6.461 MB / 426.7 MB Notification: Performance of SimCode: time 1.432e-06/0.7783, allocations: 0 / 0.6129 GB, free: 6.461 MB / 426.7 MB Notification: Performance of Templates: time 0.03469/0.813, allocations: 20.72 MB / 0.6331 GB, free: 1.738 MB / 442.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.sim & ./AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.Heater_control_case_003.pipe 2>&1)