Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001.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.HC_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001") translateModel(AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001583/0.001584, allocations: 111.4 kB / 16.42 MB, free: 6.477 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.001811/0.001811, allocations: 187.9 kB / 17.35 MB, free: 5.711 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0924/0.0924, allocations: 22.33 MB / 313.5 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002308/0.002308, allocations: 63.91 kB / 437.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1164, allocations: 54.95 MB / 492.7 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001): time 0.007533/0.124, allocations: 7.11 MB / 499.8 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003372/0.1274, allocations: 1.937 MB / 0.49 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007658/0.1281, allocations: 31.81 kB / 0.49 GB, free: 11.61 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006727/0.1288, allocations: 309.4 kB / 0.4903 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001533/0.1304, allocations: 0.7455 MB / 0.491 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.1315, allocations: 0.5189 MB / 0.4915 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003193/0.1347, allocations: 3.444 MB / 0.4949 GB, free: 6.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002936/0.1377, allocations: 2.899 MB / 0.4977 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001376/0.1391, allocations: 1.383 MB / 0.4991 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001693/0.1408, allocations: 1.558 MB / 0.5006 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004301/0.1412, allocations: 420 kB / 0.501 GB, free: 264 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1906/0.3318, allocations: 428.3 kB / 0.5014 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.333, allocations: 1.063 MB / 0.5025 GB, free: 11.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001429/0.3344, allocations: 1.544 MB / 0.504 GB, free: 11.76 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003875/0.3383, allocations: 4.583 MB / 0.5084 GB, free: 11.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.431e-06/0.3383, allocations: 0.5 kB / 0.5084 GB, free: 11.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3383, allocations: 0 / 0.5084 GB, free: 11.33 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.777e-05/0.3384, allocations: 0.75 kB / 0.5084 GB, free: 11.33 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: 488 * Number of variables: 488 Notification: Performance of Generate backend data structure: time 0.006351/0.3448, allocations: 2.949 MB / 0.5113 GB, free: 10.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.3448, allocations: 12.72 kB / 0.5113 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004309/0.3452, allocations: 248.4 kB / 0.5116 GB, free: 10.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001917/0.3472, allocations: 1.403 MB / 0.5129 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001285/0.3473, allocations: 174.3 kB / 0.5131 GB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003624/0.3477, allocations: 217.5 kB / 0.5133 GB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004004/0.3517, allocations: 2.52 MB / 0.5158 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.357e-05/0.3517, allocations: 0 / 0.5158 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002297/0.352, allocations: 75.62 kB / 0.5158 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.419e-05/0.352, allocations: 47.52 kB / 0.5159 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003536/0.3556, allocations: 2.244 MB / 0.5181 GB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01333/0.3689, allocations: 10.99 MB / 0.5288 GB, free: 2.449 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006394/0.3753, allocations: 2.932 MB / 0.5317 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001589/0.3769, allocations: 1.216 MB / 0.5329 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001106/0.377, allocations: 23.72 kB / 0.5329 GB, free: 396 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.3771, allocations: 49.66 kB / 0.5329 GB, free: 344 kB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006585/0.3777, allocations: 133.6 kB / 0.5331 GB, free: 252 kB / 382.1 MB Notification: Performance of pre-optimization done (n=154): time 4.378e-06/0.3778, allocations: 4 kB / 0.5331 GB, free: 248 kB / 382.1 MB Notification: Performance of matching and sorting (n=155): time 0.01608/0.3938, allocations: 9.353 MB / 0.5422 GB, free: 9.609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.3939, allocations: 67.94 kB / 0.5423 GB, free: 9.543 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001206/0.3951, allocations: 0.9629 MB / 0.5432 GB, free: 8.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001436/0.3953, allocations: 56.12 kB / 0.5433 GB, free: 8.945 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004626/0.3958, allocations: 0.771 MB / 0.544 GB, free: 8.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005401/0.3963, allocations: 0.628 MB / 0.5446 GB, free: 7.715 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005943/0.3969, allocations: 307.1 kB / 0.5449 GB, free: 7.551 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.478e-05/0.397, allocations: 304.1 kB / 0.5452 GB, free: 7.254 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001813/0.3988, allocations: 1.253 MB / 0.5464 GB, free: 6.469 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001902/0.4007, allocations: 1.347 MB / 0.5477 GB, free: 5.086 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02368/0.4244, allocations: 6.806 MB / 0.5544 GB, free: 14.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.4245, allocations: 0 / 0.5544 GB, free: 14.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006943/0.4314, allocations: 3.643 MB / 0.558 GB, free: 10.56 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.396e-05/0.4315, allocations: 8 kB / 0.558 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.4315, allocations: 3.984 kB / 0.558 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002803/0.4343, allocations: 0.897 MB / 0.5588 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002497/0.4368, allocations: 0.4966 MB / 0.5593 GB, free: 9.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0262/0.463, allocations: 38.74 MB / 0.5972 GB, free: 15 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001908/0.4649, allocations: 85.88 kB / 0.5972 GB, free: 14.92 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.4652, allocations: 60.14 kB / 0.5973 GB, free: 14.86 MB / 462.1 MB Warning: Assuming fixed start value for the following 3 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 Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002972/0.4682, allocations: 1.742 MB / 0.599 GB, free: 13.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001946/0.4701, allocations: 1.35 MB / 0.6003 GB, free: 11.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02431/0.4944, allocations: 6.783 MB / 0.6069 GB, free: 4.922 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.731e-06/0.4945, allocations: 0 / 0.6069 GB, free: 4.922 MB / 462.1 MB Notification: Performance of matching and sorting (n=228) (initialization_lambda0): time 0.006886/0.5014, allocations: 3.633 MB / 0.6105 GB, free: 1.238 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/0.5014, allocations: 4 kB / 0.6105 GB, free: 1.234 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.5014, allocations: 4 kB / 0.6105 GB, free: 1.23 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002726/0.5041, allocations: 0.8936 MB / 0.6114 GB, free: 276 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002505/0.5067, allocations: 0.4996 MB / 0.6119 GB, free: 15.79 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02588/0.5326, allocations: 38.74 MB / 0.6497 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001813/0.5344, allocations: 87.84 kB / 0.6498 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/0.5346, allocations: 55.98 kB / 0.6498 GB, free: 5.531 MB / 0.4981 GB Warning: Assuming fixed start value for the following 3 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (203): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 25 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%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005867/0.5352, allocations: 297 kB / 0.6501 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002994/0.5355, allocations: 143 kB / 0.6502 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005779/0.5413, allocations: 3.16 MB / 0.6533 GB, free: 1.891 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.5413, allocations: 7.969 kB / 0.6533 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.5413, allocations: 0 / 0.6533 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003546/0.5417, allocations: 236.1 kB / 0.6536 GB, free: 1.633 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003233/0.542, allocations: 79.92 kB / 0.6536 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.543, allocations: 75.91 kB / 0.6537 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003174/0.5434, allocations: 137.1 kB / 0.6538 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01129/0.5547, allocations: 4.605 MB / 0.6583 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005814/0.5605, allocations: 4.294 MB / 0.6625 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001731/0.5622, allocations: 1.42 MB / 0.6639 GB, free: 6.961 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0008725/0.5631, allocations: 0.6661 MB / 0.6646 GB, free: 6.285 MB / 0.5137 GB Notification: Performance of Backend: time 4.91e-07/0.5631, allocations: 0 / 0.6646 GB, free: 6.285 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01024/0.5734, allocations: 9.039 MB / 0.6734 GB, free: 12.65 MB / 0.5294 GB Notification: Performance of SimCode: time 0.00883/0.5822, allocations: 7.347 MB / 0.6806 GB, free: 5.297 MB / 0.5294 GB Notification: Performance of Templates: time 0.2504/0.8326, allocations: 51.65 MB / 0.731 GB, free: 184.8 MB / 0.5606 GB make -j1 -f AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001.sim & ./AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_case_studies.Heat_network.HC_case_001.pipe 2>&1)