Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002") translateModel(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001484/0.001484, allocations: 112.7 kB / 16.42 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001739/0.001739, allocations: 190.7 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09365/0.09365, allocations: 22.32 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 63.91 kB / 437.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08595/0.08724, allocations: 54.94 MB / 492.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002): time 0.01172/0.09899, allocations: 12.14 MB / 0.493 GB, free: 8.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006202/0.1052, allocations: 3.468 MB / 0.4964 GB, free: 5.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001628/0.1069, allocations: 67.62 kB / 0.4964 GB, free: 4.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.1082, allocations: 0.55 MB / 0.497 GB, free: 4.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003233/0.1115, allocations: 1.367 MB / 0.4983 GB, free: 3.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002089/0.1136, allocations: 1.085 MB / 0.4994 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1873/0.3009, allocations: 6.255 MB / 0.5055 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005072/0.306, allocations: 4.902 MB / 0.5103 GB, free: 7.086 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003694/0.3097, allocations: 2.547 MB / 0.5128 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004309/0.314, allocations: 2.842 MB / 0.5155 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00134/0.3153, allocations: 0.7484 MB / 0.5163 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001807/0.3172, allocations: 0.7859 MB / 0.517 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001892/0.3191, allocations: 1.909 MB / 0.5189 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003834/0.3229, allocations: 2.785 MB / 0.5216 GB, free: 5.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00651/0.3294, allocations: 8.302 MB / 0.5297 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.3294, allocations: 4 kB / 0.5297 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3295, allocations: 0 / 0.5297 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001444/0.3296, allocations: 1.562 kB / 0.5297 GB, free: 0.6367 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 873 * Number of variables: 873 Notification: Performance of Generate backend data structure: time 0.01239/0.342, allocations: 5.003 MB / 0.5346 GB, free: 13.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.3421, allocations: 12.91 kB / 0.5346 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009105/0.343, allocations: 436.3 kB / 0.535 GB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004028/0.347, allocations: 2.447 MB / 0.5374 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.3472, allocations: 286.1 kB / 0.5377 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006418/0.3479, allocations: 385.2 kB / 0.5381 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007743/0.3556, allocations: 4.852 MB / 0.5428 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.237e-05/0.3557, allocations: 2.25 kB / 0.5428 GB, free: 8.312 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004045/0.3561, allocations: 140 kB / 0.543 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.399e-05/0.3562, allocations: 88 kB / 0.543 GB, free: 8.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007132/0.3633, allocations: 4.126 MB / 0.5471 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03219/0.3955, allocations: 20.4 MB / 0.567 GB, free: 14.66 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01289/0.4085, allocations: 5.897 MB / 0.5727 GB, free: 8.742 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0033/0.4118, allocations: 2.231 MB / 0.5749 GB, free: 6.5 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001648/0.412, allocations: 47.98 kB / 0.575 GB, free: 6.461 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.412, allocations: 64.81 kB / 0.575 GB, free: 6.387 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001548/0.4136, allocations: 300.6 kB / 0.5753 GB, free: 6.098 MB / 430.1 MB Notification: Performance of pre-optimization done (n=294): time 5.2e-06/0.4136, allocations: 0 / 0.5753 GB, free: 6.098 MB / 430.1 MB Notification: Performance of matching and sorting (n=296): time 0.03534/0.4489, allocations: 17.63 MB / 0.5925 GB, free: 3.395 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.916e-05/0.449, allocations: 133.1 kB / 0.5927 GB, free: 3.238 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002654/0.4517, allocations: 1.76 MB / 0.5944 GB, free: 1.438 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003629/0.4521, allocations: 73.7 kB / 0.5945 GB, free: 1.359 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009219/0.453, allocations: 1.332 MB / 0.5958 GB, free: 8 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00116/0.4542, allocations: 1.106 MB / 0.5968 GB, free: 14.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001249/0.4554, allocations: 0.5503 MB / 0.5974 GB, free: 14.35 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.149e-05/0.4555, allocations: 305.1 kB / 0.5977 GB, free: 14.05 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0037/0.4592, allocations: 2.251 MB / 0.5999 GB, free: 11.79 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003776/0.463, allocations: 2.423 MB / 0.6022 GB, free: 9.289 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04735/0.5104, allocations: 12.73 MB / 0.6147 GB, free: 12.47 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.5104, allocations: 4 kB / 0.6147 GB, free: 12.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.01402/0.5244, allocations: 6.573 MB / 0.6211 GB, free: 5.789 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.5245, allocations: 8 kB / 0.6211 GB, free: 5.781 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.727e-05/0.5245, allocations: 4 kB / 0.6211 GB, free: 5.777 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005541/0.5301, allocations: 1.711 MB / 0.6228 GB, free: 3.941 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005966/0.536, allocations: 1.115 MB / 0.6239 GB, free: 2.859 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05455/0.5906, allocations: 75.13 MB / 0.6972 GB, free: 0.8672 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003412/0.594, allocations: 147.8 kB / 0.6974 GB, free: 0.7227 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008002/0.5949, allocations: 120 kB / 0.6975 GB, free: 0.6055 MB / 0.545 GB Warning: Assuming fixed start value for the following 6 variables: HC.H.Ec:VARIABLE(flow=false fixed = true ) type: Real HC.H.Tfo:VARIABLE(min = 0.0 start = HC.H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real HC.H.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real HC.FlowCtrl.y:VARIABLE(flow=false start = HC.FlowCtrl.y_start fixed = true ) "Connector of Real output signal" type: Real SS1.HE.Tco:VARIABLE(min = 0.0 start = 323.15 unit = "K" fixed = true nominal = 300.0 ) type: Real vessel.lfrac:VARIABLE(start = vessel.lfracstart fixed = true ) type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.005937/0.6008, allocations: 3.038 MB / 0.7004 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00398/0.6048, allocations: 2.403 MB / 0.7028 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.2516/0.8564, allocations: 12.64 MB / 0.7151 GB, free: 180.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.165e-05/0.8565, allocations: 0 / 0.7151 GB, free: 180.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=415) (initialization_lambda0): time 0.01359/0.8701, allocations: 6.522 MB / 0.7215 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.8701, allocations: 13.44 kB / 0.7215 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.8701, allocations: 4.438 kB / 0.7215 GB, free: 179.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005157/0.8753, allocations: 1.709 MB / 0.7232 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005082/0.8804, allocations: 0.9326 MB / 0.7241 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03766/0.9181, allocations: 72 MB / 0.7944 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003289/0.9214, allocations: 141.6 kB / 0.7945 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003019/0.9217, allocations: 120.1 kB / 0.7947 GB, free: 113.9 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 variables: HC.H.Ec:VARIABLE(flow=false fixed = true ) type: Real HC.H.Tfo:VARIABLE(min = 0.0 start = HC.H.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real HC.H.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real HC.FlowCtrl.y:VARIABLE(flow=false start = HC.FlowCtrl.y_start fixed = true ) "Connector of Real output signal" type: Real SS1.HE.Tco:VARIABLE(min = 0.0 start = 323.15 unit = "K" fixed = true nominal = 300.0 ) type: Real vessel.lfrac:VARIABLE(start = vessel.lfracstart fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 2 (ON.y,HC.ON) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (367): * Single equations (assignments): 318 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 46 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 45 systems {(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,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,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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009121/0.9226, allocations: 378 kB / 0.795 GB, free: 113.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004664/0.9231, allocations: 258.8 kB / 0.7953 GB, free: 113.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/0.934, allocations: 6.21 MB / 0.8013 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.493e-05/0.934, allocations: 18.78 kB / 0.8014 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.9341, allocations: 7.219 kB / 0.8014 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006027/0.9347, allocations: 357 kB / 0.8017 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005418/0.9352, allocations: 144 kB / 0.8018 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/0.937, allocations: 132.6 kB / 0.802 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005433/0.9376, allocations: 287.9 kB / 0.8022 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01874/0.9563, allocations: 8.41 MB / 0.8105 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.008918/0.9653, allocations: 7.614 MB / 0.8179 GB, free: 102.6 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002635/0.9679, allocations: 2.535 MB / 0.8204 GB, free: 100.4 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001308/0.9692, allocations: 1.191 MB / 0.8215 GB, free: 99.39 MB / 0.5606 GB Notification: Performance of Backend: time 3.3e-07/0.9692, allocations: 0 / 0.8215 GB, free: 99.39 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01588/0.9851, allocations: 16.72 MB / 0.8379 GB, free: 81.7 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01256/0.9977, allocations: 12.65 MB / 0.8502 GB, free: 69.18 MB / 0.5606 GB Notification: Performance of Templates: time 0.3078/1.305, allocations: 95.92 MB / 0.9439 GB, free: 183.2 MB / 0.5762 GB make -j1 -f AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002.sim & ./AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002.pipe 2>&1)