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.004502/0.004502, allocations: 100.6 kB / 15.73 MB, free: 6.039 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.001106/0.001106, allocations: 188.9 kB / 16.67 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1971/0.1971, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 66.16 kB / 436.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09876/0.1, allocations: 54.96 MB / 491.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004253/0.1043, allocations: 4.247 MB / 495.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002292/0.1066, allocations: 1.333 MB / 497.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002316/0.1069, allocations: 4 kB / 497.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.1071, allocations: 87.06 kB / 497.2 MB, free: 12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004477/0.1075, allocations: 241.9 kB / 497.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005642/0.1081, allocations: 299.5 kB / 497.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009371/0.1091, allocations: 1.169 MB / 498.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006112/0.1097, allocations: 0.5515 MB / 499.5 MB, free: 9.742 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004408/0.1101, allocations: 466.8 kB / 499.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005602/0.1107, allocations: 0.5099 MB / 0.4887 GB, free: 8.773 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001192/0.1108, allocations: 108 kB / 0.4888 GB, free: 8.668 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.111, allocations: 108 kB / 0.4889 GB, free: 8.562 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.1112, allocations: 227.4 kB / 0.4891 GB, free: 8.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004026/0.1116, allocations: 493.9 kB / 0.4896 GB, free: 7.855 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009482/0.1125, allocations: 1.111 MB / 0.4907 GB, free: 6.742 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1125, allocations: 0 / 0.4907 GB, free: 6.742 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1125, allocations: 0 / 0.4907 GB, free: 6.742 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.1126, allocations: 0 / 0.4907 GB, free: 6.742 MB / 366.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.002432/0.115, allocations: 1.073 MB / 0.4917 GB, free: 5.621 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.1151, allocations: 8.031 kB / 0.4917 GB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001676/0.1152, allocations: 135.7 kB / 0.4919 GB, free: 5.473 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.1154, allocations: 87.94 kB / 0.4919 GB, free: 5.387 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003001/0.1157, allocations: 249 kB / 0.4922 GB, free: 5.105 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.777e-05/0.1158, allocations: 69.94 kB / 0.4922 GB, free: 5.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.1159, allocations: 84 kB / 0.4923 GB, free: 4.953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.1173, allocations: 0.8116 MB / 0.4931 GB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.1173, allocations: 0 / 0.4931 GB, free: 4.133 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.425e-05/0.1174, allocations: 36 kB / 0.4932 GB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.84e-05/0.1174, allocations: 20 kB / 0.4932 GB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.1187, allocations: 0.8315 MB / 0.494 GB, free: 3.25 MB / 366.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.004335/0.1231, allocations: 2.601 MB / 0.4965 GB, free: 0.5117 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002117/0.1252, allocations: 0.9955 MB / 0.4975 GB, free: 15.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006443/0.1259, allocations: 419.7 kB / 0.4979 GB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.088e-05/0.126, allocations: 20.98 kB / 0.4979 GB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.126, allocations: 51.5 kB / 0.498 GB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004762/0.1265, allocations: 119.2 kB / 0.4981 GB, free: 14.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.136e-06/0.1265, allocations: 0 / 0.4981 GB, free: 14.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.007935/0.1345, allocations: 3.539 MB / 0.5015 GB, free: 11.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.133e-05/0.1345, allocations: 64.41 kB / 0.5016 GB, free: 11.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002145/0.1347, allocations: 215.9 kB / 0.5018 GB, free: 10.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.423e-05/0.1348, allocations: 49.7 kB / 0.5019 GB, free: 10.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.135, allocations: 237.1 kB / 0.5021 GB, free: 10.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003337/0.1353, allocations: 413.9 kB / 0.5025 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000273/0.1356, allocations: 182.8 kB / 0.5026 GB, free: 10.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1357, allocations: 362.8 kB / 0.503 GB, free: 9.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006031/0.1363, allocations: 362.5 kB / 0.5033 GB, free: 9.348 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000667/0.137, allocations: 454.5 kB / 0.5038 GB, free: 8.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01786/0.1549, allocations: 3.485 MB / 0.5072 GB, free: 5.383 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.1549, allocations: 4 kB / 0.5072 GB, free: 5.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002484/0.1574, allocations: 1.206 MB / 0.5084 GB, free: 4.152 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.1575, allocations: 7.938 kB / 0.5084 GB, free: 4.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.1575, allocations: 4 kB / 0.5084 GB, free: 4.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009759/0.1585, allocations: 219.1 kB / 0.5086 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005996/0.1645, allocations: 0.8116 MB / 0.5094 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01176/0.1763, allocations: 14.93 MB / 0.5239 GB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009483/0.1773, allocations: 31.98 kB / 0.524 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.769e-05/0.1774, allocations: 40.14 kB / 0.524 GB, free: 2.68 MB / 398.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.0005436/0.1779, allocations: 236.3 kB / 0.5242 GB, free: 2.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.1781, allocations: 55.34 kB / 0.5243 GB, free: 2.391 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003166/0.1812, allocations: 1.488 MB / 0.5258 GB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.1813, allocations: 12 kB / 0.5258 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.1813, allocations: 0 / 0.5258 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.215e-05/0.1813, allocations: 7.984 kB / 0.5258 GB, free: 0.8555 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004576/0.1859, allocations: 2.583 MB / 0.5283 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.1859, allocations: 4 kB / 0.5283 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005413/0.1914, allocations: 0.757 MB / 0.529 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/0.1933, allocations: 378.8 kB / 0.5294 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001409/0.1935, allocations: 31.98 kB / 0.5294 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01216/0.2056, allocations: 15.19 MB / 0.5443 GB, free: 12.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.2057, allocations: 11.94 kB / 0.5443 GB, free: 12.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003773/0.2095, allocations: 2.059 MB / 0.5463 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.2096, allocations: 132.4 kB / 0.5464 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.483e-05/0.2097, allocations: 36 kB / 0.5464 GB, free: 9.98 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006406/0.2104, allocations: 31.98 kB / 0.5465 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002593/0.2107, allocations: 116.9 kB / 0.5466 GB, free: 9.836 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.281e-05/0.2107, allocations: 51.98 kB / 0.5466 GB, free: 9.785 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000163/0.2109, allocations: 168.1 kB / 0.5468 GB, free: 9.621 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2109, allocations: 0 / 0.5468 GB, free: 9.621 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001021/0.2119, allocations: 256 kB / 0.547 GB, free: 9.371 MB / 430.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.003857/0.2158, allocations: 2.656 MB / 0.5496 GB, free: 6.598 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007186/0.223, allocations: 2.045 MB / 0.5516 GB, free: 4.496 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/0.2231, allocations: 4 kB / 0.5516 GB, free: 4.492 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006048/0.2291, allocations: 1.622 MB / 0.5532 GB, free: 2.816 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/0.2303, allocations: 205.6 kB / 0.5534 GB, free: 2.613 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01074/0.2411, allocations: 6.597 MB / 0.5599 GB, free: 11.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005356/0.2416, allocations: 0.9454 MB / 0.5608 GB, free: 10.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005877/0.2422, allocations: 117.5 kB / 0.5609 GB, free: 10.63 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004283/0.2427, allocations: 259.3 kB / 0.5611 GB, free: 10.38 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2427, allocations: 0 / 0.5611 GB, free: 10.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04885/0.2915, allocations: 19.48 MB / 0.5802 GB, free: 7.133 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.61, allocations: 3.781 kB / 0.5802 GB, free: 7.129 MB / 462.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)