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.004444/0.004444, allocations: 103.4 kB / 15.73 MB, free: 6.059 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.001114/0.001114, allocations: 186.6 kB / 16.67 MB, free: 5.977 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.315/1.315, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09067/0.09067, allocations: 22.33 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 67.89 kB / 436.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1439, allocations: 54.95 MB / 491.5 MB, free: 5.25 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.005742/0.1497, allocations: 4.245 MB / 495.7 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003156/0.1529, allocations: 1.329 MB / 497.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006314/0.1535, allocations: 4 kB / 497.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003396/0.1539, allocations: 87.06 kB / 497.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009695/0.1549, allocations: 237.9 kB / 497.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009478/0.1559, allocations: 299.5 kB / 497.7 MB, free: 15.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001664/0.1575, allocations: 1.173 MB / 498.9 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009153/0.1585, allocations: 0.5517 MB / 499.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008231/0.1593, allocations: 470.8 kB / 499.9 MB, free: 12.83 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000709/0.16, allocations: 0.5022 MB / 0.4887 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000135/0.1602, allocations: 108 kB / 0.4888 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.1603, allocations: 112 kB / 0.4889 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002064/0.1605, allocations: 235.3 kB / 0.4891 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004592/0.161, allocations: 474.1 kB / 0.4895 GB, free: 11.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009677/0.162, allocations: 1.106 MB / 0.4906 GB, free: 10.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.162, allocations: 0 / 0.4906 GB, free: 10.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.162, allocations: 0 / 0.4906 GB, free: 10.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.162, allocations: 3.938 kB / 0.4906 GB, free: 10.3 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002327/0.1644, allocations: 1.081 MB / 0.4917 GB, free: 9.176 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1644, allocations: 8.031 kB / 0.4917 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001612/0.1646, allocations: 135.7 kB / 0.4918 GB, free: 9.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.1647, allocations: 83.94 kB / 0.4919 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002624/0.165, allocations: 251.9 kB / 0.4921 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.532e-05/0.1651, allocations: 73.94 kB / 0.4922 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.1652, allocations: 84 kB / 0.4923 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001292/0.1665, allocations: 0.8038 MB / 0.4931 GB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.1665, allocations: 0 / 0.4931 GB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.803e-05/0.1666, allocations: 36 kB / 0.4931 GB, free: 7.656 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.071e-05/0.1667, allocations: 23.98 kB / 0.4931 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.168, allocations: 0.8237 MB / 0.4939 GB, free: 6.812 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: 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.004096/0.1721, allocations: 2.614 MB / 0.4965 GB, free: 4.062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001948/0.1741, allocations: 1.001 MB / 0.4975 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006108/0.1747, allocations: 419.7 kB / 0.4979 GB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.523e-05/0.1748, allocations: 20.98 kB / 0.4979 GB, free: 2.625 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.051e-05/0.1748, allocations: 43.56 kB / 0.4979 GB, free: 2.57 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004478/0.1753, allocations: 123.2 kB / 0.498 GB, free: 2.449 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.006e-06/0.1753, allocations: 0 / 0.498 GB, free: 2.449 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.283/0.4583, allocations: 3.535 MB / 0.5015 GB, free: 21.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.4584, allocations: 67 kB / 0.5016 GB, free: 21.65 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002204/0.4586, allocations: 217.4 kB / 0.5018 GB, free: 21.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.438e-05/0.4587, allocations: 45.27 kB / 0.5018 GB, free: 21.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.4588, allocations: 240.6 kB / 0.502 GB, free: 21.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002455/0.4591, allocations: 420.4 kB / 0.5024 GB, free: 21.08 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002725/0.4594, allocations: 178.6 kB / 0.5026 GB, free: 21.06 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.386e-05/0.4595, allocations: 364.5 kB / 0.503 GB, free: 20.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005525/0.46, allocations: 355 kB / 0.5033 GB, free: 20.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000629/0.4607, allocations: 461.2 kB / 0.5037 GB, free: 20.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01861/0.4793, allocations: 3.469 MB / 0.5071 GB, free: 20.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.4793, allocations: 1.562 kB / 0.5071 GB, free: 20.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002507/0.4818, allocations: 1.215 MB / 0.5083 GB, free: 20.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.4819, allocations: 5.5 kB / 0.5083 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.4819, allocations: 1.375 kB / 0.5083 GB, free: 20.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/0.4829, allocations: 215.4 kB / 0.5085 GB, free: 20.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006103/0.489, allocations: 0.8115 MB / 0.5093 GB, free: 20.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009257/0.4983, allocations: 14.93 MB / 0.5239 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008586/0.4992, allocations: 31.44 kB / 0.5239 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.021e-05/0.4993, allocations: 42.97 kB / 0.524 GB, free: 6.129 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 variables: U1.T:VARIABLE(min = 0.0 start = U1.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real U1.phi:VARIABLE(start = U1.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 (124): * Single equations (assignments): 114 * 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,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004575/0.4998, allocations: 239.3 kB / 0.5242 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.4999, allocations: 55.22 kB / 0.5243 GB, free: 5.965 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003214/0.5032, allocations: 1.476 MB / 0.5257 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/0.5032, allocations: 16.56 kB / 0.5257 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.5032, allocations: 1.812 kB / 0.5257 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.632e-05/0.5032, allocations: 7.297 kB / 0.5257 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004719/0.5079, allocations: 2.581 MB / 0.5282 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.101e-05/0.508, allocations: 5.688 kB / 0.5282 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005717/0.5137, allocations: 0.7604 MB / 0.529 GB, free: 5.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002205/0.5159, allocations: 374.5 kB / 0.5293 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002135/0.5162, allocations: 36.88 kB / 0.5294 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01172/0.5279, allocations: 15.17 MB / 0.5442 GB, free: 5.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-05/0.5279, allocations: 14.5 kB / 0.5442 GB, free: 5.812 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004323/0.5323, allocations: 2.056 MB / 0.5462 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002147/0.5325, allocations: 138.2 kB / 0.5463 GB, free: 4.535 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.5326, allocations: 36.94 kB / 0.5464 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006818/0.5333, allocations: 30.47 kB / 0.5464 GB, free: 4.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003352/0.5337, allocations: 135 kB / 0.5465 GB, free: 4.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.996e-05/0.5337, allocations: 42 kB / 0.5466 GB, free: 4.453 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.5339, allocations: 169 kB / 0.5467 GB, free: 4.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5339, allocations: 0 / 0.5467 GB, free: 4.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00124/0.5352, allocations: 258.4 kB / 0.547 GB, free: 4.309 MB / 398.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 (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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004544/0.5397, allocations: 2.641 MB / 0.5496 GB, free: 2.543 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007505/0.5473, allocations: 2.055 MB / 0.5516 GB, free: 1.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.176e-05/0.5473, allocations: 5.688 kB / 0.5516 GB, free: 1.406 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00668/0.554, allocations: 1.618 MB / 0.5532 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/0.5556, allocations: 205.4 kB / 0.5534 GB, free: 356 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.5672, allocations: 6.615 MB / 0.5598 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005451/0.5678, allocations: 0.9299 MB / 0.5607 GB, free: 10.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006296/0.5684, allocations: 121.5 kB / 0.5608 GB, free: 10 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004441/0.5689, allocations: 255.3 kB / 0.5611 GB, free: 9.75 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5689, allocations: 3.5 kB / 0.5611 GB, free: 9.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05693/0.6258, allocations: 19.95 MB / 0.5806 GB, free: 6.047 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/13.03, allocations: 12.02 kB / 0.5806 GB, free: 6.035 MB / 430.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/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)