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_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003") translateModel(AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001505, allocations: 115.2 kB / 16.42 MB, free: 6.508 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.001687/0.001687, 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.445/1.445, 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.09318/0.09318, allocations: 22.34 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 59.91 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08903/0.09031, allocations: 54.96 MB / 492.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003): time 0.006828/0.09717, allocations: 6.842 MB / 499.5 MB, free: 13.89 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003166/0.1004, allocations: 2.201 MB / 0.49 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003143/0.1007, allocations: 19.94 kB / 0.49 GB, free: 11.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003278/0.101, allocations: 174.1 kB / 0.4902 GB, free: 11.49 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007337/0.1018, allocations: 436.1 kB / 0.4906 GB, free: 11.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009961/0.1028, allocations: 0.6435 MB / 0.4912 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001637/0.1044, allocations: 2.164 MB / 0.4933 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001324/0.1058, allocations: 1.323 MB / 0.4946 GB, free: 6.891 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008383/0.1066, allocations: 0.8922 MB / 0.4955 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00118/0.1078, allocations: 1.059 MB / 0.4965 GB, free: 4.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000251/0.1081, allocations: 220 kB / 0.4967 GB, free: 4.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003377/0.1084, allocations: 252 kB / 0.497 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003579/0.1088, allocations: 474.7 kB / 0.4974 GB, free: 4.008 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007593/0.1095, allocations: 0.9259 MB / 0.4983 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001781/0.1113, allocations: 2.254 MB / 0.5005 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1113, allocations: 4 kB / 0.5005 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1113, allocations: 0 / 0.5005 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.1114, allocations: 0 / 0.5005 GB, free: 0.8125 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.1849/0.2963, allocations: 1.934 MB / 0.5024 GB, free: 21.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2963, allocations: 12.91 kB / 0.5024 GB, free: 21.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000269/0.2966, allocations: 161.5 kB / 0.5026 GB, free: 21.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007731/0.2974, allocations: 0.6366 MB / 0.5032 GB, free: 21.47 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.071e-05/0.2975, allocations: 126.2 kB / 0.5033 GB, free: 21.47 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002115/0.2977, allocations: 166.9 kB / 0.5035 GB, free: 21.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002601/0.3003, allocations: 1.807 MB / 0.5053 GB, free: 21.35 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.08e-05/0.3003, allocations: 0 / 0.5053 GB, free: 21.35 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001436/0.3005, allocations: 67.94 kB / 0.5053 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/0.3005, allocations: 40.38 kB / 0.5054 GB, free: 21.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002776/0.3033, allocations: 1.692 MB / 0.507 GB, free: 21.33 MB / 382.1 MB Warning: Alias set with conflicting start values * Candidate: Room1.T(start = Room1.Tstart = 293.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: LocalActuator_Room1.port.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 = 293.15) for variable: Room1.T Warning: Alias set with conflicting start values * Candidate: Room2.T(start = Room2.Tstart = 293.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 = 293.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.009248/0.3126, allocations: 5.898 MB / 0.5128 GB, free: 19.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002493/0.3151, allocations: 1.601 MB / 0.5143 GB, free: 19.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/0.3163, allocations: 0.8214 MB / 0.5151 GB, free: 19.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001151/0.3164, allocations: 34.08 kB / 0.5152 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.3164, allocations: 52.53 kB / 0.5152 GB, free: 19.2 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001145/0.3176, allocations: 291.6 kB / 0.5155 GB, free: 19.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=198): time 4.738e-06/0.3176, allocations: 0 / 0.5155 GB, free: 19.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.02678/0.3444, allocations: 8.566 MB / 0.5239 GB, free: 15.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.3445, allocations: 126.2 kB / 0.524 GB, free: 15.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.3448, allocations: 326.9 kB / 0.5243 GB, free: 14.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001162/0.3449, allocations: 60.3 kB / 0.5244 GB, free: 14.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.345, allocations: 473.7 kB / 0.5248 GB, free: 14.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003507/0.3454, allocations: 0.7637 MB / 0.5256 GB, free: 13.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000479/0.3459, allocations: 334.4 kB / 0.5259 GB, free: 13.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.209e-05/0.3459, allocations: 322.2 kB / 0.5262 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.3471, allocations: 0.7098 MB / 0.5269 GB, free: 12.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001285/0.3484, allocations: 0.9484 MB / 0.5278 GB, free: 12.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04262/0.391, allocations: 7.991 MB / 0.5356 GB, free: 7.445 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.3911, allocations: 4 kB / 0.5356 GB, free: 7.441 MB / 382.1 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.007452/0.3985, allocations: 2.901 MB / 0.5384 GB, free: 4.508 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.3986, allocations: 8 kB / 0.5384 GB, free: 4.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.3986, allocations: 4 kB / 0.5385 GB, free: 4.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005388/0.404, allocations: 1.03 MB / 0.5395 GB, free: 3.441 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008228/0.4122, allocations: 1.201 MB / 0.5406 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01932/0.4315, allocations: 25.1 MB / 0.5651 GB, free: 6.906 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/0.433, allocations: 63.97 kB / 0.5652 GB, free: 6.844 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/0.4332, allocations: 83.95 kB / 0.5653 GB, free: 6.762 MB / 414.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.001738/0.4349, allocations: 0.8996 MB / 0.5662 GB, free: 5.863 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001379/0.4363, allocations: 0.924 MB / 0.5671 GB, free: 4.863 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.04515/0.4815, allocations: 7.937 MB / 0.5748 GB, free: 12.86 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.516e-06/0.4815, allocations: 4 kB / 0.5748 GB, free: 12.86 MB / 430.1 MB Notification: Performance of matching and sorting (n=249) (initialization_lambda0): time 0.008177/0.4897, allocations: 2.786 MB / 0.5775 GB, free: 10.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.4897, allocations: 8 kB / 0.5775 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.4897, allocations: 4 kB / 0.5776 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005801/0.4955, allocations: 1.027 MB / 0.5786 GB, free: 8.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009095/0.5047, allocations: 1.183 MB / 0.5797 GB, free: 7.797 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01974/0.5244, allocations: 25.07 MB / 0.6042 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.5258, allocations: 59.97 kB / 0.6042 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001981/0.526, allocations: 83.89 kB / 0.6043 GB, free: 12.3 MB / 462.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: 22 * 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 (200): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 9 * Torn equation systems: 8 * 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): 9 systems {1, 1, 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): 7 systems {(2,5,100.0%), (1,1,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,25)} Notification: Performance of prepare postOptimizeDAE: time 0.000575/0.5266, allocations: 319.4 kB / 0.6046 GB, free: 11.99 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002851/0.5269, allocations: 103.3 kB / 0.6047 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008147/0.535, allocations: 3.041 MB / 0.6077 GB, free: 8.809 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.296e-05/0.535, allocations: 11.95 kB / 0.6077 GB, free: 8.797 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.5351, allocations: 4 kB / 0.6077 GB, free: 8.793 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001827/0.5353, allocations: 172.4 kB / 0.6079 GB, free: 8.605 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001892/0.5354, allocations: 43.94 kB / 0.6079 GB, free: 8.562 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.5365, allocations: 59.97 kB / 0.608 GB, free: 8.504 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003795/0.5369, allocations: 189.7 kB / 0.6082 GB, free: 8.316 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01421/0.5511, allocations: 3.552 MB / 0.6116 GB, free: 4.766 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004945/0.5561, allocations: 3.002 MB / 0.6146 GB, free: 1.734 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001367/0.5574, allocations: 0.8394 MB / 0.6154 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002336/0.5577, allocations: 227.1 kB / 0.6156 GB, free: 0.6836 MB / 462.1 MB Notification: Performance of Backend: time 4.41e-07/0.5577, allocations: 0 / 0.6156 GB, free: 0.6836 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02226/0.5799, allocations: 5.981 MB / 0.6214 GB, free: 10.52 MB / 478.1 MB Notification: Performance of SimCode: time 0.004561/0.5845, allocations: 3.673 MB / 0.625 GB, free: 6.805 MB / 478.1 MB Notification: Performance of Templates: time 0.05026/0.6348, allocations: 33.87 MB / 0.6581 GB, free: 5.008 MB / 0.4981 GB make -j1 -f AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.sim & ./AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.pipe 2>&1)