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.001451/0.001451, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001749/0.001749, allocations: 177.3 kB / 15.94 MB, free: 228 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.48/1.48, allocations: 223.2 MB / 239.9 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2676/0.2676, allocations: 22.33 MB / 313.3 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005413/0.0005414, allocations: 15.98 kB / 381.8 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3076, allocations: 55.97 MB / 437.8 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.00283/0.3105, allocations: 3.275 MB / 441.1 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.3122, allocations: 1.33 MB / 442.4 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.3124, allocations: 2.844 kB / 442.4 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.811e-05/0.3125, allocations: 65.45 kB / 442.5 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003449/0.3129, allocations: 257.4 kB / 442.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003957/0.3133, allocations: 197.2 kB / 442.9 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005522/0.3139, allocations: 0.7143 MB / 443.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004442/0.3143, allocations: 459.5 kB / 444.1 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003178/0.3146, allocations: 391.2 kB / 444.5 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004002/0.315, allocations: 464.9 kB / 444.9 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.017e-05/0.3151, allocations: 55 kB / 445 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.3152, allocations: 55.16 kB / 445 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.3154, allocations: 165.1 kB / 445.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.3155, allocations: 182.7 kB / 445.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004902/0.316, allocations: 0.8058 MB / 446.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.316, allocations: 0 / 446.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.71e-07/0.316, allocations: 2.969 kB / 446.2 MB, free: 34.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.316, allocations: 0 / 446.2 MB, free: 34.37 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.001859/0.3179, allocations: 0.935 MB / 447.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.201e-05/0.3179, allocations: 9.125 kB / 447.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001287/0.318, allocations: 84 kB / 447.2 MB, free: 33.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.3182, allocations: 247.2 kB / 447.4 MB, free: 33.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.862e-05/0.3182, allocations: 66.25 kB / 447.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000104/0.3184, allocations: 83.88 kB / 447.6 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.3194, allocations: 0.7925 MB / 448.4 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.3195, allocations: 7.953 kB / 448.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.241e-05/0.3196, allocations: 33.78 kB / 448.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.417e-05/0.3196, allocations: 30.67 kB / 448.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00113/0.3207, allocations: 0.8231 MB / 449.3 MB, free: 32.75 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: 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.003384/0.3241, allocations: 2.606 MB / 451.9 MB, free: 31.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001748/0.3259, allocations: 0.9844 MB / 452.9 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.319e-05/0.3259, allocations: 17.73 kB / 452.9 MB, free: 30.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.326, allocations: 55.11 kB / 452.9 MB, free: 30.72 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004482/0.3264, allocations: 130.5 kB / 453.1 MB, free: 30.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 3.066e-06/0.3264, allocations: 0 / 453.1 MB, free: 30.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007551/0.334, allocations: 3.529 MB / 456.6 MB, free: 28.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.3341, allocations: 68.91 kB / 456.7 MB, free: 28.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002874/0.3344, allocations: 218 kB / 456.9 MB, free: 28.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.108e-05/0.3345, allocations: 46.02 kB / 456.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.3346, allocations: 239.1 kB / 457.2 MB, free: 28.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003127/0.335, allocations: 424.7 kB / 457.6 MB, free: 28.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.652e-05/0.335, allocations: 24.94 kB / 457.6 MB, free: 28.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.3352, allocations: 363.4 kB / 458 MB, free: 27.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000603/0.3358, allocations: 352.8 kB / 458.3 MB, free: 27.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006314/0.3364, allocations: 448.1 kB / 458.7 MB, free: 27.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000715/0.3371, allocations: 430.8 kB / 459.2 MB, free: 27.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3371, allocations: 3.953 kB / 459.2 MB, free: 27.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002557/0.3397, allocations: 1.204 MB / 460.4 MB, free: 26.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.3397, allocations: 5.531 kB / 460.4 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.3398, allocations: 1.125 kB / 460.4 MB, free: 26.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001129/0.3409, allocations: 229.4 kB / 460.6 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005855/0.3468, allocations: 0.8087 MB / 461.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009352/0.3561, allocations: 13.97 MB / 475.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009902/0.3572, allocations: 54.28 kB / 475.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.22e-05/0.3573, allocations: 38.91 kB / 475.5 MB, free: 12.44 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, max(0.0, max(0.0, 0.0))))))))))))) start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real U1.T:VARIABLE(min = max(0.0, 0.0) start = U1.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 (124): * Single equations (assignments): 114 * 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%) 2,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005304/0.3578, allocations: 255.1 kB / 475.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001174/0.3579, allocations: 55.7 kB / 475.8 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.3612, allocations: 1.494 MB / 477.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.3612, allocations: 17.09 kB / 477.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3612, allocations: 2.953 kB / 477.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/0.3612, allocations: 6.281 kB / 477.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00463/0.3659, allocations: 2.57 MB / 479.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.3659, allocations: 5.438 kB / 479.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005392/0.3713, allocations: 0.7582 MB / 480.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002205/0.3735, allocations: 393.1 kB / 481 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001581/0.3737, allocations: 31.17 kB / 481 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01069/0.3844, allocations: 14.21 MB / 495.2 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/0.3844, allocations: 20.17 kB / 495.3 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004385/0.3888, allocations: 2.347 MB / 497.6 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002497/0.3891, allocations: 135.4 kB / 497.7 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.3893, allocations: 38.67 kB / 497.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008267/0.3901, allocations: 53.59 kB / 497.8 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000303/0.3904, allocations: 124.1 kB / 498 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.319e-05/0.3905, allocations: 43.56 kB / 498 MB, free: 10 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001908/0.3907, allocations: 166.6 kB / 498.2 MB, free: 9.898 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3907, allocations: 0 / 498.2 MB, free: 9.898 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00131/0.3921, allocations: 257.1 kB / 498.4 MB, free: 9.859 MB / 366.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 (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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002557/0.3923, allocations: 143 kB / 498.5 MB, free: 9.734 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.007558/0.3999, allocations: 2.056 MB / 0.4889 GB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.061e-06/0.3999, allocations: 1.375 kB / 0.4889 GB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006225/0.4061, allocations: 1.632 MB / 0.4905 GB, free: 8.133 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001044/0.4072, allocations: 168.3 kB / 0.4906 GB, free: 8.078 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003884/0.4111, allocations: 2.254 MB / 0.4928 GB, free: 6.168 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006754/0.4118, allocations: 0.9513 MB / 0.4938 GB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008744/0.4127, allocations: 112.5 kB / 0.4939 GB, free: 5.195 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003184/0.413, allocations: 69.58 kB / 0.4939 GB, free: 5.133 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.413, allocations: 4 kB / 0.4939 GB, free: 5.129 MB / 366.1 MB Notification: Performance of Templates: time 0.02313/0.4362, allocations: 12.38 MB / 0.506 GB, free: 9.242 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: