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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008929/0.000893, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.0009657/0.0009657, allocations: 176.7 kB / 15.95 MB, free: 192 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.411/1.411, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2114/0.2114, allocations: 22.36 MB / 313.4 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003356/0.0003356, allocations: 8 kB / 382 MB, free: 10.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3277/0.3281, allocations: 55.98 MB / 438 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.002772/0.3309, allocations: 3.451 MB / 441.5 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.3324, allocations: 1.249 MB / 442.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.3325, allocations: 2.969 kB / 442.7 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.439e-05/0.3327, allocations: 55.55 kB / 442.8 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000307/0.333, allocations: 185.8 kB / 443 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004041/0.3334, allocations: 192.7 kB / 443.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006799/0.3341, allocations: 0.9898 MB / 444.1 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003934/0.3345, allocations: 340.8 kB / 444.5 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002999/0.3348, allocations: 334.9 kB / 444.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003739/0.3352, allocations: 363.6 kB / 445.2 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.788e-05/0.3352, allocations: 47.06 kB / 445.2 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.252e-05/0.3353, allocations: 43.25 kB / 445.2 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.561e-05/0.3354, allocations: 138 kB / 445.4 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001265/0.3356, allocations: 165.4 kB / 445.5 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004612/0.336, allocations: 0.707 MB / 446.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.336, allocations: 0 / 446.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.3361, allocations: 0 / 446.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.3361, allocations: 3.938 kB / 446.2 MB, free: 34.38 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.001577/0.3377, allocations: 0.871 MB / 447.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.3377, allocations: 8.625 kB / 447.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.3378, allocations: 129.7 kB / 447.3 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.702e-05/0.3379, allocations: 73.16 kB / 447.3 MB, free: 33.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.3381, allocations: 231.9 kB / 447.6 MB, free: 33.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.3381, allocations: 66.97 kB / 447.6 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-05/0.3382, allocations: 85.02 kB / 447.7 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009865/0.3392, allocations: 0.6796 MB / 448.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.3393, allocations: 3.062 kB / 448.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.817e-05/0.3393, allocations: 41.59 kB / 448.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.3393, allocations: 20.5 kB / 448.4 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009995/0.3403, allocations: 0.6846 MB / 449.1 MB, free: 32.81 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.002858/0.3432, allocations: 2.308 MB / 451.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009336/0.3442, allocations: 0.6629 MB / 452.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004393/0.3446, allocations: 340.8 kB / 452.4 MB, free: 30.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.589e-05/0.3447, allocations: 13.59 kB / 452.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.3447, allocations: 53.23 kB / 452.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.445e-06/0.3447, allocations: 0 / 452.5 MB, free: 30.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006374/0.3511, allocations: 3.109 MB / 455.6 MB, free: 29.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.3512, allocations: 61.62 kB / 455.7 MB, free: 29.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.3513, allocations: 200.7 kB / 455.9 MB, free: 29.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.538e-05/0.3514, allocations: 48.83 kB / 455.9 MB, free: 28.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.468e-05/0.3515, allocations: 231.1 kB / 456.1 MB, free: 28.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000195/0.3517, allocations: 381.8 kB / 456.5 MB, free: 28.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.3517, allocations: 19.78 kB / 456.5 MB, free: 28.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.852e-05/0.3518, allocations: 354.5 kB / 456.9 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004982/0.3523, allocations: 295.4 kB / 457.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005436/0.3529, allocations: 386.6 kB / 457.5 MB, free: 27.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005844/0.3535, allocations: 358.1 kB / 457.9 MB, free: 27.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3535, allocations: 0 / 457.9 MB, free: 27.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002194/0.3557, allocations: 1.038 MB / 458.9 MB, free: 27.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.3557, allocations: 5.938 kB / 458.9 MB, free: 27.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3557, allocations: 1.344 kB / 458.9 MB, free: 27.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/0.3567, allocations: 229.8 kB / 459.2 MB, free: 27.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005292/0.3621, allocations: 0.7499 MB / 459.9 MB, free: 27.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008601/0.3707, allocations: 13.9 MB / 473.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007948/0.3715, allocations: 52.77 kB / 473.9 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.33e-05/0.3716, allocations: 29.75 kB / 473.9 MB, free: 13.04 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.0004623/0.3721, allocations: 253.1 kB / 474.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.572e-05/0.3722, allocations: 47.44 kB / 474.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002805/0.375, allocations: 1.25 MB / 475.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.375, allocations: 11.94 kB / 475.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.375, allocations: 5.969 kB / 475.4 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.375, allocations: 9.484 kB / 475.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004009/0.3791, allocations: 2.382 MB / 477.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.3791, allocations: 6.656 kB / 477.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00471/0.3838, allocations: 0.6998 MB / 478.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00201/0.3858, allocations: 380.3 kB / 478.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.386, allocations: 32.47 kB / 478.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009877/0.3958, allocations: 14.06 MB / 493 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-05/0.3959, allocations: 12.3 kB / 493 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003928/0.3998, allocations: 1.822 MB / 494.8 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002633/0.4001, allocations: 128.1 kB / 495 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.4002, allocations: 32.42 kB / 495 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006982/0.401, allocations: 54.75 kB / 495.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003126/0.4013, allocations: 113.5 kB / 495.2 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.659e-05/0.4014, allocations: 35.7 kB / 495.2 MB, free: 11.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001778/0.4016, allocations: 153.5 kB / 495.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4016, allocations: 0 / 495.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001347/0.4029, allocations: 231.3 kB / 495.6 MB, free: 11.27 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.004104/0.407, allocations: 2.404 MB / 498 MB, free: 9.633 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.007008/0.4141, allocations: 1.883 MB / 499.9 MB, free: 8.832 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.4141, allocations: 5.031 kB / 499.9 MB, free: 8.828 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005684/0.4198, allocations: 1.542 MB / 0.4897 GB, free: 8.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.4211, allocations: 169.2 kB / 0.4898 GB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008052/0.4292, allocations: 4.056 MB / 0.4938 GB, free: 5.164 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006567/0.4299, allocations: 0.9134 MB / 0.4947 GB, free: 4.301 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007611/0.4307, allocations: 89.62 kB / 0.4948 GB, free: 4.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000435/0.4311, allocations: 218.3 kB / 0.495 GB, free: 4.035 MB / 366.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4311, allocations: 0 / 0.495 GB, free: 4.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03231/0.4634, allocations: 15.4 MB / 0.51 GB, free: 5.422 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001637/0.4637, allocations: 227.9 kB / 0.5102 GB, free: 5.176 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.294/2.758, allocations: 0 / 0.5102 GB, free: 5.176 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1) Environment - environmentSimulation: