Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_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_component_models.Controlled_AHU_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001487/0.001487, allocations: 108.4 kB / 16.41 MB, free: 6.492 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.001489/0.001489, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.329/1.329, allocations: 222.9 MB / 241 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.08798/0.08798, allocations: 22.32 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 59.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1118, allocations: 54.95 MB / 492.7 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.005636/0.1175, allocations: 4.237 MB / 496.9 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002699/0.1202, allocations: 1.329 MB / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005178/0.1208, allocations: 4 kB / 498.2 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003227/0.1212, allocations: 87.06 kB / 498.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008662/0.122, allocations: 241.8 kB / 498.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008686/0.1229, allocations: 311.5 kB / 498.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001484/0.1244, allocations: 1.165 MB / 0.4883 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009254/0.1254, allocations: 0.5476 MB / 0.4889 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008084/0.1262, allocations: 466.8 kB / 0.4893 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001007/0.1272, allocations: 0.5061 MB / 0.4898 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002918/0.1275, allocations: 108 kB / 0.4899 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003269/0.1278, allocations: 108 kB / 0.49 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002303/0.1281, allocations: 231.4 kB / 0.4902 GB, free: 11.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006645/0.1287, allocations: 482 kB / 0.4907 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.1298, allocations: 1.106 MB / 0.4918 GB, free: 9.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1299, allocations: 0 / 0.4918 GB, free: 9.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1299, allocations: 4 kB / 0.4918 GB, free: 9.836 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.795e-05/0.1299, allocations: 0 / 0.4918 GB, free: 9.836 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002774/0.1327, allocations: 1.073 MB / 0.4928 GB, free: 8.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.1328, allocations: 12.03 kB / 0.4928 GB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.133, allocations: 80 kB / 0.4929 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.1333, allocations: 259.9 kB / 0.4931 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.856e-05/0.1334, allocations: 74.06 kB / 0.4932 GB, free: 8.258 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.1335, allocations: 84 kB / 0.4933 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.135, allocations: 0.8038 MB / 0.4941 GB, free: 7.363 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.135, allocations: 4 kB / 0.4941 GB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.194e-05/0.1351, allocations: 36 kB / 0.4941 GB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.979e-05/0.1352, allocations: 24 kB / 0.4941 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001418/0.1366, allocations: 0.8237 MB / 0.4949 GB, free: 6.48 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: 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.004565/0.1412, allocations: 2.62 MB / 0.4975 GB, free: 3.723 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002084/0.1433, allocations: 0.992 MB / 0.4985 GB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006937/0.144, allocations: 419.7 kB / 0.4989 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.298e-05/0.1441, allocations: 20.97 kB / 0.4989 GB, free: 2.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.378e-05/0.1441, allocations: 43.56 kB / 0.4989 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005284/0.1447, allocations: 123.2 kB / 0.4991 GB, free: 2.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 4.889e-06/0.1447, allocations: 3.938 kB / 0.4991 GB, free: 2.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.2606/0.4053, allocations: 3.533 MB / 0.5025 GB, free: 21.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.4053, allocations: 61.78 kB / 0.5026 GB, free: 21.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.4056, allocations: 221.5 kB / 0.5028 GB, free: 21.81 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.085e-05/0.4057, allocations: 48.39 kB / 0.5028 GB, free: 21.78 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.4058, allocations: 238 kB / 0.503 GB, free: 21.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002385/0.406, allocations: 421.1 kB / 0.5035 GB, free: 21.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002662/0.4063, allocations: 181.1 kB / 0.5036 GB, free: 21.33 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.238e-05/0.4064, allocations: 363.7 kB / 0.504 GB, free: 21.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005536/0.4069, allocations: 356.9 kB / 0.5043 GB, free: 21.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006238/0.4076, allocations: 454.9 kB / 0.5047 GB, free: 20.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01843/0.426, allocations: 3.473 MB / 0.5081 GB, free: 20.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.4261, allocations: 5.312 kB / 0.5081 GB, free: 20.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002578/0.4286, allocations: 1.212 MB / 0.5093 GB, free: 20.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.4287, allocations: 6.203 kB / 0.5093 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.4287, allocations: 1.375 kB / 0.5093 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.4297, allocations: 212.9 kB / 0.5095 GB, free: 20.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005907/0.4356, allocations: 0.8087 MB / 0.5103 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009388/0.4451, allocations: 14.94 MB / 0.5249 GB, free: 6.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008666/0.446, allocations: 32.89 kB / 0.5249 GB, free: 6.375 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.169e-05/0.4461, allocations: 39.34 kB / 0.525 GB, free: 6.375 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 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 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 (124): * Single equations (assignments): 114 * 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,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005127/0.4466, allocations: 233.4 kB / 0.5252 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.4467, allocations: 55.56 kB / 0.5253 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003283/0.45, allocations: 1.48 MB / 0.5267 GB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/0.4501, allocations: 17.08 kB / 0.5267 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4501, allocations: 2.25 kB / 0.5267 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.4501, allocations: 6.609 kB / 0.5267 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004828/0.4549, allocations: 2.585 MB / 0.5293 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.455, allocations: 6.594 kB / 0.5293 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005215/0.4602, allocations: 0.7566 MB / 0.53 GB, free: 5.215 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/0.4621, allocations: 371.2 kB / 0.5304 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.4623, allocations: 35.84 kB / 0.5304 GB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/0.4741, allocations: 15.18 MB / 0.5452 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.38e-05/0.4742, allocations: 11.06 kB / 0.5452 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004834/0.479, allocations: 2.063 MB / 0.5472 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002474/0.4793, allocations: 135.4 kB / 0.5474 GB, free: 4.699 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001685/0.4795, allocations: 27.88 kB / 0.5474 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007688/0.4803, allocations: 35.06 kB / 0.5474 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003375/0.4806, allocations: 128.5 kB / 0.5475 GB, free: 4.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001095/0.4807, allocations: 42.34 kB / 0.5476 GB, free: 4.621 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.4809, allocations: 163.2 kB / 0.5477 GB, free: 4.52 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4809, allocations: 0 / 0.5477 GB, free: 4.52 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001369/0.4823, allocations: 265.9 kB / 0.548 GB, free: 4.473 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 5 (U1.T,U1.phi,V.Ma,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 (119): * Single equations (assignments): 109 * 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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002825/0.4826, allocations: 136.9 kB / 0.5481 GB, free: 4.355 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007588/0.4902, allocations: 2.04 MB / 0.5501 GB, free: 3.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.772e-05/0.4903, allocations: 4.875 kB / 0.5501 GB, free: 3.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006206/0.4965, allocations: 1.594 MB / 0.5517 GB, free: 2.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.4982, allocations: 201 kB / 0.5519 GB, free: 2.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004074/0.5023, allocations: 1.891 MB / 0.5537 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006821/0.503, allocations: 0.9412 MB / 0.5546 GB, free: 68 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004435/0.5035, allocations: 75.78 kB / 0.5547 GB, free: 48 kB / 398.1 MB Notification: Performance of SimCode: time 2.374e-06/0.5035, allocations: 0 / 0.5547 GB, free: 48 kB / 398.1 MB Notification: Performance of Templates: time 0.04008/0.5436, allocations: 36.67 MB / 0.5905 GB, free: 12.68 MB / 446.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1)