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.001132/0.001132, allocations: 116.3 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.00112/0.00112, 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09098/0.09098, allocations: 22.33 MB / 313.5 MB, free: 8.918 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 64.34 kB / 382.3 MB, free: 41.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09327/0.09467, allocations: 54.97 MB / 437.2 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002): time 0.01403/0.1087, allocations: 12.12 MB / 449.3 MB, free: 80 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007944/0.1167, allocations: 3.484 MB / 452.8 MB, free: 12.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002267/0.119, allocations: 63.62 kB / 452.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001298/0.1204, allocations: 0.5305 MB / 453.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003494/0.1239, allocations: 1.312 MB / 454.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002677/0.1266, allocations: 1.087 MB / 455.8 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007597/0.1342, allocations: 6.263 MB / 462.1 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006327/0.1406, allocations: 4.896 MB / 467 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004279/0.1449, allocations: 2.509 MB / 469.5 MB, free: 11.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004686/0.1496, allocations: 2.851 MB / 472.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001373/0.151, allocations: 0.7461 MB / 473.1 MB, free: 8.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001354/0.1524, allocations: 0.789 MB / 473.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001521/0.1539, allocations: 1.906 MB / 475.8 MB, free: 5.527 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003381/0.1573, allocations: 2.79 MB / 478.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007297/0.1646, allocations: 8.305 MB / 486.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1646, allocations: 0 / 486.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1646, allocations: 0 / 486.9 MB, free: 10.4 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001744/0.1648, allocations: 0 / 486.9 MB, free: 10.4 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.01411/0.1789, allocations: 5.014 MB / 491.9 MB, free: 5.316 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.179, allocations: 8.031 kB / 491.9 MB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008191/0.1798, allocations: 435.8 kB / 492.3 MB, free: 4.879 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005488/0.1853, allocations: 2.457 MB / 494.8 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003515/0.1857, allocations: 285.1 kB / 495.1 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009843/0.1867, allocations: 379.8 kB / 495.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008594/0.1953, allocations: 4.862 MB / 0.4886 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.566e-05/0.1954, allocations: 3.984 kB / 0.4886 GB, free: 12.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003505/0.1957, allocations: 140 kB / 0.4887 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.31e-05/0.1958, allocations: 84 kB / 0.4888 GB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007062/0.2029, allocations: 4.13 MB / 0.4928 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2312/0.4341, allocations: 20.4 MB / 0.5127 GB, free: 53.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01549/0.4497, allocations: 5.896 MB / 0.5185 GB, free: 53.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003779/0.4535, allocations: 2.232 MB / 0.5207 GB, free: 53.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002427/0.4537, allocations: 49.67 kB / 0.5207 GB, free: 53.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/0.4538, allocations: 62.41 kB / 0.5208 GB, free: 53.27 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001821/0.4556, allocations: 302.5 kB / 0.5211 GB, free: 53.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=294): time 6.412e-06/0.4556, allocations: 0 / 0.5211 GB, free: 53.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=296): time 0.02956/0.4852, allocations: 17.32 MB / 0.538 GB, free: 41.99 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.896e-05/0.4853, allocations: 132.7 kB / 0.5381 GB, free: 41.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/0.4874, allocations: 1.754 MB / 0.5398 GB, free: 40.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005476/0.488, allocations: 76.2 kB / 0.5399 GB, free: 40.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006074/0.4886, allocations: 1.331 MB / 0.5412 GB, free: 39.64 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009374/0.4896, allocations: 1.115 MB / 0.5423 GB, free: 38.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009157/0.4905, allocations: 0.5509 MB / 0.5428 GB, free: 38.37 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.37e-05/0.4905, allocations: 305.1 kB / 0.5431 GB, free: 38.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002838/0.4934, allocations: 2.248 MB / 0.5453 GB, free: 36.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002866/0.4963, allocations: 2.429 MB / 0.5477 GB, free: 33.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04162/0.5379, allocations: 12.76 MB / 0.5601 GB, free: 20.87 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.606e-06/0.5379, allocations: 8 kB / 0.5602 GB, free: 20.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.01326/0.5512, allocations: 6.912 MB / 0.5669 GB, free: 13.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.5513, allocations: 8 kB / 0.5669 GB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.5513, allocations: 8.094 kB / 0.5669 GB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007201/0.5585, allocations: 2.08 MB / 0.5689 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004725/0.5632, allocations: 0.948 MB / 0.5699 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05414/0.6174, allocations: 73.69 MB / 0.6418 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003173/0.6206, allocations: 147.8 kB / 0.642 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005253/0.6212, allocations: 116 kB / 0.6421 GB, free: 10 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