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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002",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.0008763/0.0008763, allocations: 98.53 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.000893/0.0008933, 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.328/1.328, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1948/0.1948, allocations: 22.34 MB / 313.3 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000314/0.000314, allocations: 8 kB / 381.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3235, allocations: 55.97 MB / 437.9 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.00307/0.3266, allocations: 3.286 MB / 441.2 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001683/0.3283, allocations: 1.33 MB / 442.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.3285, allocations: 3.938 kB / 442.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.595e-05/0.3286, allocations: 64.08 kB / 442.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003385/0.3289, allocations: 244.5 kB / 442.8 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003874/0.3293, allocations: 208.2 kB / 443 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005277/0.3298, allocations: 0.7127 MB / 443.7 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004208/0.3303, allocations: 452.2 kB / 444.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003202/0.3306, allocations: 399.2 kB / 444.6 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000508/0.3311, allocations: 463.1 kB / 445 MB, free: 34.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.185e-05/0.3312, allocations: 54.5 kB / 445.1 MB, free: 34.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.3313, allocations: 55.78 kB / 445.1 MB, free: 34.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001136/0.3314, allocations: 169.3 kB / 445.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.3316, allocations: 176.7 kB / 445.5 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004699/0.332, allocations: 0.8121 MB / 446.3 MB, free: 34.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.332, allocations: 0 / 446.3 MB, free: 34.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3321, allocations: 0 / 446.3 MB, free: 34.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.3321, allocations: 4 kB / 446.3 MB, free: 34.3 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.00183/0.3339, allocations: 0.9255 MB / 447.2 MB, free: 33.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.334, allocations: 14.94 kB / 447.2 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.3341, allocations: 143 kB / 447.4 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.3342, allocations: 80 kB / 447.4 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001647/0.3344, allocations: 248.5 kB / 447.7 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.163e-05/0.3344, allocations: 65.66 kB / 447.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.3346, allocations: 87.91 kB / 447.8 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.3357, allocations: 0.7929 MB / 448.6 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.3357, allocations: 3.984 kB / 448.6 MB, free: 32.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.753e-05/0.3358, allocations: 33.88 kB / 448.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.79e-05/0.3358, allocations: 20.09 kB / 448.7 MB, free: 32.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.337, allocations: 0.8254 MB / 449.5 MB, free: 32.6 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003456/0.3405, allocations: 2.327 MB / 451.8 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001902/0.3424, allocations: 0.9876 MB / 452.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.472e-05/0.3425, allocations: 19.86 kB / 452.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/0.3425, allocations: 52.64 kB / 452.9 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005143/0.3431, allocations: 125.1 kB / 453 MB, free: 30.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 4.208e-06/0.3431, allocations: 0 / 453 MB, free: 30.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.009448/0.3525, allocations: 3.529 MB / 456.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.3527, allocations: 65.38 kB / 456.6 MB, free: 28.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003247/0.353, allocations: 223.8 kB / 456.8 MB, free: 28.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.175e-05/0.3531, allocations: 47.36 kB / 456.9 MB, free: 28.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.3533, allocations: 238.3 kB / 457.1 MB, free: 28.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00031/0.3536, allocations: 418.6 kB / 457.5 MB, free: 28.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.537e-05/0.3536, allocations: 23.88 kB / 457.5 MB, free: 28.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.3538, allocations: 363.7 kB / 457.9 MB, free: 27.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006015/0.3544, allocations: 355.3 kB / 458.2 MB, free: 27.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006346/0.355, allocations: 453.3 kB / 458.7 MB, free: 27.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006742/0.3557, allocations: 429.1 kB / 459.1 MB, free: 27.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3557, allocations: 1.375 kB / 459.1 MB, free: 27.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00244/0.3582, allocations: 1.205 MB / 460.3 MB, free: 26.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/0.3582, allocations: 5.406 kB / 460.3 MB, free: 26.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.3582, allocations: 2.312 kB / 460.3 MB, free: 26.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/0.3593, allocations: 232.1 kB / 460.5 MB, free: 26.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005891/0.3652, allocations: 0.8096 MB / 461.3 MB, free: 26.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008756/0.374, allocations: 13.96 MB / 475.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009451/0.375, allocations: 57.16 kB / 475.4 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.987e-05/0.3751, allocations: 44.59 kB / 475.4 MB, free: 12.62 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.0005263/0.3756, allocations: 269.6 kB / 475.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.3757, allocations: 53.38 kB / 475.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003115/0.3789, allocations: 1.488 MB / 477.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.411e-05/0.3789, allocations: 12.97 kB / 477.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3789, allocations: 2.375 kB / 477.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.3789, allocations: 6.891 kB / 477.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004408/0.3833, allocations: 2.573 MB / 479.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.224e-05/0.3834, allocations: 6.688 kB / 479.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006071/0.3894, allocations: 0.7649 MB / 480.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002178/0.3916, allocations: 380.2 kB / 480.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001563/0.3918, allocations: 36.66 kB / 481 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01161/0.4034, allocations: 14.21 MB / 495.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/0.4035, allocations: 11.94 kB / 495.2 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005784/0.4093, allocations: 2.357 MB / 497.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005382/0.4099, allocations: 139.8 kB / 497.7 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001486/0.41, allocations: 30.64 kB / 497.7 MB, free: 10.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008544/0.4109, allocations: 57.75 kB / 497.8 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004283/0.4113, allocations: 118.5 kB / 497.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.4114, allocations: 49.98 kB / 497.9 MB, free: 10.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002283/0.4117, allocations: 162.3 kB / 498.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4117, allocations: 0 / 498.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001624/0.4133, allocations: 257.6 kB / 498.4 MB, free: 10.04 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.007522/0.4208, allocations: 4.729 MB / 0.4913 GB, free: 6.137 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.007817/0.4287, allocations: 2.06 MB / 0.4933 GB, free: 5.254 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.416e-05/0.4288, allocations: 1 kB / 0.4933 GB, free: 5.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007104/0.4359, allocations: 1.626 MB / 0.4949 GB, free: 4.062 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.437, allocations: 171.6 kB / 0.4951 GB, free: 3.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008057/0.4451, allocations: 5.122 MB / 0.5001 GB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007038/0.4458, allocations: 0.9465 MB / 0.501 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009838/0.4468, allocations: 113.5 kB / 0.5011 GB, free: 14.06 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004365/0.4472, allocations: 267.3 kB / 0.5013 GB, free: 13.8 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4472, allocations: 0 / 0.5013 GB, free: 13.8 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1387/0.586, allocations: 17.69 MB / 0.5186 GB, free: 12.42 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003525/0.5864, allocations: 222.6 kB / 0.5188 GB, free: 12.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.401/2.987, allocations: 4 kB / 0.5188 GB, free: 12.17 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1) Environment - environmentSimulation: