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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Hydraulic_circuit,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Hydraulic_circuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Hydraulic_circuit,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Hydraulic_circuit",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.001007/0.001007, allocations: 90.52 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.005663/0.005663, allocations: 171.1 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.116/1.116, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1608/0.1608, allocations: 22.35 MB / 313.8 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002418, allocations: 8 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1986/0.1989, allocations: 55.98 MB / 438.7 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Hydraulic_circuit): time 0.00209/0.201, allocations: 3.27 MB / 442 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.2021, allocations: 1.071 MB / 443 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.2022, allocations: 5.906 kB / 443 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.2024, allocations: 71.69 kB / 443.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000273/0.2027, allocations: 218 kB / 443.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.203, allocations: 188.2 kB / 443.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006824/0.2037, allocations: 1.363 MB / 444.9 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004908/0.2042, allocations: 0.6549 MB / 445.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002428/0.2045, allocations: 364.6 kB / 445.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004005/0.2049, allocations: 0.5051 MB / 446.4 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.666e-05/0.2049, allocations: 52.38 kB / 446.4 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001397/0.2051, allocations: 86.05 kB / 446.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.2052, allocations: 271.7 kB / 446.8 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.2055, allocations: 450.6 kB / 447.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005842/0.2061, allocations: 1.298 MB / 448.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2061, allocations: 0 / 448.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2061, allocations: 0 / 448.5 MB, free: 33.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.333e-06/0.2061, allocations: 0 / 448.5 MB, free: 33.94 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.001857/0.208, allocations: 1.155 MB / 449.7 MB, free: 33.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.208, allocations: 9.406 kB / 449.7 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.9e-05/0.2081, allocations: 110.9 kB / 449.8 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.2082, allocations: 81.19 kB / 449.9 MB, free: 33.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004965/0.2087, allocations: 0.5499 MB / 450.4 MB, free: 32.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.2088, allocations: 51.09 kB / 450.5 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.2089, allocations: 72.47 kB / 450.5 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001129/0.21, allocations: 0.8429 MB / 451.4 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.233e-05/0.21, allocations: 0 / 451.4 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.372e-05/0.2101, allocations: 25.56 kB / 451.4 MB, free: 32.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/0.2101, allocations: 27.02 kB / 451.4 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.2113, allocations: 0.7711 MB / 452.2 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003082/0.2144, allocations: 3.271 MB / 455.5 MB, free: 29.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/0.2163, allocations: 1.027 MB / 456.5 MB, free: 29.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006402/0.217, allocations: 448.4 kB / 456.9 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.967e-05/0.217, allocations: 14.55 kB / 457 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.663e-05/0.2171, allocations: 38.78 kB / 457 MB, free: 29.33 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001822/0.2172, allocations: 46.97 kB / 457 MB, free: 29.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 1.633e-06/0.2173, allocations: 3.938 kB / 457 MB, free: 29.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.003187/0.2204, allocations: 1.963 MB / 459 MB, free: 28.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.941e-05/0.2205, allocations: 61.36 kB / 459.1 MB, free: 28.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003712/0.2209, allocations: 445.4 kB / 459.5 MB, free: 27.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.765e-05/0.2209, allocations: 36.23 kB / 459.5 MB, free: 27.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.221, allocations: 310.5 kB / 459.8 MB, free: 27.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.2212, allocations: 240.5 kB / 460.1 MB, free: 27.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.778e-05/0.2213, allocations: 65.08 kB / 460.1 MB, free: 27.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.932e-05/0.2213, allocations: 369.8 kB / 460.5 MB, free: 27.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007118/0.222, allocations: 460.5 kB / 461 MB, free: 26.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007528/0.2228, allocations: 0.5445 MB / 461.5 MB, free: 26.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008824/0.2316, allocations: 2.848 MB / 464.3 MB, free: 25.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2317, allocations: 0 / 464.3 MB, free: 25.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002141/0.2338, allocations: 1.331 MB / 465.7 MB, free: 25.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.919e-05/0.2338, allocations: 134.9 kB / 465.8 MB, free: 25.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.2339, allocations: 10.34 kB / 465.8 MB, free: 25.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006164/0.2345, allocations: 217.3 kB / 466 MB, free: 25.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/0.2359, allocations: 304.6 kB / 466.3 MB, free: 25.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003726/0.2396, allocations: 7.949 MB / 474.3 MB, free: 17.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005281/0.2402, allocations: 67.2 kB / 474.3 MB, free: 17.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.502e-05/0.2403, allocations: 29.48 kB / 474.4 MB, free: 17.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.4e-06/0.2403, allocations: 4.406 kB / 474.4 MB, free: 17.29 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.0008393/0.2411, allocations: 0.5389 MB / 474.9 MB, free: 17.06 MB / 350.1 MB Error: post-optimization module replaceHomotopyWithSimplified (initialization) failed. Error: No system for the symbolic initialization was generated