Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.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.001587/0.001587, allocations: 108 kB / 16.45 MB, free: 6.508 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.001893/0.001893, allocations: 213.7 kB / 19.43 MB, free: 3.648 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 / 252.8 MB, free: 9.109 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.1105/0.1105, allocations: 24.11 MB / 333 MB, free: 12.61 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_control_problems.Thermal_zones_control.Thermal_zones_case_01,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01",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.002036/0.002036, allocations: 67.88 kB / 467.9 MB, free: 9.043 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3223/0.3243, allocations: 59.57 MB / 0.5151 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.003453/0.3278, allocations: 2.996 MB / 0.518 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001486/0.3293, allocations: 1.065 MB / 0.519 GB, free: 6.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001885/0.3295, allocations: 10.56 kB / 0.519 GB, free: 6.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004083/0.3299, allocations: 130.4 kB / 0.5192 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004739/0.3303, allocations: 189.8 kB / 0.5194 GB, free: 6.672 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0004035/0.3307, allocations: 272.4 kB / 0.5196 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005638/0.3313, allocations: 0.6118 MB / 0.5202 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002369/0.3315, allocations: 150.8 kB / 0.5204 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003243/0.3319, allocations: 244.9 kB / 0.5206 GB, free: 6.035 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003018/0.3322, allocations: 270.2 kB / 0.5208 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.192e-05/0.3322, allocations: 45.91 kB / 0.5209 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001454/0.3324, allocations: 78.39 kB / 0.521 GB, free: 5.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.3325, allocations: 147.4 kB / 0.5211 GB, free: 5.805 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.3327, allocations: 248.8 kB / 0.5213 GB, free: 5.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006429/0.3333, allocations: 0.553 MB / 0.5219 GB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.3333, allocations: 0 / 0.5219 GB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3333, allocations: 0 / 0.5219 GB, free: 5.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.3334, allocations: 0 / 0.5219 GB, free: 5.398 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001613/0.335, allocations: 0.8683 MB / 0.5227 GB, free: 4.773 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/0.335, allocations: 14.84 kB / 0.5227 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.757e-05/0.3351, allocations: 78.62 kB / 0.5228 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.219e-05/0.3352, allocations: 65.75 kB / 0.5229 GB, free: 4.672 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006695/0.3358, allocations: 445.4 kB / 0.5233 GB, free: 4.352 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.3359, allocations: 39.78 kB / 0.5233 GB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.973e-05/0.3359, allocations: 50.5 kB / 0.5234 GB, free: 4.316 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006563/0.3366, allocations: 412 kB / 0.5238 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.3366, allocations: 5.109 kB / 0.5238 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.3367, allocations: 15.25 kB / 0.5238 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.3367, allocations: 14.78 kB / 0.5238 GB, free: 4.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006244/0.3373, allocations: 289.3 kB / 0.5241 GB, free: 4 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.3391, allocations: 1.711 MB / 0.5258 GB, free: 2.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004732/0.3396, allocations: 251.6 kB / 0.526 GB, free: 2.574 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.3399, allocations: 147.5 kB / 0.5261 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.3399, allocations: 5.422 kB / 0.5262 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.861e-05/0.3399, allocations: 33.84 kB / 0.5262 GB, free: 2.477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.573e-06/0.3399, allocations: 4 kB / 0.5262 GB, free: 2.473 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009237/0.3409, allocations: 410.1 kB / 0.5266 GB, free: 2.301 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.3409, allocations: 60.89 kB / 0.5266 GB, free: 2.234 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007598/0.3417, allocations: 476.8 kB / 0.5271 GB, free: 2.023 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.3417, allocations: 30.77 kB / 0.5271 GB, free: 1.988 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.3418, allocations: 262.6 kB / 0.5274 GB, free: 1.773 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.247e-05/0.3419, allocations: 149.5 kB / 0.5275 GB, free: 1.656 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.342, allocations: 102.3 kB / 0.5276 GB, free: 1.598 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.892e-05/0.3421, allocations: 351.7 kB / 0.5279 GB, free: 1.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/0.3424, allocations: 121.9 kB / 0.5281 GB, free: 1.227 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003225/0.3427, allocations: 251.4 kB / 0.5283 GB, free: 1.031 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002154/0.3449, allocations: 0.8985 MB / 0.5292 GB, free: 496 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.3449, allocations: 1.531 kB / 0.5292 GB, free: 496 kB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000806/0.3457, allocations: 469.6 kB / 0.5296 GB, free: 284 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.3457, allocations: 6.656 kB / 0.5296 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.639e-06/0.3457, allocations: 5.703 kB / 0.5296 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.13e-05/0.3457, allocations: 6.344 kB / 0.5296 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005507/0.3463, allocations: 124.4 kB / 0.5298 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/0.3463, allocations: 11.69 kB / 0.5298 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003742/0.3467, allocations: 63.19 kB / 0.5298 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.813e-05/0.3467, allocations: 21.3 kB / 0.5299 GB, free: 228 kB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: Cz1.T:VARIABLE(min = 0.0 start = 293.15 unit = \"K\" fixed = true nominal = 300.0 ) \"Temperature of element\" type: Real Cz2.T:VARIABLE(min = 0.0 start = 293.15 unit = \"K\" fixed = true nominal = 300.0 ) \"Temperature of element\" type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: D.Fcs2.y = D.Fcs2.y_start D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 10 (C2.LOsat,C2.HIsat,C1.LOsat,C1.HIsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002649/0.347, allocations: 203.9 kB / 0.5301 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.835e-05/0.3471, allocations: 43.88 kB / 0.5301 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000799/0.3479, allocations: 372.9 kB / 0.5304 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.3479, allocations: 8.359 kB / 0.5305 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.3479, allocations: 0 / 0.5305 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.3479, allocations: 7.312 kB / 0.5305 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006269/0.3485, allocations: 475.2 kB / 0.5309 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3485, allocations: 0.5156 kB / 0.5309 GB, free: 15.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005094/0.349, allocations: 102 kB / 0.531 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.349, allocations: 2.25 kB / 0.531 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.167e-05/0.349, allocations: 12.33 kB / 0.531 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.349, allocations: 2.406 kB / 0.531 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3491, allocations: 4 kB / 0.531 GB, free: 15.51 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008554/0.3499, allocations: 0.5685 MB / 0.5316 GB, free: 15.2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.35, allocations: 128.8 kB / 0.5317 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.627e-05/0.3501, allocations: 13.84 kB / 0.5317 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003358/0.3504, allocations: 26.59 kB / 0.5318 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.423e-05/0.3505, allocations: 28.67 kB / 0.5318 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.3505, allocations: 12.88 kB / 0.5318 GB, free: 15.05 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006175/0.3511, allocations: 342.9 kB / 0.5321 GB, free: 14.89 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3511, allocations: 0 / 0.5321 GB, free: 14.89 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004598/0.3516, allocations: 110.6 kB / 0.5322 GB, free: 14.86 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (Cz1.T,Cz2.T,C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001293/0.3529, allocations: 1.124 MB / 0.5333 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006364/0.3535, allocations: 307.5 kB / 0.5336 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.3535, allocations: 0 / 0.5336 GB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000264/0.3538, allocations: 160.3 kB / 0.5338 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000447/0.3542, allocations: 64.31 kB / 0.5338 GB, free: 13.83 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006792/0.361, allocations: 4.303 MB / 0.538 GB, free: 11.22 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000558/0.3616, allocations: 0.8573 MB / 0.5389 GB, free: 10.51 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002057/0.3618, allocations: 53.14 kB / 0.5389 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003853/0.3622, allocations: 171.9 kB / 0.5391 GB, free: 10.38 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3622, allocations: 0 / 0.5391 GB, free: 10.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04508/0.4073, allocations: 8.312 MB / 0.5472 GB, free: 7.238 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.997/9.404, allocations: 5.438 kB / 0.5472 GB, free: 7.234 MB / 398.1 MB " [Timeout remaining time 651] (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.373050370020792] Failed to read output from testmodel.py, exit status != 0: 9.481211710022762 9.504081944 9.166244992 Calling exit ...