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.008796/0.008797, allocations: 97.38 kB / 15.73 MB, free: 6.066 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.001662/0.001662, allocations: 195.5 kB / 16.68 MB, free: 5.973 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.409/1.409, allocations: 222.9 MB / 240.4 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.09535/0.09535, allocations: 22.33 MB / 312.9 MB, free: 8.863 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 63.91 kB / 437 MB, free: 11.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1108, allocations: 54.95 MB / 492 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005215/0.116, allocations: 4.027 MB / 496 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002404/0.1184, allocations: 1.274 MB / 497.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000379/0.1188, allocations: 4 kB / 497.3 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002638/0.1191, allocations: 79.14 kB / 497.4 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006181/0.1198, allocations: 222 kB / 497.6 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006479/0.1204, allocations: 287.5 kB / 497.9 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009987/0.1214, allocations: 1.099 MB / 499 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004855/0.1219, allocations: 436.4 kB / 499.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003864/0.1223, allocations: 402.9 kB / 499.8 MB, free: 12.9 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000464/0.1228, allocations: 418.5 kB / 0.4885 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.1229, allocations: 103.9 kB / 0.4886 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001402/0.1231, allocations: 92 kB / 0.4887 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.1233, allocations: 199.5 kB / 0.4889 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003418/0.1236, allocations: 418.3 kB / 0.4893 GB, free: 11.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008012/0.1244, allocations: 0.9652 MB / 0.4902 GB, free: 10.72 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1244, allocations: 0 / 0.4902 GB, free: 10.72 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1244, allocations: 7.938 kB / 0.4902 GB, free: 10.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.1244, allocations: 0 / 0.4902 GB, free: 10.71 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.001856/0.1263, allocations: 0.9982 MB / 0.4912 GB, free: 9.668 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.1263, allocations: 8.031 kB / 0.4912 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.1265, allocations: 80.47 kB / 0.4913 GB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002568/0.1267, allocations: 254.1 kB / 0.4915 GB, free: 9.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.804e-05/0.1268, allocations: 62.38 kB / 0.4916 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001224/0.127, allocations: 76.38 kB / 0.4916 GB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.1282, allocations: 0.6945 MB / 0.4923 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.226e-05/0.1282, allocations: 0 / 0.4923 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.061e-05/0.1283, allocations: 36 kB / 0.4924 GB, free: 8.422 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.487e-05/0.1284, allocations: 24 kB / 0.4924 GB, free: 8.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.1296, allocations: 0.6949 MB / 0.4931 GB, free: 7.707 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.003641/0.1332, allocations: 2.298 MB / 0.4953 GB, free: 5.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.1343, allocations: 0.6797 MB / 0.496 GB, free: 4.578 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.1348, allocations: 331.8 kB / 0.4963 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.735e-05/0.1349, allocations: 12.98 kB / 0.4963 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.1349, allocations: 43.56 kB / 0.4963 GB, free: 4.191 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.084e-06/0.1349, allocations: 0 / 0.4963 GB, free: 4.191 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.007589/0.1425, allocations: 3.112 MB / 0.4994 GB, free: 0.957 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.1426, allocations: 64.39 kB / 0.4994 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000211/0.1428, allocations: 199.8 kB / 0.4996 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.521e-05/0.1429, allocations: 41.7 kB / 0.4997 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001489/0.143, allocations: 245.4 kB / 0.4999 GB, free: 392 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2456/0.3887, allocations: 391.5 kB / 0.5003 GB, free: 22.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003746/0.3891, allocations: 146 kB / 0.5004 GB, free: 22.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.3892, allocations: 356.5 kB / 0.5008 GB, free: 21.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006179/0.3898, allocations: 298.3 kB / 0.501 GB, free: 21.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005768/0.3904, allocations: 396 kB / 0.5014 GB, free: 21.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/0.4004, allocations: 2.246 MB / 0.5036 GB, free: 21.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.4004, allocations: 2.156 kB / 0.5036 GB, free: 21.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00203/0.4025, allocations: 1.051 MB / 0.5046 GB, free: 21.76 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.4025, allocations: 3.625 kB / 0.5046 GB, free: 21.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/0.4025, allocations: 9.734 kB / 0.5046 GB, free: 21.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009538/0.4035, allocations: 209.2 kB / 0.5048 GB, free: 21.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005265/0.4088, allocations: 0.7515 MB / 0.5056 GB, free: 21.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008502/0.4173, allocations: 14.94 MB / 0.5202 GB, free: 7.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005705/0.4179, allocations: 36.36 kB / 0.5202 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.558e-05/0.4179, allocations: 30.89 kB / 0.5202 GB, free: 7.512 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.0003805/0.4183, allocations: 225.9 kB / 0.5205 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.279e-05/0.4184, allocations: 52.59 kB / 0.5205 GB, free: 7.355 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002654/0.4211, allocations: 1.251 MB / 0.5217 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.4211, allocations: 11.66 kB / 0.5217 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.064e-06/0.4211, allocations: 2.188 kB / 0.5217 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.646e-05/0.4211, allocations: 13.86 kB / 0.5217 GB, free: 7.199 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003843/0.425, allocations: 2.375 MB / 0.5241 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.206e-05/0.425, allocations: 8.25 kB / 0.5241 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004848/0.4299, allocations: 0.7008 MB / 0.5248 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001796/0.4317, allocations: 362.5 kB / 0.5251 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.4318, allocations: 30.83 kB / 0.5251 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/0.4436, allocations: 15.12 MB / 0.5399 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.886e-05/0.4436, allocations: 10.59 kB / 0.5399 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003607/0.4473, allocations: 1.829 MB / 0.5417 GB, free: 7.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.4474, allocations: 131.1 kB / 0.5418 GB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.399e-05/0.4475, allocations: 30.38 kB / 0.5419 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005337/0.4481, allocations: 33.62 kB / 0.5419 GB, free: 6.918 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002856/0.4484, allocations: 119.5 kB / 0.542 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.917e-05/0.4484, allocations: 37.89 kB / 0.542 GB, free: 6.875 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000149/0.4486, allocations: 152.5 kB / 0.5422 GB, free: 6.777 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4486, allocations: 0 / 0.5422 GB, free: 6.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009551/0.4496, allocations: 235.5 kB / 0.5424 GB, free: 6.738 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.0001876/0.4498, allocations: 147 kB / 0.5425 GB, free: 6.621 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00662/0.4564, allocations: 1.892 MB / 0.5444 GB, free: 5.812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.4564, allocations: 1.188 kB / 0.5444 GB, free: 5.812 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005582/0.462, allocations: 1.533 MB / 0.5459 GB, free: 5.113 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001038/0.463, allocations: 178.2 kB / 0.5461 GB, free: 5.043 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00284/0.4659, allocations: 1.763 MB / 0.5478 GB, free: 3.891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004626/0.4664, allocations: 0.9099 MB / 0.5487 GB, free: 3.184 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004876/0.4669, allocations: 97.31 kB / 0.5488 GB, free: 3.137 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001914/0.4671, allocations: 47.5 kB / 0.5488 GB, free: 3.129 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4671, allocations: 0 / 0.5488 GB, free: 3.129 MB / 398.1 MB Notification: Performance of Templates: time 0.0177/0.4848, allocations: 11.78 MB / 0.5603 GB, free: 10.95 MB / 414.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)