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: translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001") translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 108 kB / 15.6 MB, free: 132 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.001354/0.001354, allocations: 196 kB / 16.54 MB, free: 6.672 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.401/1.401, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2494/0.2494, allocations: 22.35 MB / 312.7 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 59.91 kB / 380.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3824/0.3841, allocations: 54.95 MB / 435.8 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.00414/0.3883, allocations: 4.026 MB / 439.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001429/0.3897, allocations: 1.291 MB / 441.1 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001417/0.3899, allocations: 9.375 kB / 441.1 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001188/0.39, allocations: 76.52 kB / 441.2 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003125/0.3903, allocations: 221.8 kB / 441.4 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003991/0.3907, allocations: 286.4 kB / 441.7 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005856/0.3913, allocations: 1.087 MB / 442.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004154/0.3918, allocations: 439.4 kB / 443.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002839/0.3921, allocations: 402.5 kB / 443.6 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003465/0.3924, allocations: 415.6 kB / 444 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.914e-05/0.3925, allocations: 98.44 kB / 444.1 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.3926, allocations: 94.5 kB / 444.2 MB, free: 34.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.3928, allocations: 195.7 kB / 444.3 MB, free: 34.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002682/0.393, allocations: 423.1 kB / 444.8 MB, free: 33.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005377/0.3936, allocations: 0.9499 MB / 445.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.3936, allocations: 4 kB / 445.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3936, allocations: 0 / 445.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.3936, allocations: 0 / 445.7 MB, free: 33.51 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.001693/0.3953, allocations: 0.9863 MB / 446.7 MB, free: 32.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3954, allocations: 11.41 kB / 446.7 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.3955, allocations: 70.12 kB / 446.8 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.3956, allocations: 247.3 kB / 447 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.98e-05/0.3957, allocations: 65.94 kB / 447.1 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.3958, allocations: 84.03 kB / 447.2 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009438/0.3967, allocations: 0.6897 MB / 447.9 MB, free: 32.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.3968, allocations: 3.984 kB / 447.9 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.456e-05/0.3968, allocations: 36.34 kB / 447.9 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.3969, allocations: 18.75 kB / 447.9 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009826/0.3978, allocations: 0.6963 MB / 448.6 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.00286/0.4007, allocations: 2.315 MB / 450.9 MB, free: 30.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009341/0.4017, allocations: 0.673 MB / 451.6 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004253/0.4021, allocations: 339 kB / 451.9 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.496e-05/0.4022, allocations: 13.83 kB / 451.9 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.153e-05/0.4022, allocations: 39.09 kB / 452 MB, free: 29.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.264e-06/0.4022, allocations: 3.938 kB / 452 MB, free: 29.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006468/0.4087, allocations: 3.096 MB / 455.1 MB, free: 28.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.733e-05/0.4087, allocations: 62.44 kB / 455.1 MB, free: 28.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.4089, allocations: 212.5 kB / 455.4 MB, free: 28.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/0.409, allocations: 45.14 kB / 455.4 MB, free: 28.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.633e-05/0.4091, allocations: 227.6 kB / 455.6 MB, free: 27.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.4093, allocations: 382.2 kB / 456 MB, free: 27.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000231/0.4095, allocations: 146.7 kB / 456.1 MB, free: 27.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.991e-05/0.4096, allocations: 358 kB / 456.5 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004934/0.4101, allocations: 294.6 kB / 456.8 MB, free: 27.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005627/0.4107, allocations: 395.8 kB / 457.2 MB, free: 26.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01011/0.4208, allocations: 2.254 MB / 459.4 MB, free: 26.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4208, allocations: 0 / 459.4 MB, free: 26.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001978/0.4228, allocations: 1.043 MB / 460.5 MB, free: 25.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.4228, allocations: 4.812 kB / 460.5 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.4228, allocations: 1.125 kB / 460.5 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009084/0.4237, allocations: 212.2 kB / 460.7 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005368/0.4291, allocations: 0.7493 MB / 461.4 MB, free: 25.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009027/0.4382, allocations: 14.95 MB / 476.4 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008503/0.4391, allocations: 28.06 kB / 476.4 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001832/0.4393, allocations: 26.14 kB / 476.4 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.0006769/0.44, allocations: 223.8 kB / 476.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001658/0.4401, allocations: 47.91 kB / 476.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002785/0.4429, allocations: 1.258 MB / 477.9 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.443, allocations: 10.16 kB / 478 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.443, allocations: 2.281 kB / 478 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.443, allocations: 12.45 kB / 478 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004042/0.447, allocations: 2.378 MB / 480.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/0.4471, allocations: 11.52 kB / 480.4 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005245/0.4523, allocations: 0.7068 MB / 481.1 MB, free: 8.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002223/0.4546, allocations: 351.4 kB / 481.4 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001183/0.4547, allocations: 36.28 kB / 481.4 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/0.4671, allocations: 15.12 MB / 496.6 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.4671, allocations: 7.938 kB / 496.6 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005789/0.4729, allocations: 1.819 MB / 498.4 MB, free: 8.027 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002657/0.4732, allocations: 132.7 kB / 498.5 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000179/0.4734, allocations: 30.83 kB / 498.6 MB, free: 7.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009444/0.4744, allocations: 32.48 kB / 498.6 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003995/0.4748, allocations: 117.1 kB / 498.7 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.4749, allocations: 42.25 kB / 498.7 MB, free: 7.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002402/0.4752, allocations: 153.7 kB / 498.9 MB, free: 7.723 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4752, allocations: 0.9688 kB / 498.9 MB, free: 7.723 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001722/0.4769, allocations: 236.7 kB / 499.1 MB, free: 7.684 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.0003493/0.4773, allocations: 142.2 kB / 499.3 MB, free: 7.559 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008156/0.4855, allocations: 1.923 MB / 0.4894 GB, free: 6.719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/0.4855, allocations: 1.125 kB / 0.4894 GB, free: 6.719 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006036/0.4915, allocations: 1.531 MB / 0.4909 GB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.4928, allocations: 179.2 kB / 0.4911 GB, free: 5.949 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003521/0.4963, allocations: 1.767 MB / 0.4928 GB, free: 4.344 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007155/0.4971, allocations: 0.9091 MB / 0.4937 GB, free: 3.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006763/0.4978, allocations: 93.3 kB / 0.4938 GB, free: 3.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001985/0.498, allocations: 48.23 kB / 0.4939 GB, free: 3.363 MB / 366.1 MB Notification: Performance of SimCode: time 8.41e-07/0.498, allocations: 0 / 0.4939 GB, free: 3.363 MB / 366.1 MB Notification: Performance of Templates: time 0.02129/0.5193, allocations: 11.57 MB / 0.5051 GB, free: 8.574 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1)