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.001218/0.001218, allocations: 103.9 kB / 16.35 MB, free: 5.828 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.002013/0.002013, allocations: 190.5 kB / 17.29 MB, free: 5.484 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09265/0.09265, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002021/0.002021, allocations: 61.66 kB / 382.2 MB, free: 41.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1232, allocations: 54.97 MB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001): time 0.01564/0.1389, allocations: 11.91 MB / 449.1 MB, free: 272 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00641/0.1453, allocations: 3.383 MB / 452.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001539/0.1469, allocations: 63.62 kB / 452.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009808/0.1479, allocations: 0.5189 MB / 453.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002346/0.1503, allocations: 1.308 MB / 454.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001967/0.1522, allocations: 1.01 MB / 455.4 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006542/0.1588, allocations: 6.166 MB / 461.6 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005383/0.1642, allocations: 4.84 MB / 466.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003435/0.1677, allocations: 2.47 MB / 468.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004204/0.1719, allocations: 2.816 MB / 471.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001143/0.173, allocations: 0.7383 MB / 472.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001193/0.1742, allocations: 0.7773 MB / 473.2 MB, free: 8.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001379/0.1756, allocations: 1.882 MB / 475.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00271/0.1783, allocations: 2.755 MB / 477.9 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006533/0.1849, allocations: 8.196 MB / 486.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1849, allocations: 0 / 486.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1849, allocations: 0 / 486.1 MB, free: 11.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001749/0.1851, allocations: 4 kB / 486.1 MB, free: 11.19 MB / 366.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.01319/0.1983, allocations: 4.926 MB / 491 MB, free: 6.199 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.1984, allocations: 12.03 kB / 491 MB, free: 6.188 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008902/0.1993, allocations: 424 kB / 491.4 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004443/0.2037, allocations: 2.406 MB / 493.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002234/0.204, allocations: 285 kB / 494.1 MB, free: 3.027 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006714/0.2046, allocations: 372 kB / 494.5 MB, free: 2.664 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00885/0.2135, allocations: 4.789 MB / 499.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.323e-05/0.2136, allocations: 0 / 499.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003755/0.214, allocations: 136 kB / 499.4 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.09e-05/0.2141, allocations: 83.94 kB / 499.5 MB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007197/0.2213, allocations: 4.071 MB / 0.4917 GB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.238/0.4593, allocations: 20.22 MB / 0.5115 GB, free: 55.56 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01271/0.4721, allocations: 5.788 MB / 0.5171 GB, free: 55.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003668/0.4758, allocations: 2.196 MB / 0.5193 GB, free: 55.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000235/0.4761, allocations: 45.39 kB / 0.5193 GB, free: 55.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.4761, allocations: 66.3 kB / 0.5194 GB, free: 55.11 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00213/0.4782, allocations: 300.6 kB / 0.5197 GB, free: 55.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=287): time 7.184e-06/0.4783, allocations: 0 / 0.5197 GB, free: 55.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=289): time 0.02972/0.508, allocations: 16.82 MB / 0.5361 GB, free: 44.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.5081, allocations: 111 kB / 0.5362 GB, free: 44.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002414/0.5105, allocations: 1.727 MB / 0.5379 GB, free: 43.32 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006557/0.5112, allocations: 76.83 kB / 0.5379 GB, free: 43.25 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006999/0.5119, allocations: 1.317 MB / 0.5392 GB, free: 42.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001334/0.5132, allocations: 1.093 MB / 0.5403 GB, free: 41.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009909/0.5142, allocations: 0.5421 MB / 0.5408 GB, free: 40.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.352e-05/0.5143, allocations: 301.1 kB / 0.5411 GB, free: 40.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002936/0.5172, allocations: 2.221 MB / 0.5433 GB, free: 39.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002799/0.5201, allocations: 2.407 MB / 0.5456 GB, free: 36.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04056/0.5606, allocations: 12.66 MB / 0.558 GB, free: 23.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.328e-06/0.5607, allocations: 4 kB / 0.558 GB, free: 23.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01057/0.5712, allocations: 6.52 MB / 0.5644 GB, free: 17.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.919e-05/0.5713, allocations: 11.98 kB / 0.5644 GB, free: 17.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.688e-05/0.5713, allocations: 4.875 kB / 0.5644 GB, free: 17.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004502/0.5758, allocations: 1.72 MB / 0.5661 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004593/0.5805, allocations: 0.9127 MB / 0.567 GB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04736/0.6278, allocations: 71.98 MB / 0.6373 GB, free: 16 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003288/0.6312, allocations: 145.6 kB / 0.6374 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004329/0.6316, allocations: 116 kB / 0.6375 GB, free: 15.76 MB / 462.1 MB Warning: Assuming fixed start value for the following 7 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 closure.tubeC.fluidStream.w:VARIABLE(unit = "kg/s" fixed = true ) type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/Initialization.mo:1212:5-1212:82:writable] Error: Internal error Initialization.preBalanceInitialSystem2 failed because variable $DER.closure.tubeC.fluidStream.w:VARIABLE(unit = "kg/s" ) type: Real does not appear in any equation in the lambda 0 initial system and is not fixable. Error: No system for the symbolic initialization was generated