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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 101.9 kB / 19.73 MB, free: 1.992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001407/0.001407, allocations: 212.3 kB / 23.03 MB, free: 4.426 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.468/1.468, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1034/0.1034, allocations: 22.93 MB / 336.2 MB, free: 12.4 MB / 270.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002965/0.002965, allocations: 71.89 kB / 472.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3847/0.3877, allocations: 59.29 MB / 0.519 GB, free: 10.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004022/0.3917, allocations: 3.608 MB / 0.5225 GB, free: 8.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001766/0.3934, allocations: 1.262 MB / 0.5238 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.3936, allocations: 4.094 kB / 0.5238 GB, free: 7.371 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001406/0.3938, allocations: 85.91 kB / 0.5239 GB, free: 7.316 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003815/0.3942, allocations: 216.6 kB / 0.5241 GB, free: 7.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005046/0.3947, allocations: 287.4 kB / 0.5243 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008249/0.3955, allocations: 1.091 MB / 0.5254 GB, free: 6.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004222/0.3959, allocations: 386.8 kB / 0.5258 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004345/0.3963, allocations: 413.2 kB / 0.5262 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005304/0.3969, allocations: 423.4 kB / 0.5266 GB, free: 5.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001368/0.397, allocations: 98.34 kB / 0.5267 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.3972, allocations: 97.59 kB / 0.5268 GB, free: 5.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.3973, allocations: 197.6 kB / 0.5269 GB, free: 5.738 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000356/0.3977, allocations: 359.5 kB / 0.5273 GB, free: 5.559 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009227/0.3986, allocations: 0.9652 MB / 0.5282 GB, free: 5.18 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3986, allocations: 0 / 0.5282 GB, free: 5.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3986, allocations: 5.875 kB / 0.5282 GB, free: 5.176 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.389e-05/0.3986, allocations: 0 / 0.5282 GB, free: 5.176 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.001973/0.4006, allocations: 0.9286 MB / 0.5291 GB, free: 4.594 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.4006, allocations: 9.406 kB / 0.5292 GB, free: 4.594 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.135e-05/0.4007, allocations: 23.23 kB / 0.5292 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001278/0.4008, allocations: 132.6 kB / 0.5293 GB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001293/0.4009, allocations: 77.38 kB / 0.5294 GB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001555/0.4011, allocations: 187.6 kB / 0.5296 GB, free: 4.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.153e-05/0.4011, allocations: 64.03 kB / 0.5296 GB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.4013, allocations: 80.56 kB / 0.5297 GB, free: 4.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001231/0.4025, allocations: 0.7153 MB / 0.5304 GB, free: 3.898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.4025, allocations: 0 / 0.5304 GB, free: 3.898 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.113e-05/0.4026, allocations: 34.72 kB / 0.5304 GB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.758e-05/0.4026, allocations: 20 kB / 0.5304 GB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.4038, allocations: 0.6935 MB / 0.5311 GB, free: 3.637 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: 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.003516/0.4073, allocations: 1.681 MB / 0.5328 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009938/0.4083, allocations: 0.6334 MB / 0.5334 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004976/0.4088, allocations: 305.8 kB / 0.5337 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.774e-05/0.4089, allocations: 16.39 kB / 0.5337 GB, free: 2.309 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.4089, allocations: 44.69 kB / 0.5337 GB, free: 2.262 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 3.086e-06/0.4089, allocations: 0 / 0.5337 GB, free: 2.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.008169/0.4171, allocations: 2.807 MB / 0.5365 GB, free: 1.012 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.736e-05/0.4172, allocations: 68.38 kB / 0.5365 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002786/0.4174, allocations: 206.2 kB / 0.5367 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.322e-05/0.4175, allocations: 41.73 kB / 0.5368 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.4177, allocations: 241.4 kB / 0.537 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003327/0.418, allocations: 397.2 kB / 0.5374 GB, free: 244 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002883/0.4183, allocations: 158.2 kB / 0.5375 GB, free: 156 kB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.4185, allocations: 356.9 kB / 0.5379 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006289/0.4191, allocations: 295.2 kB / 0.5382 GB, free: 15.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006457/0.4198, allocations: 385.3 kB / 0.5385 GB, free: 15.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01211/0.4319, allocations: 2.253 MB / 0.5407 GB, free: 14.85 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.4319, allocations: 0 / 0.5407 GB, free: 14.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002484/0.4344, allocations: 1.041 MB / 0.5417 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.4344, allocations: 11.25 kB / 0.5417 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.4344, allocations: 1.734 kB / 0.5418 GB, free: 14.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001081/0.4355, allocations: 207.6 kB / 0.5419 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006091/0.4416, allocations: 0.7636 MB / 0.5427 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01375/0.4553, allocations: 13.87 MB / 0.5562 GB, free: 160 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007661/0.4561, allocations: 29.14 kB / 0.5563 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.64e-05/0.4562, allocations: 29.12 kB / 0.5563 GB, free: 132 kB / 398.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 = 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 (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.0005657/0.4567, allocations: 224.7 kB / 0.5565 GB, free: 15.94 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.4569, allocations: 56.17 kB / 0.5566 GB, free: 15.91 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002879/0.4597, allocations: 1.246 MB / 0.5578 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.4597, allocations: 9.938 kB / 0.5578 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.4598, allocations: 2.781 kB / 0.5578 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.4598, allocations: 15.84 kB / 0.5578 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004669/0.4644, allocations: 2.212 MB / 0.56 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.4645, allocations: 7.219 kB / 0.56 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005599/0.4701, allocations: 0.7007 MB / 0.5607 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002154/0.4722, allocations: 363.6 kB / 0.561 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002727/0.4725, allocations: 33.14 kB / 0.561 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01444/0.4869, allocations: 14.04 MB / 0.5748 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/0.4869, allocations: 11.25 kB / 0.5748 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00391/0.4908, allocations: 1.818 MB / 0.5765 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002098/0.4911, allocations: 57.78 kB / 0.5766 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001268/0.4912, allocations: 32.62 kB / 0.5766 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006562/0.4918, allocations: 39.17 kB / 0.5767 GB, free: 13.78 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003222/0.4922, allocations: 121.5 kB / 0.5768 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.399e-05/0.4922, allocations: 35.81 kB / 0.5768 GB, free: 13.69 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001723/0.4924, allocations: 158.5 kB / 0.577 GB, free: 13.57 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4924, allocations: 0 / 0.577 GB, free: 13.57 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001098/0.4935, allocations: 233.3 kB / 0.5772 GB, free: 13.54 MB / 430.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.003921/0.4974, allocations: 2.394 MB / 0.5795 GB, free: 11.77 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007722/0.5052, allocations: 1.844 MB / 0.5813 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-05/0.5052, allocations: 0 / 0.5813 GB, free: 10.18 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006336/0.5115, allocations: 1.501 MB / 0.5828 GB, free: 8.633 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.5128, allocations: 173.1 kB / 0.583 GB, free: 8.461 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/0.5236, allocations: 6.045 MB / 0.5889 GB, free: 2.109 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003698/0.524, allocations: 311.4 kB / 0.5892 GB, free: 1.777 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005131/0.5245, allocations: 97 kB / 0.5893 GB, free: 1.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003819/0.5249, allocations: 215.4 kB / 0.5895 GB, free: 1.469 MB / 430.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5249, allocations: 0 / 0.5895 GB, free: 1.469 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08417/0.609, allocations: 18.43 MB / 0.6075 GB, free: 15.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.68/15.29, allocations: 6.812 kB / 0.6075 GB, free: 15.36 MB / 462.1 MB " [Timeout remaining time 645] (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 --stepSize=0.8 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 18.486206706031226] Failed to read output from testmodel.py, exit status != 0: 15.48312781995628 15.499234171 15.097265655 Calling exit ...