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_002.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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002") translateModel(AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 115 kB / 16.42 MB, free: 6.512 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.001196/0.001196, allocations: 186.5 kB / 17.35 MB, free: 5.754 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.319/1.319, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09243/0.09243, allocations: 22.33 MB / 313.5 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 63.91 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09483, allocations: 54.95 MB / 492.7 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002): time 0.007022/0.1019, allocations: 6.29 MB / 499 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.1055, allocations: 1.956 MB / 0.4892 GB, free: 12.51 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007319/0.1062, allocations: 8 kB / 0.4892 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004824/0.1067, allocations: 154.3 kB / 0.4894 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001241/0.108, allocations: 392.5 kB / 0.4897 GB, free: 11.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001197/0.1092, allocations: 0.5684 MB / 0.4903 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002201/0.1114, allocations: 1.934 MB / 0.4922 GB, free: 9.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001483/0.1129, allocations: 1.159 MB / 0.4933 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00103/0.114, allocations: 0.787 MB / 0.4941 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001338/0.1153, allocations: 0.9265 MB / 0.495 GB, free: 6.547 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002913/0.1156, allocations: 196 kB / 0.4952 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003113/0.1159, allocations: 196 kB / 0.4954 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003106/0.1162, allocations: 414.9 kB / 0.4958 GB, free: 5.758 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007194/0.117, allocations: 0.8169 MB / 0.4966 GB, free: 4.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001707/0.1187, allocations: 1.973 MB / 0.4985 GB, free: 2.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.1187, allocations: 0 / 0.4985 GB, free: 2.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1187, allocations: 0 / 0.4985 GB, free: 2.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.699e-05/0.1187, allocations: 0 / 0.4985 GB, free: 2.957 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: 373 * Number of variables: 373 Notification: Performance of Generate backend data structure: time 0.003717/0.1224, allocations: 1.76 MB / 0.5002 GB, free: 1.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.1225, allocations: 8.031 kB / 0.5002 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002302/0.1227, allocations: 148 kB / 0.5003 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007834/0.1235, allocations: 0.5842 MB / 0.5009 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.671e-05/0.1236, allocations: 115.2 kB / 0.501 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002083/0.1238, allocations: 155.9 kB / 0.5012 GB, free: 104 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1932/0.3171, allocations: 1.574 MB / 0.5027 GB, free: 21.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.3171, allocations: 0 / 0.5027 GB, free: 21.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001215/0.3173, allocations: 62.75 kB / 0.5028 GB, free: 21.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.772e-05/0.3173, allocations: 35.22 kB / 0.5028 GB, free: 21.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002299/0.3196, allocations: 1.481 MB / 0.5043 GB, free: 21.79 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.007825/0.3274, allocations: 5.297 MB / 0.5094 GB, free: 20.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002348/0.3298, allocations: 1.461 MB / 0.5109 GB, free: 20.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001036/0.3309, allocations: 0.7211 MB / 0.5116 GB, free: 20.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001113/0.331, allocations: 29.22 kB / 0.5116 GB, free: 20.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.331, allocations: 54.3 kB / 0.5116 GB, free: 20.1 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009263/0.3319, allocations: 252.6 kB / 0.5119 GB, free: 20.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=174): time 3.677e-06/0.332, allocations: 1.531 kB / 0.5119 GB, free: 20.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=194): time 0.01683/0.3488, allocations: 6.609 MB / 0.5183 GB, free: 17.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.868e-05/0.3489, allocations: 124 kB / 0.5185 GB, free: 17.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003218/0.3492, allocations: 301.9 kB / 0.5187 GB, free: 17.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.3493, allocations: 61.08 kB / 0.5188 GB, free: 17.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001759/0.3495, allocations: 426.2 kB / 0.5192 GB, free: 17.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003678/0.3499, allocations: 0.6797 MB / 0.5199 GB, free: 16.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004655/0.3503, allocations: 295.9 kB / 0.5201 GB, free: 16.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.96e-05/0.3504, allocations: 324.1 kB / 0.5205 GB, free: 16.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.3515, allocations: 0.6347 MB / 0.5211 GB, free: 15.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001154/0.3526, allocations: 0.86 MB / 0.5219 GB, free: 15.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03697/0.3896, allocations: 7.064 MB / 0.5288 GB, free: 12.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.3896, allocations: 4 kB / 0.5288 GB, free: 12.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.004819/0.3945, allocations: 2.275 MB / 0.531 GB, free: 11.06 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.3945, allocations: 5.906 kB / 0.531 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.3945, allocations: 5.375 kB / 0.5311 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002379/0.3969, allocations: 0.5361 MB / 0.5316 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007982/0.4049, allocations: 1.08 MB / 0.5326 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01951/0.4244, allocations: 25.08 MB / 0.5571 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00148/0.4259, allocations: 63.97 kB / 0.5572 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001479/0.4261, allocations: 71.95 kB / 0.5573 GB, free: 15.2 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.001613/0.4277, allocations: 0.82 MB / 0.5581 GB, free: 14.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001206/0.4289, allocations: 0.8278 MB / 0.5589 GB, free: 13.48 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.03892/0.4679, allocations: 7.007 MB / 0.5657 GB, free: 6.414 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.46e-06/0.4679, allocations: 0 / 0.5657 GB, free: 6.414 MB / 414.1 MB Notification: Performance of matching and sorting (n=221) (initialization_lambda0): time 0.005025/0.4729, allocations: 2.224 MB / 0.5679 GB, free: 4.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.236e-05/0.473, allocations: 8 kB / 0.5679 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.473, allocations: 4 kB / 0.5679 GB, free: 4.148 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002477/0.4755, allocations: 0.5405 MB / 0.5684 GB, free: 3.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008257/0.4838, allocations: 1.08 MB / 0.5695 GB, free: 2.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02102/0.5048, allocations: 25.09 MB / 0.594 GB, free: 7.188 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.5062, allocations: 55.97 kB / 0.594 GB, free: 7.133 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/0.5066, allocations: 71.95 kB / 0.5941 GB, free: 7.062 MB / 446.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: 19 * 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 (187): * Single equations (assignments): 171 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 8 * 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): 8 systems {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%), (1,2,100.0%), (2,5,100.0%), (1,2,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.0007594/0.5073, allocations: 296.9 kB / 0.5944 GB, free: 6.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003387/0.5077, allocations: 83.48 kB / 0.5945 GB, free: 6.688 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006333/0.514, allocations: 2.498 MB / 0.5969 GB, free: 4.152 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.41e-05/0.5141, allocations: 11.91 kB / 0.5969 GB, free: 4.141 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.5141, allocations: 4 kB / 0.5969 GB, free: 4.137 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000199/0.5143, allocations: 160.4 kB / 0.5971 GB, free: 3.961 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001775/0.5145, allocations: 36 kB / 0.5971 GB, free: 3.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009808/0.5154, allocations: 59.97 kB / 0.5972 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003342/0.5158, allocations: 153.8 kB / 0.5973 GB, free: 3.715 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01264/0.5284, allocations: 3.056 MB / 0.6003 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004607/0.5331, allocations: 2.705 MB / 0.6029 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001207/0.5343, allocations: 0.7574 MB / 0.6037 GB, free: 13.17 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.000213/0.5345, allocations: 207.1 kB / 0.6039 GB, free: 12.97 MB / 462.1 MB Notification: Performance of Backend: time 1.773e-06/0.5345, allocations: 4 kB / 0.6039 GB, free: 12.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0213/0.5558, allocations: 5.806 MB / 0.6095 GB, free: 6.945 MB / 462.1 MB Notification: Performance of SimCode: time 0.004669/0.5605, allocations: 3.265 MB / 0.6127 GB, free: 3.641 MB / 462.1 MB Notification: Performance of Templates: time 0.04744/0.608, allocations: 30.67 MB / 0.6427 GB, free: 5.047 MB / 494.1 MB make -j1 -f AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002.sim & ./AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002.pipe 2>&1)