Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001",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.001066/0.001066, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.316/1.316, allocations: 222.9 MB / 240.2 MB, free: 4.207 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1917/0.1917, allocations: 22.36 MB / 312.8 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 59.91 kB / 380.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2367, allocations: 54.93 MB / 435.9 MB, free: 39.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.003715/0.2405, allocations: 4.023 MB / 439.9 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.2419, allocations: 1.284 MB / 441.2 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001485/0.2421, allocations: 7 kB / 441.2 MB, free: 35.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.2422, allocations: 80.69 kB / 441.3 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003123/0.2425, allocations: 220.2 kB / 441.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.2429, allocations: 292.3 kB / 441.8 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005661/0.2435, allocations: 1.082 MB / 442.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003783/0.2439, allocations: 448 kB / 443.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002774/0.2442, allocations: 397.8 kB / 443.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003589/0.2446, allocations: 420.7 kB / 444.1 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.2447, allocations: 91.03 kB / 444.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.2448, allocations: 94.28 kB / 444.3 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.2449, allocations: 195.6 kB / 444.5 MB, free: 34.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000275/0.2452, allocations: 425.9 kB / 444.9 MB, free: 33.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005134/0.2457, allocations: 0.9517 MB / 445.8 MB, free: 33.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2457, allocations: 4 kB / 445.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2457, allocations: 3.938 kB / 445.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.2458, allocations: 0 / 445.8 MB, free: 33.59 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.001746/0.2475, allocations: 0.9845 MB / 446.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.2475, allocations: 8.188 kB / 446.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.2477, allocations: 129.8 kB / 447 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.2478, allocations: 71.78 kB / 447 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001316/0.2479, allocations: 243.6 kB / 447.3 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.935e-05/0.248, allocations: 65.16 kB / 447.3 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.579e-05/0.2481, allocations: 87.34 kB / 447.4 MB, free: 32.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009701/0.249, allocations: 0.6945 MB / 448.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.2491, allocations: 0 / 448.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.543e-05/0.2491, allocations: 34.56 kB / 448.1 MB, free: 32.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.275e-05/0.2491, allocations: 18.59 kB / 448.2 MB, free: 32.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009958/0.2502, allocations: 0.6955 MB / 448.9 MB, free: 31.94 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: AHU.T(start = AHU.Tstart = 293.15, confidence number = 2) * Candidate: AHU.air.T(start = 288.15, confidence number = 8) => Select value from AHU.T(start = AHU.Tstart = 293.15) for variable: AHU.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002768/0.2529, allocations: 2.311 MB / 451.2 MB, free: 30.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009291/0.2539, allocations: 0.6813 MB / 451.9 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004362/0.2543, allocations: 334.5 kB / 452.2 MB, free: 30.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.514e-05/0.2544, allocations: 19.48 kB / 452.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.2544, allocations: 42.44 kB / 452.2 MB, free: 29.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.204e-06/0.2544, allocations: 0 / 452.2 MB, free: 29.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006707/0.2611, allocations: 3.094 MB / 455.3 MB, free: 28.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.618e-05/0.2612, allocations: 64.28 kB / 455.4 MB, free: 28.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.2613, allocations: 211.4 kB / 455.6 MB, free: 28.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.037e-05/0.2614, allocations: 45.05 kB / 455.6 MB, free: 28.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.801e-05/0.2615, allocations: 228 kB / 455.9 MB, free: 27.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.2617, allocations: 390.2 kB / 456.3 MB, free: 27.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002149/0.2619, allocations: 147.9 kB / 456.4 MB, free: 27.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.34e-05/0.2619, allocations: 356.9 kB / 456.7 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004881/0.2624, allocations: 297.4 kB / 457 MB, free: 27.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005139/0.263, allocations: 394 kB / 457.4 MB, free: 26.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01095/0.2739, allocations: 2.251 MB / 459.7 MB, free: 26.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2739, allocations: 1.312 kB / 459.7 MB, free: 26.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002124/0.2761, allocations: 1.039 MB / 460.7 MB, free: 25.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.2761, allocations: 6.812 kB / 460.7 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.2761, allocations: 0 / 460.7 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009929/0.2771, allocations: 213.4 kB / 460.9 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005771/0.2829, allocations: 0.7522 MB / 461.7 MB, free: 25.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008869/0.2918, allocations: 14.94 MB / 476.6 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006378/0.2924, allocations: 24.77 kB / 476.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.14e-05/0.2925, allocations: 29.41 kB / 476.7 MB, free: 10.54 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: AHU.T:VARIABLE(min = 0.0 start = AHU.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) type: Real V.p:VARIABLE(min = 0.0 start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 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 (112): * Single equations (assignments): 102 * 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,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003607/0.2929, allocations: 228.6 kB / 476.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.786e-05/0.293, allocations: 47.69 kB / 476.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002559/0.2955, allocations: 1.26 MB / 478.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.2956, allocations: 10.62 kB / 478.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.2956, allocations: 2.5 kB / 478.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.011e-05/0.2956, allocations: 5.766 kB / 478.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003785/0.2994, allocations: 2.38 MB / 480.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.2994, allocations: 11.36 kB / 480.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005342/0.3048, allocations: 0.7067 MB / 481.3 MB, free: 8.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002016/0.3068, allocations: 364.4 kB / 481.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.114e-05/0.3069, allocations: 32.2 kB / 481.7 MB, free: 8.211 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.3172, allocations: 15.12 MB / 496.8 MB, free: 9.074 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.276e-05/0.3173, allocations: 11.81 kB / 496.8 MB, free: 9.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.321, allocations: 1.814 MB / 498.7 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.3211, allocations: 132.3 kB / 498.8 MB, free: 7.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.3212, allocations: 32.55 kB / 498.8 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006024/0.3218, allocations: 32.78 kB / 498.8 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002825/0.3221, allocations: 116 kB / 499 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.033e-05/0.3222, allocations: 43.2 kB / 499 MB, free: 7.809 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001858/0.3224, allocations: 152.8 kB / 499.2 MB, free: 7.711 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3224, allocations: 3.938 kB / 499.2 MB, free: 7.707 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001104/0.3235, allocations: 236.3 kB / 499.4 MB, free: 7.668 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 5 (AHU.T,AHU.phi,V.Mv,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 (102): * Single equations (assignments): 92 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003727/0.3272, allocations: 2.391 MB / 0.49 GB, free: 6.051 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007709/0.335, allocations: 1.923 MB / 0.4919 GB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.335, allocations: 1.312 kB / 0.4919 GB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00616/0.3411, allocations: 1.529 MB / 0.4934 GB, free: 3.961 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.3422, allocations: 174.9 kB / 0.4936 GB, free: 3.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009473/0.3517, allocations: 6.096 MB / 0.4995 GB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000477/0.3522, allocations: 0.9091 MB / 0.5004 GB, free: 13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006112/0.3528, allocations: 89.44 kB / 0.5005 GB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003428/0.3532, allocations: 218.4 kB / 0.5007 GB, free: 12.73 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3532, allocations: 0 / 0.5007 GB, free: 12.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04174/0.3949, allocations: 16.63 MB / 0.5169 GB, free: 12.42 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/14.81, allocations: 9.719 kB / 0.5169 GB, free: 12.41 MB / 398.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_AHU_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1)