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.0008789/0.0008785, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009433/0.0009433, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.563/1.563, allocations: 223.3 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2364/0.2364, allocations: 22.34 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000578/0.000578, allocations: 8 kB / 381.9 MB, free: 10.55 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3594/0.36, allocations: 55.97 MB / 437.9 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.002895/0.3629, allocations: 3.455 MB / 441.4 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001803/0.3647, allocations: 1.241 MB / 442.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003244/0.3651, allocations: 3.062 kB / 442.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.3652, allocations: 57.17 kB / 442.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005181/0.3658, allocations: 191 kB / 442.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005427/0.3663, allocations: 184.6 kB / 443 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008158/0.3672, allocations: 0.9913 MB / 444 MB, free: 35.03 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003844/0.3675, allocations: 340 kB / 444.4 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003116/0.3679, allocations: 335.9 kB / 444.7 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003507/0.3682, allocations: 365.9 kB / 445 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.439e-05/0.3683, allocations: 46.97 kB / 445.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.326e-05/0.3684, allocations: 47.41 kB / 445.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.053e-05/0.3685, allocations: 137.2 kB / 445.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.3686, allocations: 165.9 kB / 445.4 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000441/0.3691, allocations: 0.7068 MB / 446.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3691, allocations: 0 / 446.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3691, allocations: 0 / 446.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.3691, allocations: 0 / 446.1 MB, free: 34.33 MB / 350.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.001579/0.3707, allocations: 0.8694 MB / 447 MB, free: 33.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.3707, allocations: 8.75 kB / 447 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.3709, allocations: 72.34 kB / 447.1 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.371, allocations: 236.3 kB / 447.3 MB, free: 33.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.368e-05/0.3711, allocations: 61.59 kB / 447.4 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.791e-05/0.3712, allocations: 77.94 kB / 447.5 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009933/0.3722, allocations: 0.687 MB / 448.1 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.3722, allocations: 0 / 448.1 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.06e-05/0.3723, allocations: 36.72 kB / 448.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.3723, allocations: 21.88 kB / 448.2 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001004/0.3733, allocations: 0.6921 MB / 448.9 MB, free: 32.85 MB / 350.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.002876/0.3762, allocations: 2.3 MB / 451.2 MB, free: 31.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009932/0.3772, allocations: 0.6802 MB / 451.9 MB, free: 31.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004465/0.3776, allocations: 326.1 kB / 452.2 MB, free: 30.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.942e-05/0.3777, allocations: 15.61 kB / 452.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.3778, allocations: 48.11 kB / 452.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.085e-06/0.3778, allocations: 0 / 452.3 MB, free: 30.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006391/0.3842, allocations: 3.116 MB / 455.4 MB, free: 29.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.3842, allocations: 61.34 kB / 455.4 MB, free: 29.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.3844, allocations: 204.2 kB / 455.6 MB, free: 29.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.3844, allocations: 45.02 kB / 455.7 MB, free: 29.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.289e-05/0.3845, allocations: 230.1 kB / 455.9 MB, free: 28.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001914/0.3847, allocations: 380.4 kB / 456.3 MB, free: 28.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.3848, allocations: 15 kB / 456.3 MB, free: 28.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.075e-05/0.3848, allocations: 357.7 kB / 456.6 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000457/0.3853, allocations: 295 kB / 456.9 MB, free: 28.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005485/0.3859, allocations: 384.5 kB / 457.3 MB, free: 27.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005781/0.3864, allocations: 359.7 kB / 457.6 MB, free: 27.69 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3864, allocations: 0 / 457.6 MB, free: 27.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002091/0.3885, allocations: 1.042 MB / 458.7 MB, free: 27.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.3886, allocations: 8.938 kB / 458.7 MB, free: 27.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.3886, allocations: 1.672 kB / 458.7 MB, free: 27.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009967/0.3896, allocations: 229.7 kB / 458.9 MB, free: 27.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005057/0.3947, allocations: 0.749 MB / 459.7 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009449/0.4041, allocations: 13.89 MB / 473.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009094/0.4051, allocations: 48.17 kB / 473.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001385/0.4052, allocations: 40.52 kB / 473.6 MB, free: 13.07 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: 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 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 AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) type: Real AHU.T:VARIABLE(min = max(0.0, 0.0) start = AHU.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" 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 (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 4,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006697/0.4059, allocations: 248.5 kB / 473.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001753/0.4061, allocations: 47.66 kB / 473.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003061/0.4092, allocations: 1.257 MB / 475.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.4092, allocations: 10.69 kB / 475.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.824e-05/0.4092, allocations: 2.219 kB / 475.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.544e-05/0.4092, allocations: 6.141 kB / 475.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004689/0.4139, allocations: 2.379 MB / 477.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.487e-05/0.414, allocations: 9.531 kB / 477.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004575/0.4185, allocations: 0.7081 MB / 478.3 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/0.4206, allocations: 375.2 kB / 478.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001137/0.4207, allocations: 32.19 kB / 478.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01001/0.4307, allocations: 14.06 MB / 492.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-05/0.4307, allocations: 12.19 kB / 492.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004434/0.4352, allocations: 1.823 MB / 494.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002765/0.4355, allocations: 128.6 kB / 494.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001246/0.4356, allocations: 31.62 kB / 494.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006916/0.4363, allocations: 51.27 kB / 494.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003491/0.4367, allocations: 114.6 kB / 494.9 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.36e-05/0.4368, allocations: 38.83 kB / 495 MB, free: 11.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001871/0.437, allocations: 156.7 kB / 495.1 MB, free: 11.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.437, allocations: 3.938 kB / 495.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001268/0.4383, allocations: 230.8 kB / 495.3 MB, free: 11.29 MB / 366.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 (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,77.8%) 4,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002276/0.4385, allocations: 145.5 kB / 495.5 MB, free: 11.16 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Air/MAvolume.mo:13:3-13:61:writable] Warning: Variable $DER.V.p has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.007171/0.4457, allocations: 1.882 MB / 497.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.4457, allocations: 1.062 kB / 497.4 MB, free: 10.37 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005798/0.4515, allocations: 1.534 MB / 498.9 MB, free: 9.676 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.4528, allocations: 175.8 kB / 499.1 MB, free: 9.613 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004079/0.4569, allocations: 2.099 MB / 0.4894 GB, free: 8.152 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007381/0.4576, allocations: 0.9127 MB / 0.4903 GB, free: 7.441 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008/0.4584, allocations: 89.84 kB / 0.4904 GB, free: 7.402 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002401/0.4587, allocations: 48.66 kB / 0.4905 GB, free: 7.395 MB / 366.1 MB Notification: Performance of SimCode: time 1.553e-06/0.4587, allocations: 1.469 kB / 0.4905 GB, free: 7.395 MB / 366.1 MB Notification: Performance of Templates: time 0.02369/0.4824, allocations: 10.56 MB / 0.5008 GB, free: 14.81 MB / 382.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)