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.001213/0.001213, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001239/0.00124, allocations: 190.4 kB / 16.25 MB, free: 6.645 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.197/1.197, allocations: 222.9 MB / 239.9 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1865/0.1865, allocations: 22.35 MB / 312.4 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 55.91 kB / 380.4 MB, free: 10.8 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2275, allocations: 54.94 MB / 435.4 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.003685/0.2313, allocations: 4.258 MB / 439.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.2329, allocations: 1.332 MB / 440.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000277/0.2332, allocations: 9.562 kB / 441 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.2334, allocations: 59.94 kB / 441 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000425/0.2339, allocations: 213.5 kB / 441.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000472/0.2343, allocations: 266.9 kB / 441.5 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000819/0.2352, allocations: 1.163 MB / 442.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004697/0.2356, allocations: 0.5459 MB / 443.2 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003158/0.236, allocations: 460.7 kB / 443.6 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003681/0.2363, allocations: 0.5092 MB / 444.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.229e-05/0.2364, allocations: 110.2 kB / 444.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.2366, allocations: 107.3 kB / 444.4 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.2367, allocations: 235.1 kB / 444.6 MB, free: 33.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002522/0.2369, allocations: 477.8 kB / 445.1 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000523/0.2375, allocations: 1.097 MB / 446.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2375, allocations: 0 / 446.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2375, allocations: 0 / 446.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.2375, allocations: 3.938 kB / 446.2 MB, free: 33.08 MB / 350.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.001922/0.2394, allocations: 1.071 MB / 447.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.2395, allocations: 15.5 kB / 447.2 MB, free: 32.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.2396, allocations: 136.2 kB / 447.4 MB, free: 32.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.2397, allocations: 80.53 kB / 447.5 MB, free: 32.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001324/0.2398, allocations: 254.7 kB / 447.7 MB, free: 32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/0.2399, allocations: 74.53 kB / 447.8 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.24, allocations: 85.41 kB / 447.9 MB, free: 31.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.2411, allocations: 0.8032 MB / 448.7 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.2411, allocations: 3.984 kB / 448.7 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/0.2412, allocations: 39.78 kB / 448.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.2412, allocations: 24.78 kB / 448.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.2423, allocations: 0.8259 MB / 449.6 MB, free: 31.29 MB / 350.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.003065/0.2453, allocations: 2.593 MB / 452.1 MB, free: 29.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001654/0.247, allocations: 0.9977 MB / 453.1 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004823/0.2475, allocations: 419.5 kB / 453.6 MB, free: 29.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-05/0.2476, allocations: 14.23 kB / 453.6 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.565e-05/0.2476, allocations: 45.88 kB / 453.6 MB, free: 29.09 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004167/0.248, allocations: 132.1 kB / 453.7 MB, free: 29.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.104e-06/0.248, allocations: 0 / 453.7 MB, free: 29.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007179/0.2552, allocations: 3.531 MB / 457.3 MB, free: 27.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.385e-05/0.2552, allocations: 63.91 kB / 457.3 MB, free: 27.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.2554, allocations: 224.7 kB / 457.6 MB, free: 27.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.096e-05/0.2554, allocations: 45.36 kB / 457.6 MB, free: 26.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.405e-05/0.2555, allocations: 235.7 kB / 457.8 MB, free: 26.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001781/0.2557, allocations: 423.9 kB / 458.2 MB, free: 26.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.2559, allocations: 174.4 kB / 458.4 MB, free: 26.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.526e-05/0.256, allocations: 362.9 kB / 458.8 MB, free: 26.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005206/0.2565, allocations: 357.2 kB / 459.1 MB, free: 25.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005615/0.2571, allocations: 459.4 kB / 459.6 MB, free: 25.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01703/0.2741, allocations: 3.492 MB / 463.1 MB, free: 24.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2742, allocations: 5.219 kB / 463.1 MB, free: 24.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00221/0.2764, allocations: 1.205 MB / 464.3 MB, free: 24.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.548e-05/0.2764, allocations: 6.672 kB / 464.3 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2764, allocations: 5.281 kB / 464.3 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009616/0.2774, allocations: 219.1 kB / 464.5 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005838/0.2832, allocations: 0.8092 MB / 465.3 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007817/0.2911, allocations: 14.93 MB / 480.2 MB, free: 9.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006692/0.2917, allocations: 54.52 kB / 480.3 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.388e-05/0.2918, allocations: 40.47 kB / 480.3 MB, free: 9.062 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: U1.T:VARIABLE(min = max(0.0, 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 = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))))))))))) start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real V.T:VARIABLE(min = max(0.0, max(0.0, 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.000422/0.2922, allocations: 271.4 kB / 480.6 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.2924, allocations: 57.72 kB / 480.6 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002923/0.2953, allocations: 1.48 MB / 482.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.2953, allocations: 18.17 kB / 482.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2953, allocations: 2.156 kB / 482.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.2954, allocations: 6.75 kB / 482.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003768/0.2991, allocations: 2.578 MB / 484.7 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.2992, allocations: 5.844 kB / 484.7 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005266/0.3044, allocations: 0.7684 MB / 485.5 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001904/0.3063, allocations: 372.1 kB / 485.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.044e-05/0.3064, allocations: 33.66 kB / 485.9 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01033/0.3168, allocations: 15.18 MB / 0.4893 GB, free: 7.398 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-06/0.3168, allocations: 11.06 kB / 0.4893 GB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00361/0.3204, allocations: 2.061 MB / 0.4914 GB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.3205, allocations: 142.1 kB / 0.4915 GB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.3206, allocations: 34.97 kB / 0.4915 GB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006918/0.3213, allocations: 53.98 kB / 0.4916 GB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002469/0.3216, allocations: 126.8 kB / 0.4917 GB, free: 6.004 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.661e-05/0.3217, allocations: 38.44 kB / 0.4917 GB, free: 5.969 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001471/0.3218, allocations: 170.6 kB / 0.4919 GB, free: 5.816 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3218, allocations: 0 / 0.4919 GB, free: 5.816 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009835/0.3228, allocations: 264.5 kB / 0.4922 GB, free: 5.559 MB / 366.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.003894/0.3267, allocations: 2.649 MB / 0.4947 GB, free: 2.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007541/0.3343, allocations: 2.095 MB / 0.4968 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.3343, allocations: 8.062 kB / 0.4968 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005863/0.3402, allocations: 1.618 MB / 0.4984 GB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009405/0.3411, allocations: 197.9 kB / 0.4986 GB, free: 14.99 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.3512, allocations: 7.044 MB / 0.5054 GB, free: 7.652 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/0.3516, allocations: 0.9338 MB / 0.5064 GB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006736/0.3523, allocations: 113.5 kB / 0.5065 GB, free: 6.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/0.3527, allocations: 267.3 kB / 0.5067 GB, free: 6.309 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3527, allocations: 0 / 0.5067 GB, free: 6.309 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.491/1.844, allocations: 19.03 MB / 0.5253 GB, free: 3.578 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001914/1.844, allocations: 233.3 kB / 0.5255 GB, free: 3.328 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.725/4.569, allocations: 0 / 0.5255 GB, free: 3.328 MB / 398.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)