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.001084/0.001084, allocations: 113.2 kB / 16.37 MB, free: 6.012 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.001121/0.001121, allocations: 191.2 kB / 17.31 MB, free: 5.613 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09112/0.09112, allocations: 22.33 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 62.09 kB / 382.3 MB, free: 41.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09178/0.09308, allocations: 54.96 MB / 437.2 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_001): time 0.01228/0.1054, allocations: 11.93 MB / 449.1 MB, free: 236 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006969/0.1124, allocations: 3.383 MB / 452.5 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002074/0.1145, allocations: 63.62 kB / 452.6 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.1162, allocations: 0.515 MB / 453.1 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003679/0.1198, allocations: 1.304 MB / 454.4 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002797/0.1227, allocations: 1.021 MB / 455.4 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007809/0.1305, allocations: 6.166 MB / 461.6 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007265/0.1378, allocations: 4.833 MB / 466.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004548/0.1423, allocations: 2.47 MB / 468.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005442/0.1478, allocations: 2.82 MB / 471.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002254/0.1501, allocations: 0.746 MB / 472.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002565/0.1527, allocations: 0.7656 MB / 473.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003342/0.156, allocations: 1.886 MB / 475.1 MB, free: 6.145 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006571/0.1626, allocations: 2.748 MB / 477.9 MB, free: 3.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01101/0.1736, allocations: 8.204 MB / 486.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.1737, allocations: 0 / 486.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1737, allocations: 0 / 486.1 MB, free: 11.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002149/0.1739, allocations: 0 / 486.1 MB, free: 11.16 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.01482/0.1887, allocations: 4.932 MB / 491 MB, free: 6.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1888, allocations: 8.031 kB / 491 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009127/0.1897, allocations: 424 kB / 491.4 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004369/0.1941, allocations: 2.406 MB / 493.8 MB, free: 3.277 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002261/0.1943, allocations: 281 kB / 494.1 MB, free: 2.996 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006676/0.195, allocations: 376 kB / 494.5 MB, free: 2.629 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008532/0.2035, allocations: 4.789 MB / 499.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.53e-05/0.2036, allocations: 0 / 499.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003526/0.204, allocations: 136 kB / 499.4 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.106e-05/0.2041, allocations: 80 kB / 499.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007926/0.212, allocations: 4.075 MB / 0.4917 GB, free: 9.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2238/0.4358, allocations: 20.21 MB / 0.5115 GB, free: 54.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01306/0.4489, allocations: 5.79 MB / 0.5171 GB, free: 54.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003754/0.4527, allocations: 2.196 MB / 0.5193 GB, free: 54.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002416/0.453, allocations: 45.42 kB / 0.5193 GB, free: 54.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.453, allocations: 69.17 kB / 0.5194 GB, free: 54.46 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00195/0.455, allocations: 294.1 kB / 0.5197 GB, free: 54.45 MB / 382.1 MB Notification: Performance of pre-optimization done (n=287): time 7.925e-06/0.455, allocations: 0 / 0.5197 GB, free: 54.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=289): time 0.02902/0.484, allocations: 16.82 MB / 0.5361 GB, free: 43.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.041e-05/0.4842, allocations: 113.5 kB / 0.5362 GB, free: 43.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002549/0.4867, allocations: 1.726 MB / 0.5379 GB, free: 42.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007431/0.4875, allocations: 72.33 kB / 0.538 GB, free: 42.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000625/0.4881, allocations: 1.322 MB / 0.5393 GB, free: 41.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001017/0.4891, allocations: 1.088 MB / 0.5403 GB, free: 40.44 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009303/0.4901, allocations: 0.5406 MB / 0.5408 GB, free: 40.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.089e-05/0.4901, allocations: 305.1 kB / 0.5411 GB, free: 39.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002787/0.4929, allocations: 2.226 MB / 0.5433 GB, free: 38.32 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002894/0.4958, allocations: 2.401 MB / 0.5457 GB, free: 35.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04153/0.5373, allocations: 12.66 MB / 0.558 GB, free: 23.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.287e-06/0.5374, allocations: 0 / 0.558 GB, free: 23.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=411) (initialization): time 0.01066/0.548, allocations: 6.529 MB / 0.5644 GB, free: 16.46 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.5481, allocations: 8 kB / 0.5644 GB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.5481, allocations: 4 kB / 0.5644 GB, free: 16.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004516/0.5526, allocations: 1.72 MB / 0.5661 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004624/0.5573, allocations: 0.9128 MB / 0.567 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04677/0.6041, allocations: 71.99 MB / 0.6373 GB, free: 15.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003321/0.6074, allocations: 143.8 kB / 0.6374 GB, free: 14.99 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000641/0.6081, allocations: 116 kB / 0.6375 GB, free: 14.88 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