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.001138/0.001138, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001148/0.001148, allocations: 194.5 kB / 16.14 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.179/1.179, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1741/0.1741, allocations: 22.36 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 63.91 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2/0.2011, allocations: 54.95 MB / 435.2 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.003246/0.2044, allocations: 4.251 MB / 439.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.2056, allocations: 1.337 MB / 440.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2057, allocations: 2.875 kB / 440.8 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001098/0.2058, allocations: 66.91 kB / 440.8 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002792/0.2061, allocations: 209.5 kB / 441 MB, free: 35.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003275/0.2064, allocations: 269.8 kB / 441.3 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004939/0.2069, allocations: 1.093 MB / 442.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003571/0.2073, allocations: 484.2 kB / 442.9 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002652/0.2076, allocations: 404.5 kB / 443.3 MB, free: 34.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003319/0.2079, allocations: 494.2 kB / 443.7 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.405e-05/0.208, allocations: 57.5 kB / 443.8 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001184/0.2081, allocations: 57.59 kB / 443.9 MB, free: 34.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.738e-05/0.2082, allocations: 176.8 kB / 444 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002528/0.2085, allocations: 431.8 kB / 444.5 MB, free: 33.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004798/0.209, allocations: 1.058 MB / 445.5 MB, free: 33.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.209, allocations: 0 / 445.5 MB, free: 33.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.22e-07/0.209, allocations: 0 / 445.5 MB, free: 33.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.209, allocations: 0 / 445.5 MB, free: 33.3 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.001854/0.2109, allocations: 1.074 MB / 446.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.818e-05/0.2109, allocations: 16.53 kB / 446.6 MB, free: 32.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.211, allocations: 141.2 kB / 446.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.2111, allocations: 80.81 kB / 446.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000119/0.2113, allocations: 256.1 kB / 447.1 MB, free: 32.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.176e-05/0.2113, allocations: 68.97 kB / 447.1 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.376e-05/0.2114, allocations: 87.28 kB / 447.2 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001034/0.2124, allocations: 0.8025 MB / 448 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.2125, allocations: 2.719 kB / 448 MB, free: 31.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.023e-05/0.2125, allocations: 37.09 kB / 448.1 MB, free: 31.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.2126, allocations: 21.25 kB / 448.1 MB, free: 31.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.2136, allocations: 0.8267 MB / 448.9 MB, free: 31.51 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.002978/0.2166, allocations: 2.601 MB / 451.5 MB, free: 29.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.2182, allocations: 0.9944 MB / 452.5 MB, free: 29.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004893/0.2187, allocations: 420.7 kB / 452.9 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.152e-05/0.2188, allocations: 16.55 kB / 452.9 MB, free: 29.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.619e-05/0.2188, allocations: 45.31 kB / 453 MB, free: 29.31 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0003943/0.2192, allocations: 120 kB / 453.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.094e-06/0.2192, allocations: 2.438 kB / 453.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.00689/0.2261, allocations: 3.521 MB / 456.6 MB, free: 27.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.333e-05/0.2262, allocations: 68.66 kB / 456.7 MB, free: 27.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.2263, allocations: 222.4 kB / 456.9 MB, free: 27.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/0.2264, allocations: 49.64 kB / 457 MB, free: 27.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.018e-05/0.2265, allocations: 241.2 kB / 457.2 MB, free: 27.01 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.2267, allocations: 426.3 kB / 457.6 MB, free: 26.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002279/0.2269, allocations: 174 kB / 457.8 MB, free: 26.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.35e-05/0.2269, allocations: 359.9 kB / 458.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005184/0.2275, allocations: 359.6 kB / 458.5 MB, free: 26.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005668/0.228, allocations: 458.4 kB / 458.9 MB, free: 25.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01719/0.2452, allocations: 3.484 MB / 462.4 MB, free: 25.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2453, allocations: 0 / 462.4 MB, free: 25.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002185/0.2474, allocations: 1.205 MB / 463.6 MB, free: 24.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.2475, allocations: 6.188 kB / 463.6 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2475, allocations: 1.344 kB / 463.6 MB, free: 24.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009437/0.2484, allocations: 224.5 kB / 463.8 MB, free: 24.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00593/0.2544, allocations: 0.8095 MB / 464.6 MB, free: 24.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007423/0.2618, allocations: 13.88 MB / 478.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006673/0.2625, allocations: 54.59 kB / 478.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.156e-05/0.2626, allocations: 39.7 kB / 478.6 MB, free: 10.34 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.0003531/0.2629, allocations: 263.2 kB / 478.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001057/0.263, allocations: 58.2 kB / 478.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00293/0.266, allocations: 1.48 MB / 480.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.397e-06/0.266, allocations: 13.59 kB / 480.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.266, allocations: 1.375 kB / 480.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.266, allocations: 8.125 kB / 480.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00371/0.2697, allocations: 2.582 MB / 483 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.2698, allocations: 6.172 kB / 483 MB, free: 8.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005267/0.275, allocations: 0.7632 MB / 483.8 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001832/0.2769, allocations: 365.2 kB / 484.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-05/0.277, allocations: 36.34 kB / 484.2 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008983/0.286, allocations: 14.09 MB / 498.3 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/0.286, allocations: 10.88 kB / 498.3 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00342/0.2894, allocations: 2.064 MB / 0.4886 GB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.2895, allocations: 135 kB / 0.4887 GB, free: 8.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.2896, allocations: 30.38 kB / 0.4888 GB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000674/0.2903, allocations: 54.69 kB / 0.4888 GB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002189/0.2905, allocations: 118.1 kB / 0.4889 GB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-05/0.2906, allocations: 41.56 kB / 0.489 GB, free: 8.402 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001468/0.2908, allocations: 174.9 kB / 0.4891 GB, free: 8.289 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2908, allocations: 0 / 0.4891 GB, free: 8.289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000975/0.2918, allocations: 265.9 kB / 0.4894 GB, free: 8.25 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.003721/0.2955, allocations: 2.643 MB / 0.492 GB, free: 5.832 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006931/0.3024, allocations: 2.042 MB / 0.494 GB, free: 3.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3024, allocations: 4 kB / 0.494 GB, free: 3.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005868/0.3083, allocations: 1.626 MB / 0.4956 GB, free: 2.164 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009187/0.3092, allocations: 191.6 kB / 0.4957 GB, free: 1.973 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009437/0.3187, allocations: 7.054 MB / 0.5026 GB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004162/0.3191, allocations: 0.9338 MB / 0.5036 GB, free: 9.676 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006674/0.3198, allocations: 113.5 kB / 0.5037 GB, free: 9.562 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/0.3202, allocations: 259.3 kB / 0.5039 GB, free: 9.309 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3202, allocations: 4 kB / 0.5039 GB, free: 9.305 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02977/0.35, allocations: 18.34 MB / 0.5218 GB, free: 7.238 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002139/0.3502, allocations: 237 kB / 0.522 GB, free: 6.984 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.16/2.51, allocations: 2.531 kB / 0.5221 GB, free: 6.984 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)