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.008112/0.008112, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001977/0.001977, allocations: 196.1 kB / 16.68 MB, free: 5.973 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0996/0.0996, allocations: 22.33 MB / 312.9 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00201/0.00201, allocations: 63.91 kB / 436.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1128, allocations: 54.95 MB / 491.5 MB, free: 5.242 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.006576/0.1194, allocations: 4.232 MB / 495.7 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00321/0.1227, allocations: 1.329 MB / 497.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005322/0.1233, allocations: 4 kB / 497.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003095/0.1236, allocations: 91.06 kB / 497.2 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007746/0.1244, allocations: 237.9 kB / 497.4 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008257/0.1253, allocations: 303.5 kB / 497.7 MB, free: 15.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001706/0.127, allocations: 1.169 MB / 498.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008986/0.1279, allocations: 0.5593 MB / 499.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005936/0.1285, allocations: 462.8 kB / 499.9 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006892/0.1292, allocations: 0.5061 MB / 0.4887 GB, free: 12.33 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001568/0.1294, allocations: 108 kB / 0.4888 GB, free: 12.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001971/0.1296, allocations: 108 kB / 0.4889 GB, free: 12.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002119/0.1298, allocations: 231.4 kB / 0.4891 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004678/0.1303, allocations: 482.1 kB / 0.4895 GB, free: 11.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001128/0.1314, allocations: 1.113 MB / 0.4906 GB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1314, allocations: 0 / 0.4906 GB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1314, allocations: 0 / 0.4906 GB, free: 10.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.1314, allocations: 0 / 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.002449/0.1339, allocations: 1.092 MB / 0.4917 GB, free: 9.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.1339, allocations: 15.91 kB / 0.4917 GB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001642/0.1341, allocations: 139.7 kB / 0.4918 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.1343, allocations: 84.42 kB / 0.4919 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000236/0.1345, allocations: 247.9 kB / 0.4922 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.897e-05/0.1346, allocations: 73.94 kB / 0.4922 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001311/0.1347, allocations: 88 kB / 0.4923 GB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.1361, allocations: 0.8077 MB / 0.4931 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/0.1362, allocations: 0 / 0.4931 GB, free: 7.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.375e-05/0.1363, allocations: 36 kB / 0.4931 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/0.1363, allocations: 24 kB / 0.4932 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.1378, allocations: 0.8237 MB / 0.494 GB, free: 6.781 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.004391/0.1422, allocations: 2.618 MB / 0.4965 GB, free: 4.027 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/0.1444, allocations: 1.003 MB / 0.4975 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007071/0.1451, allocations: 415.7 kB / 0.4979 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.416e-05/0.1452, allocations: 16.98 kB / 0.4979 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.883e-05/0.1452, allocations: 43.56 kB / 0.498 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004564/0.1457, allocations: 135.3 kB / 0.4981 GB, free: 2.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 2.675e-06/0.1457, allocations: 0 / 0.4981 GB, free: 2.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.2099/0.3556, allocations: 3.529 MB / 0.5015 GB, free: 21.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.3556, allocations: 65.16 kB / 0.5016 GB, free: 21.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.3558, allocations: 220 kB / 0.5018 GB, free: 21.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.928e-05/0.3559, allocations: 47.05 kB / 0.5019 GB, free: 21.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.356, allocations: 247 kB / 0.5021 GB, free: 21.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.3562, allocations: 446.5 kB / 0.5025 GB, free: 21.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002606/0.3565, allocations: 177.2 kB / 0.5027 GB, free: 21.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.381e-05/0.3566, allocations: 363.5 kB / 0.503 GB, free: 20.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005589/0.3571, allocations: 363.4 kB / 0.5034 GB, free: 20.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006181/0.3578, allocations: 455.7 kB / 0.5038 GB, free: 20.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01774/0.3755, allocations: 3.473 MB / 0.5072 GB, free: 20.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3756, allocations: 1.281 kB / 0.5072 GB, free: 20.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002423/0.378, allocations: 1.213 MB / 0.5084 GB, free: 20.45 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.378, allocations: 6.281 kB / 0.5084 GB, free: 20.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.378, allocations: 1.375 kB / 0.5084 GB, free: 20.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009827/0.379, allocations: 213.1 kB / 0.5086 GB, free: 20.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006009/0.385, allocations: 0.811 MB / 0.5094 GB, free: 20.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008265/0.3933, allocations: 14.95 MB / 0.524 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007483/0.3941, allocations: 27.89 kB / 0.524 GB, free: 6.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.812e-05/0.3942, allocations: 40.77 kB / 0.5241 GB, free: 6.141 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.0004338/0.3946, allocations: 233.3 kB / 0.5243 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.3948, allocations: 54.55 kB / 0.5243 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003069/0.3978, allocations: 1.483 MB / 0.5258 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.765e-05/0.3979, allocations: 16.03 kB / 0.5258 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.403e-06/0.3979, allocations: 2.562 kB / 0.5258 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.3979, allocations: 6.422 kB / 0.5258 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00478/0.4027, allocations: 2.587 MB / 0.5283 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.4027, allocations: 12.7 kB / 0.5283 GB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005254/0.408, allocations: 0.7486 MB / 0.5291 GB, free: 5.082 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001989/0.41, allocations: 373 kB / 0.5294 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.4101, allocations: 41.69 kB / 0.5295 GB, free: 4.969 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01278/0.4229, allocations: 15.17 MB / 0.5443 GB, free: 5.844 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.304e-05/0.4229, allocations: 14.91 kB / 0.5443 GB, free: 5.836 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004234/0.4272, allocations: 2.06 MB / 0.5463 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002202/0.4274, allocations: 140.2 kB / 0.5464 GB, free: 4.555 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.4275, allocations: 33.17 kB / 0.5465 GB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006406/0.4282, allocations: 29.91 kB / 0.5465 GB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000317/0.4285, allocations: 130.5 kB / 0.5466 GB, free: 4.484 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.644e-05/0.4286, allocations: 40.95 kB / 0.5467 GB, free: 4.477 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.4288, allocations: 169.1 kB / 0.5468 GB, free: 4.371 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4288, allocations: 4.312 kB / 0.5468 GB, free: 4.371 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001146/0.43, allocations: 262.7 kB / 0.5471 GB, free: 4.328 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.004304/0.4343, allocations: 2.646 MB / 0.5497 GB, free: 2.52 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007257/0.4415, allocations: 2.047 MB / 0.5517 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.747e-06/0.4416, allocations: 3.75 kB / 0.5517 GB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006079/0.4477, allocations: 1.624 MB / 0.5533 GB, free: 460 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.4488, allocations: 199.1 kB / 0.5534 GB, free: 344 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.4597, allocations: 6.651 MB / 0.5599 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.4604, allocations: 0.9455 MB / 0.5609 GB, free: 10.09 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006218/0.461, allocations: 121.5 kB / 0.561 GB, free: 9.965 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004918/0.4615, allocations: 259.3 kB / 0.5612 GB, free: 9.711 MB / 414.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4615, allocations: 0 / 0.5612 GB, free: 9.711 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08248/0.544, allocations: 19.48 MB / 0.5803 GB, free: 6.477 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.15/13.7, allocations: 8.406 kB / 0.5803 GB, free: 6.473 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)