Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_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_component_models.Controlled_AHU_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001") translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 107.5 kB / 16.41 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.001751/0.001751, allocations: 187 kB / 17.34 MB, free: 5.742 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.391/1.391, 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.1084/0.1084, allocations: 22.32 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 63.89 kB / 437.7 MB, free: 11.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.1136, allocations: 54.96 MB / 492.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.00526/0.1189, allocations: 4.012 MB / 496.7 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002544/0.1215, allocations: 1.286 MB / 498 MB, free: 15.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004503/0.122, allocations: 7.938 kB / 498 MB, free: 15.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003018/0.1223, allocations: 83.14 kB / 498.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007569/0.1231, allocations: 218 kB / 498.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007836/0.1239, allocations: 287.6 kB / 498.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.1252, allocations: 1.103 MB / 499.7 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006041/0.1258, allocations: 432.4 kB / 0.4884 GB, free: 13.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004777/0.1263, allocations: 406.9 kB / 0.4888 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004854/0.1268, allocations: 414.5 kB / 0.4891 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.1269, allocations: 96 kB / 0.4892 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.1271, allocations: 92 kB / 0.4893 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1272, allocations: 203.4 kB / 0.4895 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003546/0.1276, allocations: 422.2 kB / 0.4899 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008853/0.1285, allocations: 0.9618 MB / 0.4909 GB, free: 10.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1285, allocations: 7.938 kB / 0.4909 GB, free: 10.73 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1285, allocations: 0 / 0.4909 GB, free: 10.73 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.1285, allocations: 0 / 0.4909 GB, free: 10.73 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.002025/0.1306, allocations: 0.9836 MB / 0.4918 GB, free: 9.699 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1306, allocations: 8.031 kB / 0.4918 GB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.1308, allocations: 72.09 kB / 0.4919 GB, free: 9.621 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.131, allocations: 247.4 kB / 0.4921 GB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.203e-05/0.131, allocations: 62.38 kB / 0.4922 GB, free: 9.277 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.1312, allocations: 84.38 kB / 0.4923 GB, free: 9.195 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00118/0.1324, allocations: 0.6905 MB / 0.493 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.794e-05/0.1324, allocations: 0 / 0.493 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-05/0.1325, allocations: 36 kB / 0.493 GB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.1325, allocations: 24 kB / 0.493 GB, free: 8.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.1336, allocations: 0.691 MB / 0.4937 GB, free: 7.75 MB / 382.1 MB Warning: Alias set with conflicting start values * Candidate: V.T(start = V.Tstart = 291.15, confidence number = 2) * Candidate: V.air.T(start = 288.15, confidence number = 8) * Candidate: V.heatPort.T(start = 288.15, confidence number = 8) => Select value from V.T(start = V.Tstart = 291.15) for variable: V.T Warning: Alias set with conflicting start values * Candidate: AHU.T(start = AHU.Tstart = 293.15, confidence number = 2) * Candidate: AHU.air.T(start = 288.15, confidence number = 8) => Select value from AHU.T(start = AHU.Tstart = 293.15) for variable: AHU.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003427/0.1371, allocations: 2.287 MB / 0.4959 GB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.1381, allocations: 0.6763 MB / 0.4966 GB, free: 4.641 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005097/0.1387, allocations: 339.7 kB / 0.4969 GB, free: 4.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.841e-05/0.1387, allocations: 12.98 kB / 0.4969 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.882e-05/0.1388, allocations: 47.56 kB / 0.497 GB, free: 4.242 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.675e-06/0.1388, allocations: 0 / 0.497 GB, free: 4.242 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.007206/0.146, allocations: 3.107 MB / 0.5 GB, free: 1.012 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.1461, allocations: 68.34 kB / 0.5001 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.1463, allocations: 199.8 kB / 0.5003 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.355e-05/0.1464, allocations: 45.7 kB / 0.5003 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.1465, allocations: 232.9 kB / 0.5005 GB, free: 452 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.1468, allocations: 378.4 kB / 0.5009 GB, free: 68 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2574/0.4043, allocations: 144.6 kB / 0.501 GB, free: 22.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.302e-05/0.4044, allocations: 358.3 kB / 0.5014 GB, free: 21.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005542/0.405, allocations: 303.2 kB / 0.5017 GB, free: 21.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005333/0.4055, allocations: 384.1 kB / 0.502 GB, free: 21.89 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/0.4156, allocations: 2.253 MB / 0.5042 GB, free: 21.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.4156, allocations: 3.062 kB / 0.5042 GB, free: 21.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002072/0.4177, allocations: 1.039 MB / 0.5052 GB, free: 21.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.4177, allocations: 5.688 kB / 0.5052 GB, free: 21.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.4178, allocations: 2.719 kB / 0.5052 GB, free: 21.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009405/0.4187, allocations: 211 kB / 0.5054 GB, free: 21.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005242/0.424, allocations: 0.7524 MB / 0.5062 GB, free: 21.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008956/0.4329, allocations: 14.94 MB / 0.5208 GB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006665/0.4336, allocations: 31.69 kB / 0.5208 GB, free: 7.504 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.03e-05/0.4337, allocations: 29.45 kB / 0.5208 GB, free: 7.504 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: AHU.T:VARIABLE(min = 0.0 start = AHU.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) type: Real V.p:VARIABLE(min = 0.0 start = V.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real V.T:VARIABLE(min = 0.0 start = V.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: 5 * 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 (112): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 4 * 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): 6 systems {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): 4 systems {(2,5,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004252/0.4341, allocations: 222 kB / 0.521 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.4343, allocations: 50.61 kB / 0.5211 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002708/0.437, allocations: 1.257 MB / 0.5223 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.437, allocations: 11.31 kB / 0.5223 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.437, allocations: 2.641 kB / 0.5223 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.437, allocations: 9.281 kB / 0.5223 GB, free: 7.195 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0041/0.4411, allocations: 2.375 MB / 0.5247 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/0.4412, allocations: 10.23 kB / 0.5247 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00498/0.4462, allocations: 0.7033 MB / 0.5254 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001895/0.4481, allocations: 359.8 kB / 0.5257 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001479/0.4482, allocations: 31.45 kB / 0.5257 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/0.4594, allocations: 15.11 MB / 0.5405 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-05/0.4594, allocations: 7.875 kB / 0.5405 GB, free: 8.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00355/0.463, allocations: 1.821 MB / 0.5423 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/0.4632, allocations: 129.1 kB / 0.5424 GB, free: 7.004 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.4633, allocations: 31.64 kB / 0.5424 GB, free: 6.988 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005686/0.4639, allocations: 28.7 kB / 0.5424 GB, free: 6.977 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003286/0.4642, allocations: 122.8 kB / 0.5426 GB, free: 6.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.852e-05/0.4643, allocations: 34.16 kB / 0.5426 GB, free: 6.934 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001608/0.4645, allocations: 155.7 kB / 0.5427 GB, free: 6.832 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.4645, allocations: 0 / 0.5427 GB, free: 6.832 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001046/0.4655, allocations: 240.6 kB / 0.543 GB, free: 6.793 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 5 (AHU.T,AHU.phi,V.Mv,V.p,V.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 4 * 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): 6 systems {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): 3 systems {(2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002106/0.4657, allocations: 149.2 kB / 0.5431 GB, free: 6.672 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00692/0.4727, allocations: 1.869 MB / 0.5449 GB, free: 5.863 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.4727, allocations: 1.062 kB / 0.5449 GB, free: 5.863 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005903/0.4786, allocations: 1.496 MB / 0.5464 GB, free: 5.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.4799, allocations: 183 kB / 0.5466 GB, free: 5.105 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0032/0.4831, allocations: 1.771 MB / 0.5483 GB, free: 3.961 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/0.4836, allocations: 0.9077 MB / 0.5492 GB, free: 3.254 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/0.4839, allocations: 60.91 kB / 0.5493 GB, free: 3.242 MB / 398.1 MB Notification: Performance of SimCode: time 6.31e-07/0.484, allocations: 4 kB / 0.5493 GB, free: 3.238 MB / 398.1 MB Notification: Performance of Templates: time 0.03382/0.5178, allocations: 33.11 MB / 0.5816 GB, free: 5.684 MB / 430.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1)