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) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 192.4 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09993/0.09993, allocations: 22.7 MB / 329 MB, free: 2.352 MB / 254.1 MB
"
[Timeout remaining time 180]
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_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002")
translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002167/0.002167, allocations: 67.89 kB / 463.1 MB, free: 14.6 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1379, allocations: 58.07 MB / 0.509 GB, free: 4.43 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.006498/0.1444, allocations: 4.264 MB / 0.5131 GB, free: 140 kB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.2781/0.4225, allocations: 1.338 MB / 0.5144 GB, free: 12.43 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0003187/0.4228, allocations: 4.062 kB / 0.5144 GB, free: 12.43 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001962/0.423, allocations: 89.92 kB / 0.5145 GB, free: 12.43 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0004739/0.4235, allocations: 239 kB / 0.5147 GB, free: 12.4 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0006823/0.4241, allocations: 309.5 kB / 0.515 GB, free: 12.39 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.001084/0.4252, allocations: 1.167 MB / 0.5162 GB, free: 12.17 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.00067/0.4259, allocations: 0.4983 MB / 0.5167 GB, free: 12.14 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0005136/0.4264, allocations: 480.3 kB / 0.5171 GB, free: 12.05 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0005915/0.427, allocations: 0.5153 MB / 0.5176 GB, free: 11.83 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001625/0.4272, allocations: 113.4 kB / 0.5177 GB, free: 11.83 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0001719/0.4273, allocations: 112.9 kB / 0.5178 GB, free: 11.83 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001696/0.4275, allocations: 241.9 kB / 0.5181 GB, free: 11.68 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0005025/0.428, allocations: 478.2 kB / 0.5185 GB, free: 11.41 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001894/0.4299, allocations: 1.128 MB / 0.5196 GB, free: 10.99 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.4299, allocations: 0 / 0.5196 GB, free: 10.99 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.864e-06/0.4299, allocations: 1.438 kB / 0.5196 GB, free: 10.99 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 3.36e-05/0.4299, allocations: 0 / 0.5196 GB, free: 10.99 MB / 382.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.003032/0.433, allocations: 0.9875 MB / 0.5206 GB, free: 10.39 MB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 6.451e-05/0.433, allocations: 15.38 kB / 0.5206 GB, free: 10.38 MB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002164/0.4333, allocations: 82.48 kB / 0.5207 GB, free: 10.34 MB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.4335, allocations: 193.8 kB / 0.5209 GB, free: 10.15 MB / 382.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.026e-05/0.4336, allocations: 70.03 kB / 0.5209 GB, free: 10.12 MB / 382.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.4337, allocations: 85.08 kB / 0.521 GB, free: 10.09 MB / 382.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001594/0.4353, allocations: 0.8249 MB / 0.5218 GB, free: 9.754 MB / 382.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.4354, allocations: 0.6562 kB / 0.5218 GB, free: 9.754 MB / 382.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.465e-05/0.4354, allocations: 35.66 kB / 0.5219 GB, free: 9.727 MB / 382.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.587e-05/0.4355, allocations: 21 kB / 0.5219 GB, free: 9.727 MB / 382.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.437, allocations: 0.845 MB / 0.5227 GB, free: 9.441 MB / 382.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.004495/0.4415, allocations: 2.551 MB / 0.5252 GB, free: 7.891 MB / 382.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002152/0.4437, allocations: 0.9467 MB / 0.5261 GB, free: 7.551 MB / 382.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006199/0.4443, allocations: 382.4 kB / 0.5265 GB, free: 7.395 MB / 382.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 7.9e-05/0.4444, allocations: 22.7 kB / 0.5265 GB, free: 7.391 MB / 382.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.4444, allocations: 49.19 kB / 0.5266 GB, free: 7.34 MB / 382.1 MB
Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007404/0.4451, allocations: 168.7 kB / 0.5267 GB, free: 7.273 MB / 382.1 MB
Notification: Performance of pre-optimization done (n=113): time 3.306e-06/0.4451, allocations: 0 / 0.5267 GB, free: 7.273 MB / 382.1 MB
Notification: Performance of matching and sorting (n=124): time 0.008427/0.4536, allocations: 3.246 MB / 0.5299 GB, free: 5.852 MB / 382.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/0.4536, allocations: 67.67 kB / 0.5299 GB, free: 5.789 MB / 382.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.4538, allocations: 216.8 kB / 0.5302 GB, free: 5.648 MB / 382.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.943e-05/0.4539, allocations: 43.73 kB / 0.5302 GB, free: 5.602 MB / 382.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001176/0.454, allocations: 246.7 kB / 0.5304 GB, free: 5.402 MB / 382.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002587/0.4543, allocations: 440.4 kB / 0.5309 GB, free: 5.059 MB / 382.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003061/0.4546, allocations: 175.9 kB / 0.531 GB, free: 4.977 MB / 382.1 MB
Notification: Performance of setup shared object (initialization): time 9.351e-05/0.4547, allocations: 358.3 kB / 0.5314 GB, free: 4.645 MB / 382.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006508/0.4553, allocations: 365.5 kB / 0.5317 GB, free: 4.496 MB / 382.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007294/0.456, allocations: 459.4 kB / 0.5321 GB, free: 4.285 MB / 382.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.01979/0.4758, allocations: 3.481 MB / 0.5355 GB, free: 3.43 MB / 382.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.4758, allocations: 7.938 kB / 0.5356 GB, free: 3.422 MB / 382.1 MB
Notification: Performance of matching and sorting (n=135) (initialization): time 0.002878/0.4787, allocations: 1.2 MB / 0.5367 GB, free: 2.875 MB / 382.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.187e-05/0.4787, allocations: 5.438 kB / 0.5367 GB, free: 2.875 MB / 382.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.4787, allocations: 2.781 kB / 0.5367 GB, free: 2.875 MB / 382.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.001043/0.4798, allocations: 218.3 kB / 0.5369 GB, free: 2.746 MB / 382.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006285/0.4861, allocations: 0.8092 MB / 0.5377 GB, free: 2.508 MB / 382.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01404/0.5001, allocations: 13.91 MB / 0.5513 GB, free: 4.43 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.5012, allocations: 30.53 kB / 0.5514 GB, free: 4.41 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.5014, allocations: 45.72 kB / 0.5514 GB, free: 4.391 MB / 398.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 = 1e5 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.000817/0.5022, allocations: 231.1 kB / 0.5516 GB, free: 4.195 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002446/0.5024, allocations: 66.59 kB / 0.5517 GB, free: 4.156 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004167/0.5066, allocations: 1.474 MB / 0.5531 GB, free: 3.25 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.851e-05/0.5066, allocations: 12.59 kB / 0.5531 GB, free: 3.25 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.781e-05/0.5067, allocations: 2.562 kB / 0.5531 GB, free: 3.25 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-05/0.5067, allocations: 9.219 kB / 0.5531 GB, free: 3.242 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005943/0.5126, allocations: 2.549 MB / 0.5556 GB, free: 1.535 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-05/0.5126, allocations: 6.781 kB / 0.5556 GB, free: 1.535 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005701/0.5183, allocations: 0.7539 MB / 0.5564 GB, free: 1.32 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.002147/0.5205, allocations: 370 kB / 0.5567 GB, free: 1.121 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002745/0.5208, allocations: 34.58 kB / 0.5568 GB, free: 1.102 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01704/0.5378, allocations: 14.18 MB / 0.5706 GB, free: 2.867 MB / 414.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.5378, allocations: 7.875 kB / 0.5706 GB, free: 2.867 MB / 414.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004875/0.5427, allocations: 2.063 MB / 0.5726 GB, free: 1.543 MB / 414.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002831/0.543, allocations: 58.64 kB / 0.5727 GB, free: 1.508 MB / 414.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001911/0.5432, allocations: 33.05 kB / 0.5727 GB, free: 1.488 MB / 414.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008805/0.544, allocations: 34.34 kB / 0.5727 GB, free: 1.469 MB / 414.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003648/0.5444, allocations: 128.8 kB / 0.5729 GB, free: 1.379 MB / 414.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/0.5445, allocations: 39.5 kB / 0.5729 GB, free: 1.371 MB / 414.1 MB
Notification: Performance of sorting global known variables: time 0.000234/0.5448, allocations: 168.7 kB / 0.5731 GB, free: 1.25 MB / 414.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.5448, allocations: 4 kB / 0.5731 GB, free: 1.246 MB / 414.1 MB
Notification: Performance of remove unused functions: time 0.001421/0.5462, allocations: 257.7 kB / 0.5733 GB, free: 1.207 MB / 414.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.0003581/0.5466, allocations: 140.6 kB / 0.5735 GB, free: 1.082 MB / 414.1 MB
Notification: Performance of simCode: created initialization part: time 0.008281/0.5548, allocations: 1.994 MB / 0.5754 GB, free: 15.55 MB / 430.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.106e-05/0.5548, allocations: 0 / 0.5754 GB, free: 15.55 MB / 430.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.007105/0.562, allocations: 1.582 MB / 0.5769 GB, free: 13.92 MB / 430.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001691/0.5636, allocations: 201.6 kB / 0.5771 GB, free: 13.72 MB / 430.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004358/0.568, allocations: 1.902 MB / 0.579 GB, free: 11.72 MB / 430.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007334/0.5687, allocations: 0.9377 MB / 0.5799 GB, free: 10.76 MB / 430.1 MB
Notification: Performance of simCode: alias equations: time 0.0007483/0.5695, allocations: 117.5 kB / 0.58 GB, free: 10.64 MB / 430.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003066/0.5698, allocations: 63.42 kB / 0.5801 GB, free: 10.58 MB / 430.1 MB
Notification: Performance of SimCode: time 1.483e-06/0.5698, allocations: 0 / 0.5801 GB, free: 10.58 MB / 430.1 MB
Notification: Performance of Templates: time 0.02895/0.5987, allocations: 14.72 MB / 0.5945 GB, free: 11.98 MB / 446.1 MB
"
[Timeout remaining time 659]
make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.makefile [Timeout 660]
(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 & ./AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002  -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 6.11821951251477]
Failed to read output from testmodel.py, exit status != 0:
0.6083751330152154 0.622313477 0.18914882900000002
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7ff4816217b0>