Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007821/0.0007821, allocations: 88.44 kB / 20.71 MB, free: 3.828 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000802/0.000802, allocations: 173.2 kB / 23.99 MB, free: 0.5508 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8402/0.8402, allocations: 177.2 MB / 204.4 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.06083/0.06083, allocations: 18.13 MB / 278.9 MB, free: 11.53 MB / 266.7 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control") translateModel(AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 417.2 MB, free: 12.09 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.795e-05/1.914e-05, allocations: 2.984 kB / 417.2 MB, free: 12.09 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control): time 0.003583/0.003602, allocations: 5.412 MB / 422.6 MB, free: 8.445 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001852/0.005454, allocations: 1.834 MB / 424.5 MB, free: 7.133 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002903/0.005745, allocations: 31.09 kB / 424.5 MB, free: 7.117 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002864/0.006031, allocations: 219.1 kB / 424.7 MB, free: 6.977 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005836/0.006615, allocations: 0.5376 MB / 425.2 MB, free: 6.613 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000711/0.007326, allocations: 0.5941 MB / 425.8 MB, free: 6.258 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001412/0.008737, allocations: 2.699 MB / 428.5 MB, free: 4.902 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001086/0.009823, allocations: 1.531 MB / 430.1 MB, free: 4.16 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007385/0.01056, allocations: 1.047 MB / 431.1 MB, free: 3.695 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009377/0.0115, allocations: 1.101 MB / 432.2 MB, free: 3.305 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002693/0.01177, allocations: 292.5 kB / 432.5 MB, free: 3.305 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003699/0.01214, allocations: 329.8 kB / 432.8 MB, free: 3.293 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004313/0.01257, allocations: 0.799 MB / 433.6 MB, free: 2.867 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006101/0.01318, allocations: 0.8565 MB / 434.5 MB, free: 2.445 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001581/0.01476, allocations: 3.36 MB / 437.8 MB, free: 72 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.01476, allocations: 1.125 kB / 437.8 MB, free: 72 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01476, allocations: 0 / 437.8 MB, free: 72 kB / 330.7 MB Notification: Performance of Transformations before backend: time 2.522e-05/0.01479, allocations: 0.8438 kB / 437.8 MB, free: 72 kB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.003132/0.01792, allocations: 2.426 MB / 440.3 MB, free: 14.47 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.01795, allocations: 10.36 kB / 440.3 MB, free: 14.47 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002478/0.0182, allocations: 201.4 kB / 440.5 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.0193, allocations: 1.017 MB / 441.5 MB, free: 13.61 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.184e-05/0.01936, allocations: 112.8 kB / 441.6 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002006/0.01956, allocations: 169.6 kB / 441.8 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002319/0.02188, allocations: 2.241 MB / 444 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.0219, allocations: 1.562 kB / 444 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.02202, allocations: 68.91 kB / 444.1 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.02204, allocations: 34.38 kB / 444.1 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002165/0.0242, allocations: 1.829 MB / 445.9 MB, free: 10.55 MB / 346.7 MB Warning: Alias set with conflicting start values * Candidate: heater.T(start = heater.Tstart = 293.15, confidence number = 2) * Candidate: heater.heatPort.T(start = 288.15, confidence number = 8) * Candidate: Ph.port.T(start = 288.15, confidence number = 8) => Select value from heater.T(start = heater.Tstart = 293.15) for variable: heater.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005338/0.02954, allocations: 4.598 MB / 450.5 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003247/0.03279, allocations: 2.271 MB / 452.8 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009839/0.03377, allocations: 0.9298 MB / 453.7 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.83e-05/0.03384, allocations: 13.31 kB / 453.7 MB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.03387, allocations: 55.88 kB / 453.8 MB, free: 2.629 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004266/0.03429, allocations: 175.2 kB / 454 MB, free: 2.457 MB / 346.7 MB Notification: Performance of pre-optimization done (n=135): time 2.856e-06/0.03429, allocations: 0 / 454 MB, free: 2.457 MB / 346.7 MB Notification: Performance of matching and sorting (n=136): time 0.007672/0.04197, allocations: 5.726 MB / 459.7 MB, free: 12.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.04201, allocations: 141.8 kB / 459.8 MB, free: 12.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006409/0.04265, allocations: 0.826 MB / 460.7 MB, free: 11.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.272e-05/0.04274, allocations: 45.7 kB / 460.7 MB, free: 11.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002747/0.04301, allocations: 0.6457 MB / 461.3 MB, free: 10.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003046/0.04332, allocations: 0.5422 MB / 461.9 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003235/0.04364, allocations: 287.6 kB / 462.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.961e-05/0.0437, allocations: 305.1 kB / 462.5 MB, free: 9.805 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009979/0.0447, allocations: 0.9301 MB / 463.4 MB, free: 8.871 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001123/0.04582, allocations: 1.227 MB / 464.6 MB, free: 7.562 MB / 362.7 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/0.05837, allocations: 6.158 MB / 470.8 MB, free: 1.352 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.05837, allocations: 1.438 kB / 470.8 MB, free: 1.352 MB / 362.7 MB Notification: Performance of matching and sorting (n=205) (initialization): time 0.00371/0.06208, allocations: 2.932 MB / 473.7 MB, free: 14.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.0621, allocations: 11.94 kB / 473.7 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/0.06211, allocations: 4 kB / 473.7 MB, free: 14.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.06342, allocations: 0.6775 MB / 474.4 MB, free: 13.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00106/0.06448, allocations: 471.4 kB / 474.9 MB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007139/0.07162, allocations: 15.29 MB / 490.2 MB, free: 12.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005612/0.07218, allocations: 83.91 kB / 490.2 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.502e-05/0.07227, allocations: 63.97 kB / 490.3 MB, free: 12.65 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: EV.lfrac:VARIABLE(start = EV.lfracstart fixed = true ) type: Real heater.T:VARIABLE(min = 0.0 start = heater.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"fluid T\" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.load.fluidStream.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001329/0.0736, allocations: 1.23 MB / 491.5 MB, free: 11.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001057/0.07466, allocations: 1.194 MB / 492.7 MB, free: 10.15 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.01228/0.08694, allocations: 5.98 MB / 498.7 MB, free: 4.105 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.928e-06/0.08694, allocations: 0 / 498.7 MB, free: 4.105 MB / 394.7 MB Notification: Performance of matching and sorting (n=205) (initialization_lambda0): time 0.003384/0.09032, allocations: 2.813 MB / 0.4898 GB, free: 1.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.01e-05/0.09033, allocations: 8 kB / 0.4898 GB, free: 1.242 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.09034, allocations: 4.281 kB / 0.4898 GB, free: 1.238 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.09156, allocations: 0.6572 MB / 0.4904 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/0.09258, allocations: 455.4 kB / 0.4909 GB, free: 104 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006683/0.09927, allocations: 15.25 MB / 0.5057 GB, free: 15.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005491/0.09982, allocations: 75.92 kB / 0.5058 GB, free: 15.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.87e-05/0.09991, allocations: 59.97 kB / 0.5059 GB, free: 15.61 MB / 426.7 MB Warning: Assuming fixed start value for the following 2 variables: EV.lfrac:VARIABLE(start = EV.lfracstart fixed = true ) type: Real heater.T:VARIABLE(min = 0.0 start = heater.Tstart unit = \"K\" fixed = true nominal = 300.0 ) \"fluid T\" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $DER.line.fluidStream.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (179): * Single equations (assignments): 168 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,15)} Notification: Performance of prepare postOptimizeDAE: time 0.0003014/0.1002, allocations: 284.4 kB / 0.5061 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.1004, allocations: 131.1 kB / 0.5063 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002901/0.1033, allocations: 2.502 MB / 0.5087 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.1033, allocations: 7.969 kB / 0.5087 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.1033, allocations: 0 / 0.5087 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.1034, allocations: 127.2 kB / 0.5088 GB, free: 12.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001651/0.1036, allocations: 63.98 kB / 0.5089 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004785/0.104, allocations: 79.84 kB / 0.509 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.1042, allocations: 133 kB / 0.5091 GB, free: 12.24 MB / 426.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005006/0.1092, allocations: 3.513 MB / 0.5125 GB, free: 8.688 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003197/0.1124, allocations: 3.429 MB / 0.5159 GB, free: 5.238 MB / 426.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009663/0.1134, allocations: 1.045 MB / 0.5169 GB, free: 4.195 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005489/0.1139, allocations: 0.5578 MB / 0.5174 GB, free: 3.625 MB / 426.7 MB Notification: Performance of Backend: time 3.81e-07/0.1139, allocations: 0 / 0.5174 GB, free: 3.625 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004153/0.1181, allocations: 4.847 MB / 0.5222 GB, free: 14.52 MB / 442.7 MB Notification: Performance of SimCode: time 0.004079/0.1222, allocations: 5.101 MB / 0.5272 GB, free: 9.355 MB / 442.7 MB Notification: Performance of Templates: time 0.03481/0.157, allocations: 42.52 MB / 0.5687 GB, free: 15.19 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control.makefile [Timeout 660] (rm -f AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control.pipe ; mkfifo AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control.pipe >> ../files/AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control.sim & ./AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control -lv=LOG_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -variableFilter=.* -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_case_studies.Heat_network.HN_heating_station_control.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.804111734032631] Failed to read output from testmodel.py, exit status != 0: 0.16165215009823442 0.168694972 0.152474417 Calling exit ...