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.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.001455/0.001455, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001596/0.001596, allocations: 206.1 kB / 23.01 MB, free: 4.621 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.484/1.484, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1104/0.1104, allocations: 24.03 MB / 337.2 MB, free: 11.36 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_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"}) [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.002134/0.002134, allocations: 67.89 kB / 473.8 MB, free: 6.41 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3142, allocations: 59.57 MB / 0.5209 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004258/0.3185, allocations: 3.791 MB / 0.5246 GB, free: 7.527 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002611/0.3211, allocations: 1.304 MB / 0.5259 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003389/0.3215, allocations: 7.719 kB / 0.5259 GB, free: 6.594 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001807/0.3216, allocations: 86.05 kB / 0.526 GB, free: 6.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004613/0.3221, allocations: 236.9 kB / 0.5262 GB, free: 6.371 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006223/0.3227, allocations: 308.7 kB / 0.5265 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008894/0.3236, allocations: 1.168 MB / 0.5276 GB, free: 5.582 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006201/0.3242, allocations: 0.4986 MB / 0.5281 GB, free: 5.355 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005169/0.3247, allocations: 484.2 kB / 0.5286 GB, free: 5.145 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006147/0.3254, allocations: 473 kB / 0.529 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001735/0.3255, allocations: 111.3 kB / 0.5291 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002055/0.3257, allocations: 111.5 kB / 0.5293 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.3259, allocations: 230.6 kB / 0.5295 GB, free: 4.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004038/0.3263, allocations: 422.1 kB / 0.5299 GB, free: 4.598 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001273/0.3276, allocations: 1.125 MB / 0.531 GB, free: 4.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.3276, allocations: 0 / 0.531 GB, free: 4.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3276, allocations: 4 kB / 0.531 GB, free: 4.156 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.3276, allocations: 0 / 0.531 GB, free: 4.156 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.002291/0.3299, allocations: 0.9966 MB / 0.532 GB, free: 3.547 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.3299, allocations: 11.05 kB / 0.532 GB, free: 3.547 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001539/0.3301, allocations: 136.8 kB / 0.5321 GB, free: 3.453 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.3303, allocations: 80.5 kB / 0.5322 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.3305, allocations: 197.2 kB / 0.5324 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.028e-05/0.3305, allocations: 69.38 kB / 0.5324 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.3307, allocations: 86.28 kB / 0.5325 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001565/0.3322, allocations: 0.845 MB / 0.5333 GB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/0.3323, allocations: 5.156 kB / 0.5333 GB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.329e-05/0.3323, allocations: 35.44 kB / 0.5334 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.193e-05/0.3324, allocations: 21.75 kB / 0.5334 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.3338, allocations: 0.8402 MB / 0.5342 GB, free: 2.469 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.004023/0.3378, allocations: 1.949 MB / 0.5361 GB, free: 1.418 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.3397, allocations: 0.9222 MB / 0.537 GB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006209/0.3403, allocations: 385.3 kB / 0.5374 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.56e-05/0.3404, allocations: 22.22 kB / 0.5374 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.384e-05/0.3404, allocations: 46.16 kB / 0.5374 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006951/0.3411, allocations: 165.9 kB / 0.5376 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 5.41e-06/0.3411, allocations: 0 / 0.5376 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.00854/0.3496, allocations: 3.234 MB / 0.5408 GB, free: 15.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/0.3497, allocations: 63.41 kB / 0.5408 GB, free: 15.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002838/0.35, allocations: 218 kB / 0.541 GB, free: 15.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.084e-05/0.3501, allocations: 55.14 kB / 0.5411 GB, free: 15.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001897/0.3503, allocations: 242.9 kB / 0.5413 GB, free: 14.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003862/0.3506, allocations: 449.9 kB / 0.5417 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003415/0.351, allocations: 174.1 kB / 0.5419 GB, free: 14.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.3512, allocations: 363.6 kB / 0.5423 GB, free: 14.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007022/0.3519, allocations: 357.2 kB / 0.5426 GB, free: 14.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000791/0.3527, allocations: 457.7 kB / 0.543 GB, free: 13.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01894/0.3716, allocations: 3.454 MB / 0.5464 GB, free: 12.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.293e-06/0.3716, allocations: 3.938 kB / 0.5464 GB, free: 12.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002675/0.3743, allocations: 1.207 MB / 0.5476 GB, free: 11.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.3743, allocations: 5.375 kB / 0.5476 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.3743, allocations: 1.188 kB / 0.5476 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001037/0.3754, allocations: 217.9 kB / 0.5478 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006022/0.3814, allocations: 0.815 MB / 0.5486 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0132/0.3946, allocations: 13.88 MB / 0.5622 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009091/0.3955, allocations: 31.19 kB / 0.5622 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.733e-05/0.3956, allocations: 41.28 kB / 0.5622 GB, free: 13.03 MB / 414.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.0005331/0.3961, allocations: 235.4 kB / 0.5624 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00013/0.3963, allocations: 53.77 kB / 0.5625 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003341/0.3996, allocations: 1.486 MB / 0.5639 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.3996, allocations: 12.25 kB / 0.564 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.3996, allocations: 2.438 kB / 0.564 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.3996, allocations: 7.969 kB / 0.564 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004826/0.4045, allocations: 2.395 MB / 0.5663 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.4045, allocations: 6.938 kB / 0.5663 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005458/0.4099, allocations: 0.7554 MB / 0.5671 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002005/0.4119, allocations: 369.7 kB / 0.5674 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001427/0.4121, allocations: 37.83 kB / 0.5674 GB, free: 9.852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01374/0.4258, allocations: 14.13 MB / 0.5812 GB, free: 10.83 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.4258, allocations: 7.938 kB / 0.5812 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004247/0.4301, allocations: 2.052 MB / 0.5833 GB, free: 8.664 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.4303, allocations: 67.61 kB / 0.5833 GB, free: 8.598 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.4304, allocations: 31.98 kB / 0.5833 GB, free: 8.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006669/0.4311, allocations: 35.94 kB / 0.5834 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003426/0.4314, allocations: 132.6 kB / 0.5835 GB, free: 8.398 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.725e-05/0.4315, allocations: 44 kB / 0.5836 GB, free: 8.355 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002158/0.4317, allocations: 161.1 kB / 0.5837 GB, free: 8.199 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4317, allocations: 0 / 0.5837 GB, free: 8.199 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001274/0.433, allocations: 260 kB / 0.584 GB, free: 7.945 MB / 430.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.004442/0.4374, allocations: 2.647 MB / 0.5865 GB, free: 5.18 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007648/0.4451, allocations: 1.983 MB / 0.5885 GB, free: 3.141 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.707e-05/0.4451, allocations: 7.938 kB / 0.5885 GB, free: 3.133 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006166/0.4512, allocations: 1.587 MB / 0.59 GB, free: 1.496 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/0.4526, allocations: 191.5 kB / 0.5902 GB, free: 1.305 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01132/0.4639, allocations: 6.637 MB / 0.5967 GB, free: 10.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.4643, allocations: 337.7 kB / 0.597 GB, free: 10.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00068/0.465, allocations: 117.5 kB / 0.5971 GB, free: 9.91 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000473/0.4654, allocations: 259.3 kB / 0.5974 GB, free: 9.656 MB / 446.1 MB Notification: Performance of SimCode: time 1.643e-06/0.4654, allocations: 4 kB / 0.5974 GB, free: 9.652 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06299/0.5284, allocations: 21.1 MB / 0.618 GB, free: 4.875 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.48, allocations: 3.188 kB / 0.618 GB, free: 4.875 MB / 462.1 MB " [Timeout remaining time 645] (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 --stepSize=0.8 --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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.63985126418993] Failed to read output from testmodel.py, exit status != 0: 14.617081820964813 14.644810691 14.311914352 Calling exit ...