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_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.HNcontrol_HC_SS_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001") translateModel(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 114.7 kB / 16.42 MB, free: 6.031 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.001106/0.001106, allocations: 190 kB / 17.35 MB, free: 5.633 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.366/1.366, 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.09479/0.09479, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.91 kB / 437.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08393/0.08519, allocations: 54.95 MB / 492.7 MB, free: 4.734 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001): time 0.01135/0.09657, allocations: 11.93 MB / 0.4928 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005823/0.1024, allocations: 3.379 MB / 0.4961 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.1038, allocations: 63.62 kB / 0.4962 GB, free: 5.297 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001105/0.1049, allocations: 0.5384 MB / 0.4967 GB, free: 4.754 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002635/0.1076, allocations: 1.363 MB / 0.498 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001963/0.1096, allocations: 1.022 MB / 0.499 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.185/0.2946, allocations: 6.156 MB / 0.505 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00476/0.2994, allocations: 4.834 MB / 0.5097 GB, free: 7.027 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003098/0.3025, allocations: 2.515 MB / 0.5122 GB, free: 6.805 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003649/0.3062, allocations: 2.807 MB / 0.5149 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001149/0.3073, allocations: 0.7381 MB / 0.5157 GB, free: 6.484 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001555/0.3089, allocations: 0.7744 MB / 0.5164 GB, free: 6.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001523/0.3104, allocations: 1.885 MB / 0.5183 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003162/0.3136, allocations: 2.747 MB / 0.5209 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006028/0.3196, allocations: 8.195 MB / 0.5289 GB, free: 1.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3196, allocations: 1.75 kB / 0.5289 GB, free: 1.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3197, allocations: 0 / 0.5289 GB, free: 1.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001302/0.3198, allocations: 0 / 0.5289 GB, free: 1.16 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: 857 * Number of variables: 857 Notification: Performance of Generate backend data structure: time 0.01177/0.3316, allocations: 4.922 MB / 0.5337 GB, free: 14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3316, allocations: 8.938 kB / 0.5338 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009138/0.3325, allocations: 422.4 kB / 0.5342 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00408/0.3366, allocations: 2.403 MB / 0.5365 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002127/0.3368, allocations: 283.8 kB / 0.5368 GB, free: 11.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006497/0.3375, allocations: 377.1 kB / 0.5371 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007892/0.3454, allocations: 4.781 MB / 0.5418 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.488e-05/0.3455, allocations: 0 / 0.5418 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003927/0.3459, allocations: 135.1 kB / 0.5419 GB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-05/0.3459, allocations: 88.59 kB / 0.542 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006742/0.3527, allocations: 4.067 MB / 0.546 GB, free: 5.109 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02963/0.3823, allocations: 20.23 MB / 0.5657 GB, free: 15.99 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01222/0.3946, allocations: 5.772 MB / 0.5714 GB, free: 10.19 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003466/0.3981, allocations: 2.201 MB / 0.5735 GB, free: 7.984 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001927/0.3983, allocations: 47.55 kB / 0.5736 GB, free: 7.949 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.511e-05/0.3983, allocations: 56.83 kB / 0.5736 GB, free: 7.883 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001756/0.4001, allocations: 297.7 kB / 0.5739 GB, free: 7.594 MB / 430.1 MB Notification: Performance of pre-optimization done (n=287): time 7.314e-06/0.4001, allocations: 0 / 0.5739 GB, free: 7.594 MB / 430.1 MB Notification: Performance of matching and sorting (n=289): time 0.03552/0.4356, allocations: 17.24 MB / 0.5907 GB, free: 5.258 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.902e-05/0.4357, allocations: 107.4 kB / 0.5909 GB, free: 5.133 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002784/0.4385, allocations: 1.731 MB / 0.5925 GB, free: 3.359 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000482/0.439, allocations: 69.7 kB / 0.5926 GB, free: 3.285 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000917/0.4399, allocations: 1.323 MB / 0.5939 GB, free: 1.949 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001294/0.4412, allocations: 1.09 MB / 0.595 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001449/0.4427, allocations: 0.5385 MB / 0.5955 GB, free: 328 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.385e-05/0.4428, allocations: 305.1 kB / 0.5958 GB, free: 20 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003678/0.4465, allocations: 2.216 MB / 0.5979 GB, free: 13.79 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003773/0.4502, allocations: 2.399 MB / 0.6003 GB, free: 11.32 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04731/0.4976, allocations: 12.63 MB / 0.6126 GB, free: 14.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.866e-06/0.4976, allocations: 0 / 0.6126 GB, free: 14.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=410) (initialization): time 0.01621/0.5138, allocations: 6.836 MB / 0.6193 GB, free: 7.664 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.5139, allocations: 15.97 kB / 0.6193 GB, free: 7.648 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.5139, allocations: 7.938 kB / 0.6193 GB, free: 7.641 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008208/0.5221, allocations: 2.065 MB / 0.6213 GB, free: 5.453 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004275/0.5264, allocations: 0.8462 MB / 0.6222 GB, free: 4.637 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04862/0.5751, allocations: 70.5 MB / 0.691 GB, free: 7.734 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003288/0.5784, allocations: 143.8 kB / 0.6912 GB, free: 7.594 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006933/0.5791, allocations: 116.1 kB / 0.6913 GB, free: 7.48 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 SS1.HE.Tho:VARIABLE(min = 0.0 start = 371.95 unit = "K" fixed = true nominal = 300.0 ) 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.005574/0.5847, allocations: 3.009 MB / 0.6942 GB, free: 4.461 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.003773/0.5885, allocations: 2.383 MB / 0.6965 GB, free: 2.004 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.04791/0.6364, allocations: 12.57 MB / 0.7088 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.067e-05/0.6364, allocations: 4 kB / 0.7088 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of matching and sorting (n=410) (initialization_lambda0): time 0.2215/0.8579, allocations: 6.747 MB / 0.7154 GB, free: 180.8 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.8579, allocations: 6.562 kB / 0.7154 GB, free: 180.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.858, allocations: 6.656 kB / 0.7154 GB, free: 180.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007728/0.8657, allocations: 2.06 MB / 0.7174 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004452/0.8702, allocations: 0.8306 MB / 0.7182 GB, free: 180.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03813/0.9083, allocations: 70.48 MB / 0.7871 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003634/0.912, allocations: 138.5 kB / 0.7872 GB, free: 118.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009186/0.9129, allocations: 120.6 kB / 0.7873 GB, free: 118.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 SS1.HE.Tho:VARIABLE(min = 0.0 start = 371.95 unit = "K" fixed = true nominal = 300.0 ) 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: 21 * 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 (351): * Single equations (assignments): 305 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 46 * Mixed (continuous/discrete) equation systems: 0 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,14)} Notification: Performance of prepare postOptimizeDAE: time 0.001655/0.9146, allocations: 375.2 kB / 0.7877 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009994/0.9156, allocations: 251.1 kB / 0.7879 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01226/0.9279, allocations: 6.007 MB / 0.7938 GB, free: 116.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.18e-05/0.9279, allocations: 15.23 kB / 0.7938 GB, free: 116.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/0.9279, allocations: 1.656 kB / 0.7938 GB, free: 116.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008122/0.9287, allocations: 354.2 kB / 0.7941 GB, free: 115.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007936/0.9295, allocations: 141.5 kB / 0.7943 GB, free: 115.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00221/0.9318, allocations: 122.8 kB / 0.7944 GB, free: 115.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006279/0.9324, allocations: 270.8 kB / 0.7946 GB, free: 115.8 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01921/0.9516, allocations: 8.207 MB / 0.8026 GB, free: 112.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009361/0.961, allocations: 7.487 MB / 0.81 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002716/0.9637, allocations: 2.505 MB / 0.8124 GB, free: 108.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001572/0.9653, allocations: 1.182 MB / 0.8136 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of Backend: time 1.152e-06/0.9653, allocations: 0 / 0.8136 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01687/0.9822, allocations: 16.22 MB / 0.8294 GB, free: 91.76 MB / 0.5606 GB Notification: Performance of SimCode: time 0.01398/0.9962, allocations: 12.4 MB / 0.8415 GB, free: 79.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.1129/1.109, allocations: 94.5 MB / 0.9338 GB, free: 1.508 MB / 0.5762 GB make -j1 -f AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001.sim & ./AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001.pipe 2>&1)