Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.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_component_models.Hydraulic_circuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit") translateModel(AES.Coursework.ThermSys_component_models.Hydraulic_circuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009575/0.0009574, allocations: 88.41 kB / 15.36 MB, free: 0.7383 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.008752/0.008753, allocations: 171.4 kB / 16.26 MB, free: 6.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.383/1.383, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2097/0.2097, allocations: 22.33 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003699/0.0003701, allocations: 11.94 kB / 382.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3184/0.3188, allocations: 55.99 MB / 438.6 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Hydraulic_circuit): time 0.003138/0.322, allocations: 3.271 MB / 441.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00214/0.3242, allocations: 1.061 MB / 442.9 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003856/0.3246, allocations: 5.688 kB / 442.9 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.3248, allocations: 70.78 kB / 443 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000525/0.3253, allocations: 226.2 kB / 443.2 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006742/0.326, allocations: 182.8 kB / 443.4 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001181/0.3272, allocations: 1.364 MB / 444.7 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000886/0.3281, allocations: 0.6521 MB / 445.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004481/0.3286, allocations: 364.6 kB / 445.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005956/0.3292, allocations: 0.5081 MB / 446.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001002/0.3293, allocations: 49.94 kB / 446.3 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001895/0.3295, allocations: 85.22 kB / 446.4 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002202/0.3297, allocations: 272 kB / 446.7 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003624/0.3301, allocations: 446.7 kB / 447.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009048/0.331, allocations: 1.298 MB / 448.4 MB, free: 34.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.331, allocations: 0 / 448.4 MB, free: 34.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.331, allocations: 0 / 448.4 MB, free: 34.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.331, allocations: 0 / 448.4 MB, free: 34.14 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: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002456/0.3335, allocations: 1.16 MB / 449.6 MB, free: 33.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.065e-05/0.3335, allocations: 8.719 kB / 449.6 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000196/0.3337, allocations: 81.69 kB / 449.6 MB, free: 33.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006775/0.3344, allocations: 0.5622 MB / 450.2 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/0.3345, allocations: 42.81 kB / 450.2 MB, free: 33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001228/0.3346, allocations: 70.25 kB / 450.3 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001393/0.336, allocations: 0.8447 MB / 451.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.671e-05/0.336, allocations: 4 kB / 451.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.642e-05/0.3361, allocations: 26.09 kB / 451.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.3361, allocations: 11.97 kB / 451.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.3375, allocations: 0.7845 MB / 452 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004017/0.3415, allocations: 3.274 MB / 455.3 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002299/0.3438, allocations: 1.019 MB / 456.3 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007386/0.3446, allocations: 455 kB / 456.7 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.044e-05/0.3446, allocations: 9.578 kB / 456.7 MB, free: 29.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.421e-05/0.3447, allocations: 41.89 kB / 456.8 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002677/0.3449, allocations: 42.94 kB / 456.8 MB, free: 29.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 2.585e-06/0.3449, allocations: 0 / 456.8 MB, free: 29.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.003604/0.3486, allocations: 1.972 MB / 458.8 MB, free: 28.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.3486, allocations: 58.28 kB / 458.8 MB, free: 28.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006239/0.3492, allocations: 447 kB / 459.3 MB, free: 28.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.309e-05/0.3493, allocations: 35.8 kB / 459.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002025/0.3495, allocations: 303.2 kB / 459.6 MB, free: 27.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/0.3497, allocations: 242.8 kB / 459.8 MB, free: 27.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001246/0.3499, allocations: 67.22 kB / 459.9 MB, free: 27.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.35, allocations: 377.2 kB / 460.3 MB, free: 27.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008739/0.3509, allocations: 455.4 kB / 460.7 MB, free: 27.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009543/0.3518, allocations: 0.5447 MB / 461.3 MB, free: 26.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/0.3621, allocations: 2.851 MB / 464.1 MB, free: 26.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/0.3621, allocations: 2.359 kB / 464.1 MB, free: 26.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002699/0.3648, allocations: 1.322 MB / 465.4 MB, free: 25.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.199e-05/0.3649, allocations: 142.6 kB / 465.6 MB, free: 25.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.3649, allocations: 2.062 kB / 465.6 MB, free: 25.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007213/0.3657, allocations: 209.4 kB / 465.8 MB, free: 25.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.3673, allocations: 317.3 kB / 466.1 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004748/0.3721, allocations: 7.936 MB / 474 MB, free: 17.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008255/0.3729, allocations: 72.05 kB / 474.1 MB, free: 17.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.415e-05/0.373, allocations: 25.31 kB / 474.1 MB, free: 17.58 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.089e-05/0.373, allocations: 5 kB / 474.1 MB, free: 17.58 MB / 350.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.001108/0.3741, allocations: 0.5438 MB / 474.7 MB, free: 17.34 MB / 350.1 MB Error: post-optimization module replaceHomotopyWithSimplified (initialization) failed. Error: No system for the symbolic initialization was generated