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: "" <> buildModelFMU(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_case_studies_Heat_network_HNcontrol_HC_SS_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_case_studies_Heat_network_HNcontrol_HC_SS_case_002",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001586/0.001586, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.162/2.162, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3401/0.3401, allocations: 22.34 MB / 313.3 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004445/0.0004446, allocations: 8 kB / 381.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3215, allocations: 55.98 MB / 437.9 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HNcontrol_HC_SS_case_002): time 0.01108/0.3326, allocations: 10.23 MB / 448.1 MB, free: 31.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008126/0.3408, allocations: 3.695 MB / 451.8 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002425/0.3433, allocations: 68.62 kB / 451.9 MB, free: 29.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.3446, allocations: 426.4 kB / 452.3 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003616/0.3483, allocations: 1 MB / 453.3 MB, free: 28.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002583/0.3509, allocations: 0.6304 MB / 453.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00794/0.3588, allocations: 3.332 MB / 457.3 MB, free: 25.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006166/0.365, allocations: 3.472 MB / 460.8 MB, free: 24.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004344/0.3694, allocations: 1.792 MB / 462.5 MB, free: 23.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00481/0.3743, allocations: 1.938 MB / 464.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001892/0.3762, allocations: 279.2 kB / 464.8 MB, free: 23.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002516/0.3787, allocations: 310.2 kB / 465.1 MB, free: 23.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002808/0.3815, allocations: 1.249 MB / 466.3 MB, free: 22.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003207/0.3848, allocations: 0.8702 MB / 467.2 MB, free: 22.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0129/0.3977, allocations: 6.644 MB / 473.8 MB, free: 19.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3977, allocations: 4 kB / 473.8 MB, free: 19.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.349e-06/0.3977, allocations: 1.281 kB / 473.8 MB, free: 19.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002908/0.398, allocations: 0 / 473.8 MB, free: 19.57 MB / 350.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.01955/0.4176, allocations: 4.339 MB / 478.2 MB, free: 16.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.22e-05/0.4177, allocations: 9.062 kB / 478.2 MB, free: 16.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003335/0.421, allocations: 482.4 kB / 478.6 MB, free: 16.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003657/0.4247, allocations: 435.1 kB / 479.1 MB, free: 16.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009007/0.4337, allocations: 2.363 MB / 481.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006589/0.4344, allocations: 285.8 kB / 481.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002558/0.437, allocations: 377.6 kB / 482.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/0.4575, allocations: 4.821 MB / 486.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001754/0.4577, allocations: 1.594 kB / 486.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001651/0.4594, allocations: 135.2 kB / 487 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001438/0.4596, allocations: 82.41 kB / 487.1 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0143/0.4739, allocations: 4.134 MB / 491.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05533/0.5292, allocations: 20.69 MB / 0.4999 GB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02102/0.5503, allocations: 5.955 MB / 0.5058 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004945/0.5509, allocations: 54.25 kB / 0.5058 GB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.648e-05/0.551, allocations: 56.88 kB / 0.5059 GB, free: 11.68 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003034/0.554, allocations: 273.7 kB / 0.5061 GB, free: 11.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=294): time 1.276e-05/0.554, allocations: 0 / 0.5061 GB, free: 11.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=296): time 0.05607/0.6101, allocations: 17.55 MB / 0.5233 GB, free: 8.641 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/0.6103, allocations: 137.1 kB / 0.5234 GB, free: 8.48 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004547/0.6148, allocations: 1.741 MB / 0.5251 GB, free: 6.699 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001082/0.6159, allocations: 81.64 kB / 0.5252 GB, free: 6.613 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001363/0.6173, allocations: 1.332 MB / 0.5265 GB, free: 5.262 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002456/0.6198, allocations: 1.109 MB / 0.5275 GB, free: 4.137 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009579/0.6208, allocations: 64 kB / 0.5276 GB, free: 4.074 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003977/0.6212, allocations: 444.8 kB / 0.528 GB, free: 3.633 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006396/0.6276, allocations: 2.2 MB / 0.5302 GB, free: 1.426 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00711/0.6347, allocations: 2.403 MB / 0.5325 GB, free: 14.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008139/0.6429, allocations: 2.465 MB / 0.5349 GB, free: 12.46 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/0.6429, allocations: 0 / 0.5349 GB, free: 12.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=416) (initialization): time 0.0283/0.6713, allocations: 7.138 MB / 0.5419 GB, free: 5.152 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001122/0.6724, allocations: 1.851 MB / 0.5437 GB, free: 3.098 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-05/0.6725, allocations: 8 kB / 0.5437 GB, free: 3.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0137/0.6862, allocations: 2.354 MB / 0.546 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006773/0.693, allocations: 0.7764 MB / 0.5468 GB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3745/1.068, allocations: 68.06 MB / 0.6132 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005202/1.073, allocations: 219.9 kB / 0.6135 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00129/1.074, allocations: 116.1 kB / 0.6136 GB, free: 106.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/1.074, allocations: 5.375 kB / 0.6136 GB, free: 106.6 MB / 462.1 MB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0084/1.083, allocations: 2.424 MB / 0.6159 GB, free: 105.6 MB / 462.1 MB Error: post-optimization module replaceHomotopyWithSimplified (initialization) failed. Error: No system for the symbolic initialization was generated