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.001477/0.001477, allocations: 108 kB / 15.61 MB, free: 152 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.0018/0.0018, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1867/0.1867, allocations: 22.36 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 59.91 kB / 381 MB, free: 10.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2402/0.2415, allocations: 54.94 MB / 435.9 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004125/0.2457, allocations: 4.222 MB / 440.1 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001547/0.2473, allocations: 1.342 MB / 441.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.2474, allocations: 3.156 kB / 441.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.2476, allocations: 94.52 kB / 441.6 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003347/0.2479, allocations: 232 kB / 441.8 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004037/0.2483, allocations: 308.5 kB / 442.1 MB, free: 35.3 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006244/0.249, allocations: 1.161 MB / 443.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004965/0.2495, allocations: 0.5565 MB / 443.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003239/0.2498, allocations: 464.8 kB / 444.3 MB, free: 34.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004315/0.2502, allocations: 0.5092 MB / 444.8 MB, free: 34.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.2504, allocations: 110.4 kB / 444.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001453/0.2505, allocations: 110.2 kB / 445 MB, free: 34.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.2506, allocations: 231.2 kB / 445.2 MB, free: 33.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002925/0.2509, allocations: 475.5 kB / 445.7 MB, free: 33.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006098/0.2516, allocations: 1.094 MB / 446.8 MB, free: 33.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2516, allocations: 0 / 446.8 MB, free: 33.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2516, allocations: 0 / 446.8 MB, free: 33.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.2516, allocations: 0 / 446.8 MB, free: 33.17 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.00205/0.2537, allocations: 1.08 MB / 447.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.2537, allocations: 10.19 kB / 447.9 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.2538, allocations: 136.5 kB / 448 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.254, allocations: 83.59 kB / 448.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.2541, allocations: 257.9 kB / 448.3 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.2542, allocations: 70.69 kB / 448.4 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.2543, allocations: 83.62 kB / 448.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.2554, allocations: 0.8087 MB / 449.3 MB, free: 31.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.2554, allocations: 4 kB / 449.3 MB, free: 31.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.557e-05/0.2555, allocations: 34.94 kB / 449.3 MB, free: 31.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.2555, allocations: 26.22 kB / 449.3 MB, free: 31.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.2567, allocations: 0.8257 MB / 450.2 MB, free: 31.37 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.003405/0.2601, allocations: 2.618 MB / 452.8 MB, free: 29.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001761/0.2618, allocations: 0.9998 MB / 453.8 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005476/0.2624, allocations: 419.9 kB / 454.2 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.598e-05/0.2625, allocations: 24.73 kB / 454.2 MB, free: 29.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.2625, allocations: 45.25 kB / 454.3 MB, free: 29.15 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004452/0.263, allocations: 122.5 kB / 454.4 MB, free: 29.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.445e-06/0.263, allocations: 4 kB / 454.4 MB, free: 29.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.00775/0.2707, allocations: 3.535 MB / 457.9 MB, free: 27.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.004e-05/0.2708, allocations: 64.44 kB / 458 MB, free: 27.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.271, allocations: 222.7 kB / 458.2 MB, free: 27.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.213e-05/0.271, allocations: 49.92 kB / 458.3 MB, free: 27.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.955e-05/0.2711, allocations: 232.4 kB / 458.5 MB, free: 26.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000204/0.2714, allocations: 422.4 kB / 458.9 MB, free: 26.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002657/0.2716, allocations: 175.7 kB / 459.1 MB, free: 26.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.939e-05/0.2717, allocations: 364.5 kB / 459.4 MB, free: 26.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005822/0.2723, allocations: 357.5 kB / 459.8 MB, free: 25.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006525/0.273, allocations: 458.3 kB / 460.2 MB, free: 25.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01865/0.2916, allocations: 3.483 MB / 463.7 MB, free: 24.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.2916, allocations: 1.156 kB / 463.7 MB, free: 24.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002444/0.2941, allocations: 1.207 MB / 464.9 MB, free: 24.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.2941, allocations: 6.812 kB / 464.9 MB, free: 24.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.2941, allocations: 1.375 kB / 464.9 MB, free: 24.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009821/0.2951, allocations: 216 kB / 465.1 MB, free: 24.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006016/0.3012, allocations: 0.813 MB / 465.9 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00855/0.3097, allocations: 14.95 MB / 480.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007872/0.3105, allocations: 28.98 kB / 480.9 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.451e-05/0.3106, allocations: 39.64 kB / 481 MB, free: 9.137 MB / 350.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 = 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 (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.000428/0.3111, allocations: 236 kB / 481.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001343/0.3112, allocations: 50.56 kB / 481.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003254/0.3145, allocations: 1.485 MB / 482.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.3145, allocations: 12.81 kB / 482.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/0.3145, allocations: 3.203 kB / 482.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.975e-05/0.3145, allocations: 6.328 kB / 482.7 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004339/0.3189, allocations: 2.577 MB / 485.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.3189, allocations: 6.031 kB / 485.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005523/0.3244, allocations: 0.7604 MB / 486.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001991/0.3264, allocations: 365.2 kB / 486.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/0.3266, allocations: 36.86 kB / 486.5 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0109/0.3375, allocations: 15.19 MB / 0.4899 GB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.3375, allocations: 14.47 kB / 0.4899 GB, free: 7.484 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004312/0.3418, allocations: 2.059 MB / 0.4919 GB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002067/0.3421, allocations: 139.3 kB / 0.4921 GB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001568/0.3422, allocations: 33.83 kB / 0.4921 GB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007604/0.343, allocations: 34.25 kB / 0.4921 GB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003587/0.3434, allocations: 126.3 kB / 0.4922 GB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001152/0.3435, allocations: 42.81 kB / 0.4923 GB, free: 5.785 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000217/0.3437, allocations: 163 kB / 0.4924 GB, free: 5.641 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3437, allocations: 0 / 0.4924 GB, free: 5.641 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001233/0.345, allocations: 264 kB / 0.4927 GB, free: 5.383 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.004203/0.3492, allocations: 2.633 MB / 0.4953 GB, free: 2.801 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008239/0.3574, allocations: 2.11 MB / 0.4973 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.3574, allocations: 0 / 0.4973 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006231/0.3637, allocations: 1.618 MB / 0.4989 GB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.3649, allocations: 197.9 kB / 0.4991 GB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.3759, allocations: 6.719 MB / 0.5057 GB, free: 7.809 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005737/0.3765, allocations: 0.9299 MB / 0.5066 GB, free: 6.844 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007951/0.3773, allocations: 113.5 kB / 0.5067 GB, free: 6.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004309/0.3778, allocations: 259.3 kB / 0.5069 GB, free: 6.477 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3778, allocations: 0 / 0.5069 GB, free: 6.477 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04799/0.4258, allocations: 19.17 MB / 0.5256 GB, free: 3.562 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.65, allocations: 26.67 kB / 0.5257 GB, free: 3.539 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)