Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001.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.HVAC_simple.AHU_control_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001") translateModel(AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 116.2 kB / 16.42 MB, free: 6.5 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.001045/0.001045, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.315/1.315, allocations: 222.9 MB / 241.1 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09348/0.09348, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 63.91 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0895/0.0909, allocations: 54.96 MB / 492.7 MB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001): time 0.006038/0.09697, allocations: 5.749 MB / 498.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00283/0.09982, allocations: 1.746 MB / 0.4885 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004954/0.1003, allocations: 11.94 kB / 0.4885 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002911/0.1006, allocations: 134.6 kB / 0.4886 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007553/0.1014, allocations: 344.9 kB / 0.4889 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008818/0.1023, allocations: 475.2 kB / 0.4894 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.1038, allocations: 1.68 MB / 0.491 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009537/0.1048, allocations: 0.9463 MB / 0.492 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005684/0.1054, allocations: 0.6701 MB / 0.4926 GB, free: 8.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007979/0.1062, allocations: 0.7941 MB / 0.4934 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001854/0.1064, allocations: 168 kB / 0.4936 GB, free: 8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002062/0.1066, allocations: 168 kB / 0.4937 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002572/0.1069, allocations: 359 kB / 0.4941 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005757/0.1074, allocations: 0.7041 MB / 0.4947 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001345/0.1088, allocations: 1.689 MB / 0.4964 GB, free: 5.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1088, allocations: 0 / 0.4964 GB, free: 5.082 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1088, allocations: 0 / 0.4964 GB, free: 5.082 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.1088, allocations: 0 / 0.4964 GB, free: 5.082 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 330 * Number of variables: 330 Notification: Performance of Generate backend data structure: time 0.00307/0.1119, allocations: 1.56 MB / 0.4979 GB, free: 3.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.182e-05/0.1119, allocations: 8.031 kB / 0.4979 GB, free: 3.461 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000197/0.1121, allocations: 124.2 kB / 0.498 GB, free: 3.34 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006589/0.1128, allocations: 0.5106 MB / 0.4985 GB, free: 2.789 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.799e-05/0.1129, allocations: 98.59 kB / 0.4986 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.1131, allocations: 131.9 kB / 0.4988 GB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002053/0.1151, allocations: 1.362 MB / 0.5001 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.1152, allocations: 0 / 0.5001 GB, free: 1.168 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.1153, allocations: 52 kB / 0.5001 GB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.1153, allocations: 32 kB / 0.5002 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.184/0.2993, allocations: 1.255 MB / 0.5014 GB, free: 21.81 MB / 382.1 MB Warning: Alias set with conflicting start values * Candidate: Room1.T(start = Room1.Tstart = 291.15, confidence number = 2) * Candidate: Room1.air.T(start = 288.15, confidence number = 8) * Candidate: Room1.heatPort.T(start = 288.15, confidence number = 8) * Candidate: conv1a.port_a.T(start = 288.15, confidence number = 8) => Select value from Room1.T(start = Room1.Tstart = 291.15) for variable: Room1.T Warning: Alias set with conflicting start values * Candidate: Room2.T(start = Room2.Tstart = 291.15, confidence number = 2) * Candidate: Room2.air.T(start = 288.15, confidence number = 8) * Candidate: Room2.heatPort.T(start = 288.15, confidence number = 8) * Candidate: conv2a.port_a.T(start = 288.15, confidence number = 8) => Select value from Room2.T(start = Room2.Tstart = 291.15) for variable: Room2.T Warning: Alias set with conflicting start values * Candidate: U1.T(start = U1.Tstart = 293.15, confidence number = 2) * Candidate: U1.air.T(start = 288.15, confidence number = 8) => Select value from U1.T(start = U1.Tstart = 293.15) for variable: U1.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006228/0.3056, allocations: 4.531 MB / 0.5058 GB, free: 20.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001579/0.3072, allocations: 1.136 MB / 0.5069 GB, free: 20.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008302/0.308, allocations: 0.6011 MB / 0.5075 GB, free: 20.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.058e-05/0.3081, allocations: 23.16 kB / 0.5075 GB, free: 20.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/0.3081, allocations: 53.06 kB / 0.5076 GB, free: 20.29 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006677/0.3088, allocations: 196.9 kB / 0.5078 GB, free: 20.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=147): time 3.136e-06/0.3088, allocations: 1.875 kB / 0.5078 GB, free: 20.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=167): time 0.01498/0.3238, allocations: 5.869 MB / 0.5135 GB, free: 19.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.304e-05/0.3238, allocations: 95.8 kB / 0.5136 GB, free: 19.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002317/0.3241, allocations: 252.2 kB / 0.5138 GB, free: 19.13 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.657e-05/0.3242, allocations: 51.58 kB / 0.5139 GB, free: 19.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.3243, allocations: 383.3 kB / 0.5143 GB, free: 18.87 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003022/0.3246, allocations: 0.5895 MB / 0.5148 GB, free: 18.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003794/0.325, allocations: 251.1 kB / 0.5151 GB, free: 18.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.326e-05/0.3251, allocations: 320.5 kB / 0.5154 GB, free: 18.15 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000892/0.326, allocations: 0.5476 MB / 0.5159 GB, free: 18.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001011/0.327, allocations: 0.728 MB / 0.5166 GB, free: 17.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03412/0.3611, allocations: 6.217 MB / 0.5227 GB, free: 15.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.3612, allocations: 1.188 kB / 0.5227 GB, free: 15.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.004321/0.3655, allocations: 1.998 MB / 0.5247 GB, free: 14.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.3655, allocations: 6.469 kB / 0.5247 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.3656, allocations: 8 kB / 0.5247 GB, free: 14.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002308/0.3679, allocations: 0.5116 MB / 0.5252 GB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006538/0.3744, allocations: 0.9316 MB / 0.5261 GB, free: 14.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/0.3892, allocations: 22.21 MB / 0.5478 GB, free: 7.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009643/0.3902, allocations: 46.05 kB / 0.5478 GB, free: 7.828 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001153/0.3903, allocations: 59.44 kB / 0.5479 GB, free: 7.809 MB / 398.1 MB Warning: Assuming fixed start value for the following 6 variables: U1.T:VARIABLE(min = 0.0 start = U1.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real Room2.p:VARIABLE(min = 0.0 start = Room2.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real Room2.T:VARIABLE(min = 0.0 start = Room2.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Room1.p:VARIABLE(min = 0.0 start = Room1.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real Room1.T:VARIABLE(min = 0.0 start = Room1.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0013/0.3916, allocations: 0.7307 MB / 0.5486 GB, free: 7.375 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009646/0.3926, allocations: 0.72 MB / 0.5493 GB, free: 6.898 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.03318/0.4258, allocations: 6.181 MB / 0.5553 GB, free: 1.555 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.11e-06/0.4258, allocations: 4 kB / 0.5553 GB, free: 1.551 MB / 398.1 MB Notification: Performance of matching and sorting (n=190) (initialization_lambda0): time 0.004442/0.4302, allocations: 1.966 MB / 0.5572 GB, free: 15.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.4303, allocations: 12.38 kB / 0.5573 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.4303, allocations: 8 kB / 0.5573 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002311/0.4326, allocations: 0.5089 MB / 0.5578 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006621/0.4392, allocations: 0.9324 MB / 0.5587 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0177/0.4569, allocations: 22.2 MB / 0.5804 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.458, allocations: 48.11 kB / 0.5804 GB, free: 5.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.4581, allocations: 63.97 kB / 0.5805 GB, free: 5.824 MB / 430.1 MB Warning: Assuming fixed start value for the following 6 variables: U1.T:VARIABLE(min = 0.0 start = U1.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real Room2.p:VARIABLE(min = 0.0 start = Room2.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real Room2.T:VARIABLE(min = 0.0 start = Room2.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Room1.p:VARIABLE(min = 0.0 start = Room1.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real Room1.T:VARIABLE(min = 0.0 start = Room1.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (AHUon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 7 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 7 systems {1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,5,100.0%), (1,1,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0004972/0.4586, allocations: 287.6 kB / 0.5807 GB, free: 5.539 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.4588, allocations: 79.52 kB / 0.5808 GB, free: 5.461 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00526/0.464, allocations: 2.206 MB / 0.583 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.4641, allocations: 7.969 kB / 0.583 GB, free: 3.215 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.4641, allocations: 4 kB / 0.583 GB, free: 3.211 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.4642, allocations: 144.6 kB / 0.5831 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.4643, allocations: 32 kB / 0.5831 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007252/0.4651, allocations: 43.98 kB / 0.5832 GB, free: 2.977 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002542/0.4653, allocations: 141.8 kB / 0.5833 GB, free: 2.836 MB / 430.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01015/0.4755, allocations: 2.684 MB / 0.5859 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.003521/0.479, allocations: 2.336 MB / 0.5882 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0009684/0.48, allocations: 0.6559 MB / 0.5889 GB, free: 13.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001499/0.4802, allocations: 170 kB / 0.589 GB, free: 12.98 MB / 446.1 MB Notification: Performance of Backend: time 5.61e-07/0.4802, allocations: 0 / 0.589 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01706/0.4972, allocations: 5.108 MB / 0.594 GB, free: 7.688 MB / 446.1 MB Notification: Performance of SimCode: time 0.003504/0.5008, allocations: 2.961 MB / 0.5969 GB, free: 4.676 MB / 446.1 MB Notification: Performance of Templates: time 0.03623/0.537, allocations: 26.57 MB / 0.6228 GB, free: 10.18 MB / 478.1 MB make -j1 -f AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001.sim & ./AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_001.pipe 2>&1)