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.005999/0.005999, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001207/0.001208, allocations: 194.1 kB / 16.67 MB, free: 5.977 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.303/0.303, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 61.59 kB / 437.1 MB, free: 33.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1335, allocations: 54.97 MB / 492 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005328/0.1389, allocations: 4.017 MB / 496.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002823/0.1418, allocations: 1.282 MB / 497.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002597/0.142, allocations: 8 kB / 497.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.1423, allocations: 79.14 kB / 497.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004702/0.1428, allocations: 214 kB / 497.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006663/0.1435, allocations: 287.6 kB / 497.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009833/0.1445, allocations: 1.099 MB / 499 MB, free: 10.22 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006048/0.1451, allocations: 436.4 kB / 499.4 MB, free: 9.785 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004505/0.1456, allocations: 398.9 kB / 499.8 MB, free: 9.395 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004995/0.1461, allocations: 426.4 kB / 0.4885 GB, free: 8.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001268/0.1462, allocations: 96 kB / 0.4886 GB, free: 8.883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001499/0.1464, allocations: 92 kB / 0.4887 GB, free: 8.793 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.1465, allocations: 191.5 kB / 0.4889 GB, free: 8.605 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004246/0.147, allocations: 430.2 kB / 0.4893 GB, free: 8.184 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009092/0.1479, allocations: 0.9579 MB / 0.4902 GB, free: 7.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.1479, allocations: 3.984 kB / 0.4902 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1479, allocations: 0 / 0.4902 GB, free: 7.219 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.1479, allocations: 0 / 0.4902 GB, free: 7.219 MB / 366.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.002063/0.15, allocations: 0.9913 MB / 0.4912 GB, free: 6.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.1501, allocations: 8.031 kB / 0.4912 GB, free: 6.172 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001509/0.1502, allocations: 72.09 kB / 0.4913 GB, free: 6.102 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.1505, allocations: 241.4 kB / 0.4915 GB, free: 5.828 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.668e-05/0.1506, allocations: 62.38 kB / 0.4916 GB, free: 5.766 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.1507, allocations: 92.27 kB / 0.4917 GB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.152, allocations: 0.6984 MB / 0.4923 GB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.152, allocations: 0 / 0.4923 GB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.43e-05/0.1521, allocations: 35.94 kB / 0.4924 GB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.1521, allocations: 20 kB / 0.4924 GB, free: 4.914 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.1533, allocations: 0.6988 MB / 0.4931 GB, free: 4.219 MB / 366.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.003655/0.1569, allocations: 2.297 MB / 0.4953 GB, free: 1.785 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.1581, allocations: 0.6797 MB / 0.496 GB, free: 1.098 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005031/0.1586, allocations: 335.8 kB / 0.4963 GB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.97e-05/0.1586, allocations: 12.98 kB / 0.4963 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.523e-05/0.1587, allocations: 43.56 kB / 0.4964 GB, free: 0.707 MB / 366.1 MB Notification: Performance of pre-optimization done (n=102): time 2.735e-06/0.1587, allocations: 0 / 0.4964 GB, free: 0.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=112): time 0.007595/0.1663, allocations: 3.102 MB / 0.4994 GB, free: 13.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.007e-05/0.1664, allocations: 68.34 kB / 0.4995 GB, free: 13.41 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000225/0.1666, allocations: 203.8 kB / 0.4997 GB, free: 13.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.04e-05/0.1667, allocations: 45.7 kB / 0.4997 GB, free: 13.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.1669, allocations: 233 kB / 0.4999 GB, free: 12.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002834/0.1672, allocations: 382.3 kB / 0.5003 GB, free: 12.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002424/0.1674, allocations: 146.7 kB / 0.5004 GB, free: 12.38 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.1676, allocations: 354.8 kB / 0.5008 GB, free: 12.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005134/0.1681, allocations: 297.9 kB / 0.501 GB, free: 11.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005788/0.1687, allocations: 395.1 kB / 0.5014 GB, free: 11.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01096/0.1796, allocations: 2.247 MB / 0.5036 GB, free: 9.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.059e-06/0.1797, allocations: 0 / 0.5036 GB, free: 9.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00232/0.182, allocations: 1.043 MB / 0.5046 GB, free: 8.016 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.182, allocations: 4 kB / 0.5046 GB, free: 8.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/0.1821, allocations: 4 kB / 0.5046 GB, free: 8.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.1831, allocations: 211.2 kB / 0.5048 GB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005647/0.1887, allocations: 0.7609 MB / 0.5056 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01237/0.2011, allocations: 14.92 MB / 0.5202 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007474/0.2019, allocations: 36.02 kB / 0.5202 GB, free: 6.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.175e-05/0.202, allocations: 28 kB / 0.5202 GB, free: 6.605 MB / 398.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.0005304/0.2025, allocations: 238.5 kB / 0.5204 GB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.2027, allocations: 47.44 kB / 0.5205 GB, free: 6.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00274/0.2054, allocations: 1.254 MB / 0.5217 GB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.2054, allocations: 12 kB / 0.5217 GB, free: 5.031 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/0.2054, allocations: 4 kB / 0.5217 GB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.2054, allocations: 3.984 kB / 0.5217 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004392/0.2098, allocations: 2.373 MB / 0.5241 GB, free: 2.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.2099, allocations: 8 kB / 0.5241 GB, free: 2.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005196/0.2151, allocations: 0.7069 MB / 0.5247 GB, free: 1.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/0.217, allocations: 362.8 kB / 0.5251 GB, free: 1.406 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/0.2172, allocations: 35.92 kB / 0.5251 GB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01299/0.2302, allocations: 15.11 MB / 0.5399 GB, free: 0.8438 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.196e-06/0.2302, allocations: 8.062 kB / 0.5399 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003571/0.2338, allocations: 1.819 MB / 0.5417 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/0.234, allocations: 132.6 kB / 0.5418 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.2341, allocations: 31.98 kB / 0.5418 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005912/0.2347, allocations: 28 kB / 0.5419 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003065/0.235, allocations: 120.6 kB / 0.542 GB, free: 14.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-05/0.2351, allocations: 36 kB / 0.542 GB, free: 14.54 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.2353, allocations: 159 kB / 0.5422 GB, free: 14.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2353, allocations: 0 / 0.5422 GB, free: 14.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009966/0.2363, allocations: 232 kB / 0.5424 GB, free: 14.15 MB / 430.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.0002041/0.2365, allocations: 139 kB / 0.5425 GB, free: 14 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006964/0.2435, allocations: 1.901 MB / 0.5444 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.2435, allocations: 4 kB / 0.5444 GB, free: 12.05 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005886/0.2494, allocations: 1.521 MB / 0.5459 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001123/0.2505, allocations: 181.1 kB / 0.546 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003088/0.2536, allocations: 1.746 MB / 0.5477 GB, free: 8.441 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006388/0.2543, allocations: 0.9091 MB / 0.5486 GB, free: 7.508 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004752/0.2548, allocations: 89.02 kB / 0.5487 GB, free: 7.422 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.255, allocations: 59.42 kB / 0.5488 GB, free: 7.363 MB / 430.1 MB Notification: Performance of SimCode: time 3.31e-07/0.255, allocations: 0 / 0.5488 GB, free: 7.363 MB / 430.1 MB Notification: Performance of Templates: time 0.02067/0.2757, allocations: 12.06 MB / 0.5605 GB, free: 11.39 MB / 446.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)