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.0009701/0.0009701, allocations: 102.6 kB / 15.98 MB, free: 6.344 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.00093/0.0009299, allocations: 199.5 kB / 16.91 MB, free: 6.184 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.213/1.213, allocations: 222.9 MB / 240.6 MB, free: 13.68 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08461/0.08461, allocations: 22.32 MB / 313.1 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 62.8 kB / 380.9 MB, free: 40.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09281/0.09452, allocations: 54.96 MB / 435.9 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004864/0.09942, allocations: 4.043 MB / 439.9 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002321/0.1018, allocations: 1.278 MB / 441.2 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004466/0.1023, allocations: 4 kB / 441.2 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003027/0.1026, allocations: 55.52 kB / 441.3 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007194/0.1034, allocations: 186.5 kB / 441.4 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007152/0.1041, allocations: 259.7 kB / 441.7 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001202/0.1053, allocations: 1.092 MB / 442.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006815/0.106, allocations: 436.3 kB / 443.2 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006034/0.1066, allocations: 402.9 kB / 443.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006197/0.1073, allocations: 422.4 kB / 444 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001969/0.1075, allocations: 96 kB / 444.1 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00025/0.1077, allocations: 92 kB / 444.2 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001767/0.1079, allocations: 199.4 kB / 444.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000483/0.1084, allocations: 426.3 kB / 444.8 MB, free: 4.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006277/0.109, allocations: 0.729 MB / 445.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.109, allocations: 0 / 445.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1091, allocations: 0 / 445.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.284e-05/0.1091, allocations: 0 / 445.5 MB, free: 3.625 MB / 318.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.002216/0.1113, allocations: 0.9803 MB / 446.5 MB, free: 2.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.1114, allocations: 8.031 kB / 446.5 MB, free: 2.586 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001599/0.1115, allocations: 80.09 kB / 446.6 MB, free: 2.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002419/0.1118, allocations: 241.8 kB / 446.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.327e-05/0.1118, allocations: 66.38 kB / 446.9 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.112, allocations: 80.38 kB / 447 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.1132, allocations: 0.6906 MB / 447.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.1132, allocations: 0 / 447.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.78e-05/0.1133, allocations: 32 kB / 447.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.1133, allocations: 20 kB / 447.7 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.1145, allocations: 0.7027 MB / 448.4 MB, free: 0.6406 MB / 318.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.003603/0.1181, allocations: 2.298 MB / 450.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.1191, allocations: 0.6758 MB / 451.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000492/0.1196, allocations: 335.8 kB / 451.7 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.638e-05/0.1197, allocations: 9 kB / 451.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.1198, allocations: 51.56 kB / 451.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of pre-optimization done (n=102): time 2.966e-06/0.1198, allocations: 0 / 451.8 MB, free: 13.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=112): time 0.007361/0.1271, allocations: 3.091 MB / 454.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.1272, allocations: 64.41 kB / 454.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.1274, allocations: 203.8 kB / 455.1 MB, free: 9.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.878e-05/0.1275, allocations: 41.7 kB / 455.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001253/0.1276, allocations: 233 kB / 455.4 MB, free: 9.34 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/0.1279, allocations: 394.2 kB / 455.8 MB, free: 8.949 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.1281, allocations: 151.2 kB / 455.9 MB, free: 8.797 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1283, allocations: 350.8 kB / 456.3 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005069/0.1288, allocations: 297.9 kB / 456.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005474/0.1293, allocations: 391.1 kB / 457 MB, free: 7.758 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01044/0.1398, allocations: 2.26 MB / 459.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.1398, allocations: 0 / 459.2 MB, free: 5.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002293/0.1421, allocations: 1.043 MB / 460.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.1422, allocations: 4 kB / 460.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1422, allocations: 0 / 460.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009882/0.1432, allocations: 219.2 kB / 460.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005568/0.1488, allocations: 0.7531 MB / 461.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01122/0.16, allocations: 14.93 MB / 476.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006969/0.1608, allocations: 59.94 kB / 476.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001249/0.1609, allocations: 31.98 kB / 476.2 MB, free: 2.988 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: AHU.T:VARIABLE(min = max(0.0, 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 = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))))))))) start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real V.T:VARIABLE(min = max(0.0, max(0.0, 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.0005043/0.1614, allocations: 250.3 kB / 476.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.1615, allocations: 47.44 kB / 476.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.1642, allocations: 1.25 MB / 477.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.1643, allocations: 12 kB / 477.8 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.1643, allocations: 12.05 kB / 477.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.1643, allocations: 3.984 kB / 477.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004011/0.1683, allocations: 2.378 MB / 480.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.1684, allocations: 12.19 kB / 480.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004953/0.1733, allocations: 0.7023 MB / 480.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001858/0.1752, allocations: 354.9 kB / 481.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.1754, allocations: 31.94 kB / 481.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01127/0.1866, allocations: 15.11 MB / 496.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.088e-05/0.1867, allocations: 11.94 kB / 496.4 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003304/0.19, allocations: 1.83 MB / 498.2 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000161/0.1902, allocations: 128.6 kB / 498.4 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.1903, allocations: 28 kB / 498.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006714/0.191, allocations: 55.91 kB / 498.5 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002384/0.1912, allocations: 116.6 kB / 498.6 MB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.932e-05/0.1913, allocations: 39.94 kB / 498.6 MB, free: 10.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.1914, allocations: 155 kB / 498.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1914, allocations: 4 kB / 498.8 MB, free: 10.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000985/0.1924, allocations: 240 kB / 499 MB, free: 10.49 MB / 382.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.0001815/0.1926, allocations: 139 kB / 499.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007072/0.1997, allocations: 1.905 MB / 0.4893 GB, free: 8.383 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.1997, allocations: 0 / 0.4893 GB, free: 8.383 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005581/0.2053, allocations: 1.501 MB / 0.4908 GB, free: 6.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001035/0.2064, allocations: 176.9 kB / 0.4909 GB, free: 6.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002863/0.2092, allocations: 2.118 MB / 0.493 GB, free: 4.426 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000421/0.2097, allocations: 0.9091 MB / 0.4939 GB, free: 3.492 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002529/0.2099, allocations: 55.44 kB / 0.4939 GB, free: 3.438 MB / 382.1 MB Notification: Performance of SimCode: time 1.834e-06/0.21, allocations: 3.938 kB / 0.4939 GB, free: 3.434 MB / 382.1 MB Notification: Performance of Templates: time 0.1762/0.3861, allocations: 33.04 MB / 0.5262 GB, free: 77.45 MB / 398.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)