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.001328/0.001328, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001505/0.001505, allocations: 215.9 kB / 22.25 MB, free: 5.125 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.469/1.469, allocations: 230.6 MB / 256 MB, free: 7.988 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.1175/0.1175, allocations: 24.12 MB / 336.6 MB, free: 11.43 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="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"}) [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.003227/0.003227, allocations: 71.88 kB / 473.3 MB, free: 6.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3812/0.3844, allocations: 59.61 MB / 0.5204 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.005144/0.3896, allocations: 4.061 MB / 0.5244 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.392, allocations: 1.323 MB / 0.5257 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003182/0.3924, allocations: 3.562 kB / 0.5257 GB, free: 6.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001821/0.3925, allocations: 78.58 kB / 0.5258 GB, free: 6.203 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004175/0.393, allocations: 216.8 kB / 0.526 GB, free: 6.047 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000592/0.3935, allocations: 294.7 kB / 0.5263 GB, free: 5.867 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.3946, allocations: 1.09 MB / 0.5273 GB, free: 5.309 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005797/0.3951, allocations: 384 kB / 0.5277 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005467/0.3957, allocations: 414 kB / 0.5281 GB, free: 4.953 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005619/0.3963, allocations: 425.8 kB / 0.5285 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.3964, allocations: 93.56 kB / 0.5286 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002336/0.3966, allocations: 94.19 kB / 0.5287 GB, free: 4.758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001799/0.3968, allocations: 194.5 kB / 0.5288 GB, free: 4.625 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005203/0.3973, allocations: 421.2 kB / 0.5292 GB, free: 4.387 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.3986, allocations: 0.9703 MB / 0.5302 GB, free: 3.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3986, allocations: 0 / 0.5302 GB, free: 3.996 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3987, allocations: 0 / 0.5302 GB, free: 3.996 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.3987, allocations: 0 / 0.5302 GB, free: 3.996 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.002836/0.4015, allocations: 0.9212 MB / 0.5311 GB, free: 3.422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4016, allocations: 13.19 kB / 0.5311 GB, free: 3.418 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00018/0.4017, allocations: 128.9 kB / 0.5312 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.4019, allocations: 77.92 kB / 0.5313 GB, free: 3.289 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002236/0.4021, allocations: 193 kB / 0.5315 GB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.936e-05/0.4022, allocations: 59.62 kB / 0.5315 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001662/0.4024, allocations: 86.23 kB / 0.5316 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.4042, allocations: 0.689 MB / 0.5323 GB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.4042, allocations: 4.547 kB / 0.5323 GB, free: 2.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.963e-05/0.4043, allocations: 31.78 kB / 0.5323 GB, free: 2.727 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.072e-05/0.4044, allocations: 23.53 kB / 0.5324 GB, free: 2.723 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002089/0.4065, allocations: 0.6972 MB / 0.533 GB, free: 2.488 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.005143/0.4116, allocations: 2.254 MB / 0.5352 GB, free: 1.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.4133, allocations: 0.6243 MB / 0.5359 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008288/0.4141, allocations: 301.9 kB / 0.5361 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001044/0.4142, allocations: 15.92 kB / 0.5362 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.4142, allocations: 48.02 kB / 0.5362 GB, free: 0.582 MB / 382.1 MB Notification: Performance of pre-optimization done (n=102): time 4.228e-06/0.4142, allocations: 1.344 kB / 0.5362 GB, free: 0.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=112): time 0.007951/0.4222, allocations: 2.8 MB / 0.5389 GB, free: 15.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/0.4223, allocations: 68.69 kB / 0.539 GB, free: 15.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.4225, allocations: 205.8 kB / 0.5392 GB, free: 15.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.38e-05/0.4226, allocations: 46.42 kB / 0.5392 GB, free: 15.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001766/0.4228, allocations: 232.3 kB / 0.5395 GB, free: 14.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003672/0.4232, allocations: 406.5 kB / 0.5399 GB, free: 14.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/0.4234, allocations: 150.4 kB / 0.54 GB, free: 14.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.4236, allocations: 359.4 kB / 0.5403 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005445/0.4242, allocations: 299.2 kB / 0.5406 GB, free: 14.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006228/0.4248, allocations: 390 kB / 0.541 GB, free: 13.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01201/0.4368, allocations: 2.251 MB / 0.5432 GB, free: 13.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.4368, allocations: 1.375 kB / 0.5432 GB, free: 13.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002863/0.4397, allocations: 1.044 MB / 0.5442 GB, free: 12.58 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.4397, allocations: 9.125 kB / 0.5442 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.4397, allocations: 1 kB / 0.5442 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.4408, allocations: 213.7 kB / 0.5444 GB, free: 12.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005961/0.4467, allocations: 0.7451 MB / 0.5452 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01402/0.4607, allocations: 13.93 MB / 0.5588 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007921/0.4615, allocations: 26.19 kB / 0.5588 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.4617, allocations: 32.52 kB / 0.5588 GB, free: 14.08 MB / 414.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.0005356/0.4622, allocations: 225.7 kB / 0.559 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.4624, allocations: 52.14 kB / 0.5591 GB, free: 13.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003141/0.4655, allocations: 1.245 MB / 0.5603 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.43e-05/0.4655, allocations: 10.53 kB / 0.5603 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.4655, allocations: 2.25 kB / 0.5603 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.171e-05/0.4655, allocations: 3.984 kB / 0.5603 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005023/0.4706, allocations: 2.353 MB / 0.5626 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/0.4706, allocations: 7.562 kB / 0.5626 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005288/0.4759, allocations: 0.696 MB / 0.5633 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002005/0.4779, allocations: 359.9 kB / 0.5636 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001423/0.478, allocations: 33.17 kB / 0.5637 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01359/0.4916, allocations: 14.09 MB / 0.5774 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/0.4916, allocations: 15.73 kB / 0.5774 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003801/0.4954, allocations: 1.822 MB / 0.5792 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001889/0.4956, allocations: 65.19 kB / 0.5793 GB, free: 11.55 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.4957, allocations: 29 kB / 0.5793 GB, free: 11.54 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006721/0.4964, allocations: 30.27 kB / 0.5793 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/0.4967, allocations: 121.9 kB / 0.5795 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.428e-05/0.4968, allocations: 36.59 kB / 0.5795 GB, free: 11.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001723/0.497, allocations: 162.6 kB / 0.5796 GB, free: 11.31 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.497, allocations: 0 / 0.5796 GB, free: 11.31 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001131/0.4981, allocations: 231.6 kB / 0.5799 GB, free: 11.27 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.004011/0.5021, allocations: 2.39 MB / 0.5822 GB, free: 9.008 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007455/0.5096, allocations: 1.858 MB / 0.584 GB, free: 7.094 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/0.5096, allocations: 0 / 0.584 GB, free: 7.094 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006276/0.5159, allocations: 1.486 MB / 0.5855 GB, free: 5.562 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.5176, allocations: 179.1 kB / 0.5856 GB, free: 5.387 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/0.5293, allocations: 6.041 MB / 0.5915 GB, free: 15.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006585/0.5299, allocations: 0.9168 MB / 0.5924 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005248/0.5304, allocations: 89.02 kB / 0.5925 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000401/0.5308, allocations: 219.4 kB / 0.5927 GB, free: 13.79 MB / 446.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5308, allocations: 4 kB / 0.5927 GB, free: 13.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08659/0.6174, allocations: 17.85 MB / 0.6102 GB, free: 12.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.33/14.95, allocations: 0 / 0.6102 GB, free: 12.14 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.12953920289874] Failed to read output from testmodel.py, exit status != 0: 15.088776246178895 15.118056937 14.713401257 Calling exit ...