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.004958/0.004958, allocations: 104.8 kB / 15.74 MB, free: 5.988 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.001153/0.001153, allocations: 196.2 kB / 16.67 MB, free: 5.914 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.292/1.292, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08892/0.08892, allocations: 22.32 MB / 312.9 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 63.91 kB / 436.5 MB, free: 12.26 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1159, allocations: 54.96 MB / 491.5 MB, free: 5.254 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004675/0.1207, allocations: 4.012 MB / 495.5 MB, free: 1.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.1225, allocations: 1.286 MB / 496.8 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001476/0.1227, allocations: 4 kB / 496.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.1228, allocations: 79.14 kB / 496.9 MB, free: 15.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003835/0.1232, allocations: 218 kB / 497.1 MB, free: 15.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005095/0.1237, allocations: 299.5 kB / 497.4 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008033/0.1246, allocations: 1.088 MB / 498.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004709/0.125, allocations: 432.6 kB / 498.9 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003888/0.1254, allocations: 410.9 kB / 499.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00046/0.1259, allocations: 426.4 kB / 499.7 MB, free: 13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.126, allocations: 92 kB / 499.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000118/0.1261, allocations: 96 kB / 499.9 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001482/0.1263, allocations: 187.5 kB / 0.4884 GB, free: 12.63 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003457/0.1266, allocations: 438.2 kB / 0.4888 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007411/0.1274, allocations: 0.9579 MB / 0.4897 GB, free: 11.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1274, allocations: 0 / 0.4897 GB, free: 11.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1274, allocations: 0 / 0.4897 GB, free: 11.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.1274, allocations: 0 / 0.4897 GB, free: 11.24 MB / 382.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.001954/0.1294, allocations: 0.9875 MB / 0.4907 GB, free: 10.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1294, allocations: 12.03 kB / 0.4907 GB, free: 10.19 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001307/0.1296, allocations: 131.2 kB / 0.4908 GB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.1297, allocations: 76.09 kB / 0.4909 GB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001861/0.1299, allocations: 239.4 kB / 0.4911 GB, free: 9.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.156e-05/0.1299, allocations: 70.31 kB / 0.4912 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001102/0.1301, allocations: 84.11 kB / 0.4913 GB, free: 9.555 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001069/0.1311, allocations: 0.6868 MB / 0.4919 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.1312, allocations: 0 / 0.4919 GB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.403e-05/0.1312, allocations: 36 kB / 0.492 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.598e-05/0.1313, allocations: 20 kB / 0.492 GB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001084/0.1323, allocations: 0.6988 MB / 0.4927 GB, free: 8.109 MB / 382.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.003319/0.1357, allocations: 2.284 MB / 0.4949 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.1367, allocations: 0.6817 MB / 0.4956 GB, free: 5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004946/0.1372, allocations: 331.8 kB / 0.4959 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.888e-05/0.1373, allocations: 13 kB / 0.4959 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.1373, allocations: 51.59 kB / 0.4959 GB, free: 4.605 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.285e-06/0.1373, allocations: 0 / 0.4959 GB, free: 4.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.007157/0.1445, allocations: 3.099 MB / 0.499 GB, free: 1.383 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.1446, allocations: 64.41 kB / 0.499 GB, free: 1.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.1448, allocations: 203.8 kB / 0.4992 GB, free: 1.098 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.86e-05/0.1448, allocations: 41.7 kB / 0.4993 GB, free: 1.051 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.145, allocations: 232.9 kB / 0.4995 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000265/0.1453, allocations: 382.4 kB / 0.4999 GB, free: 448 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/0.1455, allocations: 150.7 kB / 0.5 GB, free: 292 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.2712/0.4167, allocations: 362.3 kB / 0.5003 GB, free: 21.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009265/0.4177, allocations: 292.4 kB / 0.5006 GB, free: 21.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000576/0.4183, allocations: 390.2 kB / 0.501 GB, free: 21.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/0.4284, allocations: 2.25 MB / 0.5032 GB, free: 21.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.4284, allocations: 3.391 kB / 0.5032 GB, free: 21.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00222/0.4306, allocations: 1.041 MB / 0.5042 GB, free: 21.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.4307, allocations: 7 kB / 0.5042 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.4307, allocations: 0.5156 kB / 0.5042 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009952/0.4317, allocations: 209.8 kB / 0.5044 GB, free: 21.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005654/0.4374, allocations: 0.7481 MB / 0.5052 GB, free: 21.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009069/0.4465, allocations: 14.94 MB / 0.5197 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006432/0.4471, allocations: 29.16 kB / 0.5198 GB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-05/0.4472, allocations: 31.67 kB / 0.5198 GB, free: 7.477 MB / 382.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.0003968/0.4476, allocations: 228.8 kB / 0.52 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.851e-05/0.4477, allocations: 49.38 kB / 0.5201 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002626/0.4503, allocations: 1.257 MB / 0.5213 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.4504, allocations: 11.81 kB / 0.5213 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.4504, allocations: 2.891 kB / 0.5213 GB, free: 7.172 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.539e-05/0.4504, allocations: 9 kB / 0.5213 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004276/0.4547, allocations: 2.373 MB / 0.5236 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.51e-05/0.4547, allocations: 7.391 kB / 0.5236 GB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005296/0.46, allocations: 0.7056 MB / 0.5243 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002008/0.462, allocations: 354.4 kB / 0.5247 GB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000103/0.4621, allocations: 35.73 kB / 0.5247 GB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01194/0.4741, allocations: 15.12 MB / 0.5395 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/0.4741, allocations: 6.594 kB / 0.5395 GB, free: 8.105 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003997/0.4781, allocations: 1.824 MB / 0.5413 GB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.4783, allocations: 126.9 kB / 0.5414 GB, free: 7.051 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.435e-05/0.4784, allocations: 31.2 kB / 0.5414 GB, free: 7.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005888/0.479, allocations: 29.52 kB / 0.5414 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003039/0.4793, allocations: 119.5 kB / 0.5416 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.305e-05/0.4794, allocations: 38.73 kB / 0.5416 GB, free: 6.977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001684/0.4796, allocations: 160.3 kB / 0.5417 GB, free: 6.871 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4796, allocations: 3.562 kB / 0.5417 GB, free: 6.871 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001204/0.4808, allocations: 232 kB / 0.542 GB, free: 6.836 MB / 398.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.004583/0.4854, allocations: 2.4 MB / 0.5443 GB, free: 5.223 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008014/0.4934, allocations: 1.892 MB / 0.5462 GB, free: 4.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.241e-05/0.4935, allocations: 2.312 kB / 0.5462 GB, free: 4.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006153/0.4996, allocations: 1.526 MB / 0.5476 GB, free: 3.723 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.5008, allocations: 184.7 kB / 0.5478 GB, free: 3.652 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.5115, allocations: 6.031 MB / 0.5537 GB, free: 15.74 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006434/0.5121, allocations: 0.9072 MB / 0.5546 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005402/0.5127, allocations: 90.02 kB / 0.5547 GB, free: 14.9 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003697/0.5131, allocations: 220.6 kB / 0.5549 GB, free: 14.72 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.5131, allocations: 4 kB / 0.5549 GB, free: 14.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05215/0.5653, allocations: 17.29 MB / 0.5718 GB, free: 14.83 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.8, allocations: 6.281 kB / 0.5718 GB, free: 14.82 MB / 430.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/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)