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.001033/0.001033, allocations: 108.9 kB / 16.37 MB, free: 6.016 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.001007/0.001007, allocations: 197.3 kB / 17.31 MB, free: 5.613 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.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08879/0.08879, allocations: 22.32 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 60.78 kB / 382.3 MB, free: 41.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.112, allocations: 54.96 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005594/0.1177, allocations: 4.012 MB / 441.2 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002317/0.12, allocations: 1.29 MB / 442.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001994/0.1202, allocations: 7.938 kB / 442.5 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001647/0.1204, allocations: 83.14 kB / 442.6 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00041/0.1209, allocations: 218 kB / 442.8 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005895/0.1214, allocations: 295.5 kB / 443.1 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.1225, allocations: 1.092 MB / 444.2 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00064/0.1231, allocations: 428.4 kB / 444.6 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004368/0.1236, allocations: 410.9 kB / 445 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005015/0.1241, allocations: 418.4 kB / 445.4 MB, free: 4.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.1242, allocations: 92 kB / 445.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.1244, allocations: 96 kB / 445.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001744/0.1245, allocations: 191.5 kB / 445.8 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004411/0.125, allocations: 430.2 kB / 446.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009099/0.1259, allocations: 0.9657 MB / 447.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1259, allocations: 0 / 447.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.614e-06/0.1259, allocations: 0 / 447.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.857e-05/0.1259, allocations: 0 / 447.2 MB, free: 2.246 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.002249/0.1282, allocations: 0.9836 MB / 448.2 MB, free: 1.211 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.1283, allocations: 12.03 kB / 448.2 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001324/0.1284, allocations: 72.09 kB / 448.2 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002377/0.1286, allocations: 245.4 kB / 448.5 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.1288, allocations: 62.38 kB / 448.5 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001121/0.1289, allocations: 84.31 kB / 448.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.13, allocations: 0.6945 MB / 449.3 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.1301, allocations: 0 / 449.3 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.063e-05/0.1301, allocations: 36.08 kB / 449.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.1302, allocations: 20 kB / 449.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001143/0.1313, allocations: 0.6988 MB / 450.1 MB, free: 15.25 MB / 334.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.003647/0.135, allocations: 2.305 MB / 452.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.1361, allocations: 0.6719 MB / 453.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004983/0.1366, allocations: 331.8 kB / 453.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.89e-05/0.1367, allocations: 13 kB / 453.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/0.1367, allocations: 51.55 kB / 453.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=102): time 2.524e-06/0.1367, allocations: 0 / 453.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=112): time 0.007859/0.1446, allocations: 3.099 MB / 456.5 MB, free: 8.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.1447, allocations: 68.41 kB / 456.6 MB, free: 8.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.1449, allocations: 199.8 kB / 456.8 MB, free: 8.219 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.007e-05/0.145, allocations: 45.7 kB / 456.8 MB, free: 8.168 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.1451, allocations: 228.9 kB / 457.1 MB, free: 7.938 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002917/0.1454, allocations: 382.3 kB / 457.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.1457, allocations: 150.7 kB / 457.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1458, allocations: 358.8 kB / 457.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005214/0.1464, allocations: 301.9 kB / 458.2 MB, free: 6.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005896/0.147, allocations: 379.7 kB / 458.6 MB, free: 6.367 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/0.1578, allocations: 2.25 MB / 460.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1579, allocations: 0 / 460.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002279/0.1601, allocations: 1.047 MB / 461.9 MB, free: 3.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.015e-05/0.1602, allocations: 11.94 kB / 461.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.1602, allocations: 0 / 461.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009624/0.1612, allocations: 211.2 kB / 462.1 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005791/0.167, allocations: 0.7569 MB / 462.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01307/0.1801, allocations: 14.94 MB / 477.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007114/0.1808, allocations: 27.98 kB / 477.8 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001431/0.181, allocations: 32 kB / 477.9 MB, free: 1.625 MB / 350.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.0005832/0.1816, allocations: 220.1 kB / 478.1 MB, free: 1.402 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.1817, allocations: 55.44 kB / 478.1 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002698/0.1844, allocations: 1.242 MB / 479.4 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.1844, allocations: 12 kB / 479.4 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1844, allocations: 0 / 479.4 MB, free: 72 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.1844, allocations: 11.97 kB / 479.4 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004028/0.1885, allocations: 2.382 MB / 481.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.1885, allocations: 8 kB / 481.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005147/0.1936, allocations: 0.6987 MB / 482.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001933/0.1956, allocations: 354.9 kB / 482.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.1957, allocations: 35.94 kB / 482.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01404/0.2098, allocations: 15.12 MB / 498 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-05/0.2098, allocations: 11.94 kB / 498 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003803/0.2137, allocations: 1.815 MB / 499.8 MB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002079/0.2139, allocations: 136.4 kB / 500 MB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001216/0.214, allocations: 28.06 kB / 500 MB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000682/0.2147, allocations: 35.98 kB / 0.4883 GB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003015/0.215, allocations: 112.6 kB / 0.4884 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-05/0.2151, allocations: 43.98 kB / 0.4885 GB, free: 9.562 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001702/0.2153, allocations: 155 kB / 0.4886 GB, free: 9.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2153, allocations: 0 / 0.4886 GB, free: 9.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001093/0.2164, allocations: 232 kB / 0.4888 GB, free: 9.184 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.0002351/0.2166, allocations: 139 kB / 0.489 GB, free: 9.035 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007308/0.224, allocations: 1.893 MB / 0.4908 GB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/0.224, allocations: 0 / 0.4908 GB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00585/0.2298, allocations: 1.54 MB / 0.4923 GB, free: 5.504 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.2311, allocations: 177 kB / 0.4925 GB, free: 5.332 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.2343, allocations: 1.74 MB / 0.4942 GB, free: 3.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006062/0.235, allocations: 0.9091 MB / 0.4951 GB, free: 2.539 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005053/0.2355, allocations: 96.94 kB / 0.4952 GB, free: 2.441 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001826/0.2357, allocations: 47.44 kB / 0.4952 GB, free: 2.395 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2357, allocations: 0 / 0.4952 GB, free: 2.395 MB / 382.1 MB Notification: Performance of Templates: time 0.02081/0.2565, allocations: 11.6 MB / 0.5065 GB, free: 6.883 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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1)