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.001385/0.001385, allocations: 105.6 kB / 16.35 MB, free: 5.824 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.001601/0.001602, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.462/1.462, 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.09384/0.09384, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 63.02 kB / 382.2 MB, free: 41.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09117/0.09265, allocations: 54.96 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002): time 0.0126/0.1053, allocations: 12.13 MB / 449.3 MB, free: 52 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007624/0.1129, allocations: 3.476 MB / 452.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002559/0.1155, allocations: 67.62 kB / 452.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.1173, allocations: 0.5305 MB / 453.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005389/0.1227, allocations: 1.312 MB / 454.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00295/0.1256, allocations: 1.08 MB / 455.8 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007786/0.1334, allocations: 6.263 MB / 462.1 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007323/0.1408, allocations: 4.908 MB / 467 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005432/0.1462, allocations: 2.505 MB / 469.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004737/0.151, allocations: 2.855 MB / 472.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00204/0.1531, allocations: 0.7461 MB / 473.1 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002879/0.1559, allocations: 0.7851 MB / 473.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003051/0.159, allocations: 1.902 MB / 475.8 MB, free: 5.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005805/0.1648, allocations: 2.786 MB / 478.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01044/0.1753, allocations: 8.313 MB / 486.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.063e-05/0.1753, allocations: 3.938 kB / 486.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1754, allocations: 0 / 486.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003003/0.1757, allocations: 0 / 486.9 MB, free: 10.38 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: 873 * Number of variables: 873 Notification: Performance of Generate backend data structure: time 0.01819/0.1939, allocations: 5.018 MB / 491.9 MB, free: 5.289 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.1939, allocations: 8.031 kB / 491.9 MB, free: 5.281 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001992/0.1959, allocations: 431.9 kB / 492.3 MB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00652/0.2025, allocations: 2.45 MB / 494.8 MB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003897/0.2029, allocations: 289.1 kB / 495 MB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001738/0.2046, allocations: 379.8 kB / 495.4 MB, free: 1.695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01222/0.2169, allocations: 4.858 MB / 0.4886 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.758e-05/0.217, allocations: 0 / 0.4886 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004282/0.2174, allocations: 140 kB / 0.4887 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.754e-05/0.2175, allocations: 84 kB / 0.4888 GB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007604/0.2251, allocations: 4.134 MB / 0.4928 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2306/0.4557, allocations: 20.4 MB / 0.5127 GB, free: 53.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01258/0.4683, allocations: 5.893 MB / 0.5185 GB, free: 53.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003393/0.4718, allocations: 2.231 MB / 0.5207 GB, free: 53.31 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002191/0.472, allocations: 50.08 kB / 0.5207 GB, free: 53.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.472, allocations: 65.19 kB / 0.5208 GB, free: 53.27 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001657/0.4737, allocations: 298.6 kB / 0.5211 GB, free: 53.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=294): time 7.204e-06/0.4737, allocations: 0 / 0.5211 GB, free: 53.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=296): time 0.02901/0.5027, allocations: 17.32 MB / 0.538 GB, free: 41.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.958e-05/0.5029, allocations: 140.7 kB / 0.5381 GB, free: 41.83 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002291/0.5051, allocations: 1.758 MB / 0.5398 GB, free: 40.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003947/0.5056, allocations: 68.95 kB / 0.5399 GB, free: 40.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006774/0.5062, allocations: 1.335 MB / 0.5412 GB, free: 39.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009133/0.5072, allocations: 1.116 MB / 0.5423 GB, free: 38.64 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009103/0.5081, allocations: 0.5474 MB / 0.5428 GB, free: 38.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.816e-05/0.5081, allocations: 303.4 kB / 0.5431 GB, free: 38.05 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/0.511, allocations: 2.257 MB / 0.5453 GB, free: 36.18 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00285/0.5139, allocations: 2.433 MB / 0.5477 GB, free: 33.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04023/0.5541, allocations: 12.76 MB / 0.5601 GB, free: 20.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.5542, allocations: 0 / 0.5601 GB, free: 20.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.0134/0.5676, allocations: 6.91 MB / 0.5669 GB, free: 13.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.5676, allocations: 4 kB / 0.5669 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.82e-05/0.5677, allocations: 4 kB / 0.5669 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007142/0.5748, allocations: 2.09 MB / 0.5689 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004469/0.5793, allocations: 0.9492 MB / 0.5699 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05496/0.6343, allocations: 73.68 MB / 0.6418 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003749/0.6381, allocations: 157.2 kB / 0.642 GB, free: 10.08 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001012/0.6391, allocations: 115.9 kB / 0.6421 GB, free: 9.965 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 HC.FlowCtrl.y:VARIABLE(flow=false start = HC.FlowCtrl.y_start fixed = true ) "Connector of Real output signal" type: Real SS1.HE.Tho:VARIABLE(min = 0.0 start = 370.75 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 [/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