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.001066/0.001066, allocations: 111.3 kB / 16.42 MB, free: 6.461 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.001042/0.001042, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.294/1.294, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09291/0.09291, allocations: 22.33 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 67.88 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08502/0.08629, allocations: 54.95 MB / 492.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_002): time 0.006562/0.09288, allocations: 6.298 MB / 499 MB, free: 14.42 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003187/0.09609, allocations: 1.956 MB / 0.4892 GB, free: 12.46 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005913/0.0967, allocations: 8 kB / 0.4892 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003783/0.09708, allocations: 154.3 kB / 0.4894 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001023/0.09813, allocations: 396.5 kB / 0.4897 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.09925, allocations: 0.5656 MB / 0.4903 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001923/0.1012, allocations: 1.926 MB / 0.4922 GB, free: 9.406 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001444/0.1026, allocations: 1.155 MB / 0.4933 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.1037, allocations: 0.7909 MB / 0.4941 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.105, allocations: 0.9226 MB / 0.495 GB, free: 6.508 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002766/0.1053, allocations: 196 kB / 0.4952 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00031/0.1056, allocations: 196 kB / 0.4953 GB, free: 6.125 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003188/0.1059, allocations: 418.8 kB / 0.4957 GB, free: 5.715 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007066/0.1067, allocations: 0.817 MB / 0.4965 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00161/0.1083, allocations: 1.97 MB / 0.4985 GB, free: 2.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1083, allocations: 0 / 0.4985 GB, free: 2.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1083, allocations: 0 / 0.4985 GB, free: 2.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.1083, allocations: 0 / 0.4985 GB, free: 2.918 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.003803/0.1121, allocations: 1.729 MB / 0.5002 GB, free: 1.137 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1122, allocations: 12.03 kB / 0.5002 GB, free: 1.125 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002639/0.1124, allocations: 139.2 kB / 0.5003 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008887/0.1133, allocations: 0.584 MB / 0.5009 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.717e-05/0.1134, allocations: 111.3 kB / 0.501 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/0.1136, allocations: 155.9 kB / 0.5011 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1813/0.2949, allocations: 1.575 MB / 0.5027 GB, free: 21.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.295, allocations: 0 / 0.5027 GB, free: 21.81 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001379/0.2951, allocations: 60.84 kB / 0.5027 GB, free: 21.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.2952, allocations: 35.19 kB / 0.5028 GB, free: 21.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002273/0.2975, allocations: 1.484 MB / 0.5042 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.007899/0.3054, allocations: 5.276 MB / 0.5094 GB, free: 20.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/0.3077, allocations: 1.463 MB / 0.5108 GB, free: 20.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/0.3088, allocations: 0.726 MB / 0.5115 GB, free: 20.13 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001003/0.3089, allocations: 28.19 kB / 0.5115 GB, free: 20.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.309, allocations: 57.38 kB / 0.5116 GB, free: 20.08 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009831/0.31, allocations: 246 kB / 0.5118 GB, free: 20.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=174): time 4.809e-06/0.31, allocations: 2.75 kB / 0.5118 GB, free: 20.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=194): time 0.01638/0.3264, allocations: 6.59 MB / 0.5182 GB, free: 17.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.3264, allocations: 124.1 kB / 0.5184 GB, free: 17.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002789/0.3267, allocations: 308 kB / 0.5187 GB, free: 17.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001169/0.3268, allocations: 59.98 kB / 0.5187 GB, free: 17.42 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.327, allocations: 410.4 kB / 0.5191 GB, free: 17.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.3274, allocations: 0.6504 MB / 0.5197 GB, free: 16.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004456/0.3278, allocations: 292.7 kB / 0.52 GB, free: 16.46 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.644e-05/0.3279, allocations: 323.8 kB / 0.5203 GB, free: 16.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001084/0.329, allocations: 0.6353 MB / 0.521 GB, free: 15.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.3301, allocations: 0.8515 MB / 0.5218 GB, free: 15.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03735/0.3675, allocations: 7.074 MB / 0.5287 GB, free: 12.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.3675, allocations: 7.875 kB / 0.5287 GB, free: 12.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.004659/0.3722, allocations: 2.256 MB / 0.5309 GB, free: 11.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.3722, allocations: 6.875 kB / 0.5309 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.3723, allocations: 4.125 kB / 0.5309 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00229/0.3746, allocations: 0.548 MB / 0.5314 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007618/0.3822, allocations: 1.076 MB / 0.5325 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01802/0.4002, allocations: 25.07 MB / 0.557 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.4014, allocations: 59.97 kB / 0.557 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/0.4016, allocations: 71.95 kB / 0.5571 GB, free: 15.16 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.001519/0.4031, allocations: 0.8324 MB / 0.5579 GB, free: 14.34 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001204/0.4043, allocations: 0.8317 MB / 0.5587 GB, free: 13.44 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.03907/0.4434, allocations: 6.989 MB / 0.5656 GB, free: 6.391 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.017e-06/0.4434, allocations: 0 / 0.5656 GB, free: 6.391 MB / 414.1 MB Notification: Performance of matching and sorting (n=221) (initialization_lambda0): time 0.004888/0.4483, allocations: 2.22 MB / 0.5677 GB, free: 4.141 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.4484, allocations: 11.98 kB / 0.5677 GB, free: 4.129 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/0.4484, allocations: 5.797 kB / 0.5677 GB, free: 4.125 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002352/0.4507, allocations: 0.5417 MB / 0.5683 GB, free: 3.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007916/0.4587, allocations: 1.079 MB / 0.5693 GB, free: 2.48 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0198/0.4785, allocations: 25.07 MB / 0.5938 GB, free: 7.172 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001143/0.4796, allocations: 55.98 kB / 0.5939 GB, free: 7.117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001679/0.4798, allocations: 76.02 kB / 0.5939 GB, free: 7.043 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.0005329/0.4804, allocations: 294.9 kB / 0.5942 GB, free: 6.754 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002466/0.4806, allocations: 82.97 kB / 0.5943 GB, free: 6.672 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005965/0.4866, allocations: 2.498 MB / 0.5967 GB, free: 4.137 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/0.4866, allocations: 15.89 kB / 0.5967 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.4866, allocations: 0 / 0.5967 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.4868, allocations: 152.1 kB / 0.5969 GB, free: 3.953 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/0.487, allocations: 36 kB / 0.5969 GB, free: 3.918 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009111/0.4879, allocations: 51.97 kB / 0.597 GB, free: 3.867 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003093/0.4882, allocations: 157.7 kB / 0.5971 GB, free: 3.711 MB / 446.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01166/0.4999, allocations: 3.059 MB / 0.6001 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0042/0.5041, allocations: 2.704 MB / 0.6028 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001185/0.5053, allocations: 0.7652 MB / 0.6035 GB, free: 13.15 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001957/0.5055, allocations: 207.1 kB / 0.6037 GB, free: 12.95 MB / 462.1 MB Notification: Performance of Backend: time 2.144e-06/0.5055, allocations: 0 / 0.6037 GB, free: 12.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01915/0.5247, allocations: 5.803 MB / 0.6094 GB, free: 6.945 MB / 462.1 MB Notification: Performance of SimCode: time 0.00366/0.5283, allocations: 3.2 MB / 0.6125 GB, free: 3.719 MB / 462.1 MB Notification: Performance of Templates: time 0.04365/0.572, allocations: 30.66 MB / 0.6424 GB, free: 5.129 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)