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.001538/0.001538, allocations: 116.2 kB / 16.42 MB, free: 6.5 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.001704/0.001704, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.438/1.438, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09281/0.09281, allocations: 22.33 MB / 313.5 MB, free: 8.902 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 59.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09271/0.09398, allocations: 54.96 MB / 492.7 MB, free: 4.77 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002): time 0.0121/0.1061, allocations: 12.12 MB / 0.493 GB, free: 8.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006618/0.1128, allocations: 3.48 MB / 0.4964 GB, free: 5.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001823/0.1146, allocations: 63.62 kB / 0.4965 GB, free: 5.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.1161, allocations: 0.5462 MB / 0.497 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003246/0.1193, allocations: 1.367 MB / 0.4983 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002332/0.1217, allocations: 1.085 MB / 0.4994 GB, free: 2.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1915/0.3132, allocations: 6.255 MB / 0.5055 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005003/0.3183, allocations: 4.905 MB / 0.5103 GB, free: 7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003302/0.3216, allocations: 2.548 MB / 0.5128 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003694/0.3253, allocations: 2.848 MB / 0.5155 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001177/0.3265, allocations: 0.7485 MB / 0.5163 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.328, allocations: 0.7859 MB / 0.517 GB, free: 6.426 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001562/0.3296, allocations: 1.908 MB / 0.5189 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003/0.3326, allocations: 2.789 MB / 0.5216 GB, free: 5.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006197/0.3388, allocations: 8.32 MB / 0.5298 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3388, allocations: 0 / 0.5298 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3388, allocations: 1.25 kB / 0.5298 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001139/0.3389, allocations: 0 / 0.5298 GB, free: 0.6016 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.01129/0.3502, allocations: 5.121 MB / 0.5348 GB, free: 13.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3503, allocations: 9 kB / 0.5348 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008287/0.3511, allocations: 455 kB / 0.5352 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003616/0.3547, allocations: 2.457 MB / 0.5376 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002145/0.355, allocations: 288.5 kB / 0.5379 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005963/0.3556, allocations: 380.1 kB / 0.5382 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007142/0.3627, allocations: 4.863 MB / 0.543 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.935e-05/0.3628, allocations: 0 / 0.543 GB, free: 8.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003625/0.3631, allocations: 140 kB / 0.5431 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-05/0.3632, allocations: 80 kB / 0.5432 GB, free: 7.934 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006629/0.3698, allocations: 4.122 MB / 0.5472 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02885/0.3987, allocations: 20.44 MB / 0.5672 GB, free: 14.46 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01233/0.4111, allocations: 5.896 MB / 0.5729 GB, free: 8.551 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003312/0.4144, allocations: 2.231 MB / 0.5751 GB, free: 6.309 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002065/0.4146, allocations: 52.45 kB / 0.5752 GB, free: 6.266 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.4147, allocations: 64.88 kB / 0.5752 GB, free: 6.191 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001649/0.4163, allocations: 302.1 kB / 0.5755 GB, free: 5.898 MB / 430.1 MB Notification: Performance of pre-optimization done (n=294): time 7.805e-06/0.4164, allocations: 0 / 0.5755 GB, free: 5.898 MB / 430.1 MB Notification: Performance of matching and sorting (n=296): time 0.03431/0.4507, allocations: 17.69 MB / 0.5928 GB, free: 3.152 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.64e-05/0.4508, allocations: 133.1 kB / 0.5929 GB, free: 2.996 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002593/0.4534, allocations: 1.756 MB / 0.5946 GB, free: 1.199 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000274/0.4536, allocations: 77.7 kB / 0.5947 GB, free: 1.117 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009197/0.4546, allocations: 1.366 MB / 0.596 GB, free: 15.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001054/0.4556, allocations: 1.16 MB / 0.5972 GB, free: 14.59 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001197/0.4568, allocations: 0.5543 MB / 0.5977 GB, free: 14.02 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.457, allocations: 305.1 kB / 0.598 GB, free: 13.72 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003726/0.4607, allocations: 2.244 MB / 0.6002 GB, free: 11.46 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003646/0.4644, allocations: 2.422 MB / 0.6026 GB, free: 8.973 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04461/0.509, allocations: 12.73 MB / 0.615 GB, free: 12.15 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.879e-06/0.509, allocations: 0 / 0.615 GB, free: 12.15 MB / 478.1 MB Notification: Performance of matching and sorting (n=415) (initialization): time 0.01303/0.5221, allocations: 6.589 MB / 0.6214 GB, free: 5.461 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.5221, allocations: 8 kB / 0.6214 GB, free: 5.453 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/0.5221, allocations: 7.469 kB / 0.6215 GB, free: 5.449 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005436/0.5276, allocations: 1.711 MB / 0.6231 GB, free: 3.613 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005818/0.5334, allocations: 1.111 MB / 0.6242 GB, free: 2.531 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0521/0.5856, allocations: 75.15 MB / 0.6976 GB, free: 0.5312 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003415/0.589, allocations: 151.9 kB / 0.6977 GB, free: 392 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007915/0.5898, allocations: 116 kB / 0.6979 GB, free: 276 kB / 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.006458/0.5963, allocations: 3.047 MB / 0.7008 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004482/0.6008, allocations: 2.403 MB / 0.7032 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.2663/0.8671, allocations: 12.63 MB / 0.7155 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.31e-05/0.8672, allocations: 1.656 kB / 0.7155 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=415) (initialization_lambda0): time 0.01171/0.8789, allocations: 6.541 MB / 0.7219 GB, free: 180 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.879, allocations: 7.062 kB / 0.7219 GB, free: 180 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/0.879, allocations: 5.672 kB / 0.7219 GB, free: 180 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004976/0.884, allocations: 1.712 MB / 0.7236 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004653/0.8886, allocations: 0.9308 MB / 0.7245 GB, free: 179.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03748/0.9261, allocations: 72.02 MB / 0.7948 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00324/0.9294, allocations: 150.1 kB / 0.795 GB, free: 114 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002834/0.9297, allocations: 113.1 kB / 0.7951 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.001133/0.9308, allocations: 381.1 kB / 0.7954 GB, free: 113.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005565/0.9314, allocations: 272.6 kB / 0.7957 GB, free: 113.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/0.9426, allocations: 6.216 MB / 0.8018 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.802e-05/0.9427, allocations: 14.81 kB / 0.8018 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.9427, allocations: 3.938 kB / 0.8018 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008932/0.9436, allocations: 373 kB / 0.8021 GB, free: 110.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006014/0.9442, allocations: 138.7 kB / 0.8023 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00184/0.946, allocations: 132.8 kB / 0.8024 GB, free: 110.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006509/0.9467, allocations: 287.3 kB / 0.8027 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01883/0.9655, allocations: 8.426 MB / 0.8109 GB, free: 107.5 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009237/0.9748, allocations: 7.634 MB / 0.8184 GB, free: 102.3 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002713/0.9775, allocations: 2.535 MB / 0.8208 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001423/0.979, allocations: 1.191 MB / 0.822 GB, free: 99.04 MB / 0.5606 GB Notification: Performance of Backend: time 1.353e-06/0.979, allocations: 0 / 0.822 GB, free: 99.04 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01639/0.9954, allocations: 16.74 MB / 0.8383 GB, free: 81.27 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01365/1.009, allocations: 12.85 MB / 0.8509 GB, free: 68.57 MB / 0.5606 GB Notification: Performance of Templates: time 0.3261/1.335, allocations: 95.93 MB / 0.9446 GB, free: 184.7 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)