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.005429/0.005429, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001268/0.001268, allocations: 198.8 kB / 16.67 MB, free: 5.934 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09785/0.09785, allocations: 22.33 MB / 312.9 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 59.89 kB / 436.6 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1112, allocations: 54.95 MB / 491.5 MB, free: 5.23 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005083/0.1163, allocations: 4.015 MB / 495.5 MB, free: 1.188 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.1183, allocations: 1.282 MB / 496.8 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.1184, allocations: 4 kB / 496.8 MB, free: 15.9 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.1186, allocations: 79.14 kB / 496.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000412/0.119, allocations: 222 kB / 497.1 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005395/0.1196, allocations: 283.6 kB / 497.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.1206, allocations: 1.103 MB / 498.5 MB, free: 14.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005706/0.1212, allocations: 436.4 kB / 498.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004426/0.1216, allocations: 406.9 kB / 499.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005349/0.1222, allocations: 410.5 kB / 499.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.1223, allocations: 103.9 kB / 499.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00015/0.1225, allocations: 96 kB / 499.9 MB, free: 12.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.1227, allocations: 199.5 kB / 0.4884 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004393/0.1231, allocations: 418.3 kB / 0.4888 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009535/0.1241, allocations: 0.9729 MB / 0.4897 GB, free: 11.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1241, allocations: 4 kB / 0.4897 GB, free: 11.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1241, allocations: 0 / 0.4897 GB, free: 11.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.1241, allocations: 0 / 0.4897 GB, free: 11.2 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.002005/0.1261, allocations: 0.9982 MB / 0.4907 GB, free: 10.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.1262, allocations: 8.031 kB / 0.4907 GB, free: 10.15 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001546/0.1263, allocations: 135.3 kB / 0.4908 GB, free: 10.01 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001332/0.1265, allocations: 76.47 kB / 0.4909 GB, free: 9.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002327/0.1267, allocations: 239.5 kB / 0.4911 GB, free: 9.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.982e-05/0.1268, allocations: 62.38 kB / 0.4912 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001193/0.1269, allocations: 84.11 kB / 0.4913 GB, free: 9.516 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.1281, allocations: 0.6945 MB / 0.492 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.1282, allocations: 0 / 0.492 GB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.041e-05/0.1282, allocations: 36 kB / 0.492 GB, free: 8.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.742e-05/0.1283, allocations: 20 kB / 0.492 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001219/0.1295, allocations: 0.691 MB / 0.4927 GB, free: 8.07 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.003551/0.133, allocations: 2.301 MB / 0.4949 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.1342, allocations: 0.6817 MB / 0.4956 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000552/0.1348, allocations: 327.8 kB / 0.4959 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.778e-05/0.1349, allocations: 16.98 kB / 0.4959 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.1349, allocations: 43.56 kB / 0.496 GB, free: 4.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 2.394e-06/0.1349, allocations: 0 / 0.496 GB, free: 4.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.007553/0.1425, allocations: 3.108 MB / 0.499 GB, free: 1.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.077e-05/0.1425, allocations: 68.34 kB / 0.4991 GB, free: 1.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002112/0.1428, allocations: 203.8 kB / 0.4993 GB, free: 1.039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.945e-05/0.1428, allocations: 45.7 kB / 0.4993 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.143, allocations: 237.5 kB / 0.4995 GB, free: 0.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003178/0.1433, allocations: 404.5 kB / 0.4999 GB, free: 360 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002524/0.1436, allocations: 146.6 kB / 0.5001 GB, free: 208 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.1939/0.3375, allocations: 358.3 kB / 0.5004 GB, free: 21.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006621/0.3382, allocations: 300.4 kB / 0.5007 GB, free: 21.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004926/0.3387, allocations: 381.5 kB / 0.5011 GB, free: 21.87 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01018/0.3489, allocations: 2.255 MB / 0.5033 GB, free: 21.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.3489, allocations: 1.125 kB / 0.5033 GB, free: 21.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002023/0.3509, allocations: 1.047 MB / 0.5043 GB, free: 21.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.351, allocations: 5.984 kB / 0.5043 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.351, allocations: 4.812 kB / 0.5043 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009388/0.3519, allocations: 207.4 kB / 0.5045 GB, free: 21.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005325/0.3573, allocations: 0.7535 MB / 0.5052 GB, free: 21.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008256/0.3655, allocations: 14.95 MB / 0.5198 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005783/0.3662, allocations: 27.91 kB / 0.5199 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.008e-05/0.3662, allocations: 29.91 kB / 0.5199 GB, free: 7.48 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.000351/0.3666, allocations: 232.3 kB / 0.5201 GB, free: 7.348 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.916e-05/0.3667, allocations: 53.12 kB / 0.5202 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002573/0.3693, allocations: 1.253 MB / 0.5214 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.3693, allocations: 11.25 kB / 0.5214 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3693, allocations: 2.859 kB / 0.5214 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.3693, allocations: 10.75 kB / 0.5214 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003724/0.373, allocations: 2.375 MB / 0.5237 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.939e-06/0.3731, allocations: 10.97 kB / 0.5237 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004841/0.3779, allocations: 0.7005 MB / 0.5244 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001912/0.3798, allocations: 358.4 kB / 0.5248 GB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/0.38, allocations: 33.19 kB / 0.5248 GB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01197/0.3919, allocations: 15.12 MB / 0.5396 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.097e-06/0.392, allocations: 7.562 kB / 0.5396 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003714/0.3957, allocations: 1.835 MB / 0.5414 GB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001677/0.3959, allocations: 129 kB / 0.5415 GB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.396, allocations: 32.27 kB / 0.5415 GB, free: 7.008 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005539/0.3966, allocations: 32.19 kB / 0.5415 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003245/0.3969, allocations: 116.9 kB / 0.5416 GB, free: 6.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.678e-05/0.397, allocations: 40.02 kB / 0.5417 GB, free: 6.949 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001779/0.3972, allocations: 154.7 kB / 0.5418 GB, free: 6.848 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3972, allocations: 4 kB / 0.5418 GB, free: 6.844 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009973/0.3982, allocations: 234 kB / 0.5421 GB, free: 6.809 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.003784/0.402, allocations: 2.396 MB / 0.5444 GB, free: 5.195 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006985/0.409, allocations: 1.892 MB / 0.5462 GB, free: 4.383 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.22e-05/0.409, allocations: 4 kB / 0.5463 GB, free: 4.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005752/0.4148, allocations: 1.529 MB / 0.5477 GB, free: 3.688 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00102/0.4158, allocations: 184.2 kB / 0.5479 GB, free: 3.617 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009954/0.4258, allocations: 6.055 MB / 0.5538 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005895/0.4264, allocations: 0.9076 MB / 0.5547 GB, free: 14.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0005185/0.4269, allocations: 90.77 kB / 0.5548 GB, free: 14.85 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003621/0.4273, allocations: 219 kB / 0.555 GB, free: 14.67 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4273, allocations: 0 / 0.555 GB, free: 14.67 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05673/0.484, allocations: 16.92 MB / 0.5715 GB, free: 15.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.34, allocations: 6.344 kB / 0.5715 GB, free: 15.11 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)