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.001319/0.001319, 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.001486/0.001486, allocations: 217.3 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 7.984 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.108/0.108, allocations: 24.13 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_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.002056/0.002056, allocations: 66.08 kB / 473.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.319, allocations: 59.59 MB / 0.5204 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.003646/0.3227, allocations: 3.019 MB / 0.5234 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.3243, allocations: 1.057 MB / 0.5244 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001996/0.3245, allocations: 15.66 kB / 0.5244 GB, free: 7.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004358/0.3249, allocations: 131.4 kB / 0.5245 GB, free: 7.191 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005142/0.3254, allocations: 193.4 kB / 0.5247 GB, free: 7.082 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.0004919/0.3259, allocations: 302.8 kB / 0.525 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006003/0.3265, allocations: 0.6247 MB / 0.5256 GB, free: 6.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.3268, allocations: 150.2 kB / 0.5258 GB, free: 6.531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002577/0.327, allocations: 247.6 kB / 0.526 GB, free: 6.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002973/0.3273, allocations: 274.3 kB / 0.5263 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.277e-05/0.3274, allocations: 51.06 kB / 0.5263 GB, free: 6.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.3276, allocations: 88.11 kB / 0.5264 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000146/0.3277, allocations: 147.5 kB / 0.5265 GB, free: 6.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.3279, allocations: 248.7 kB / 0.5268 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005235/0.3284, allocations: 0.5448 MB / 0.5273 GB, free: 5.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3284, allocations: 0 / 0.5273 GB, free: 5.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3284, allocations: 0 / 0.5273 GB, free: 5.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.3284, allocations: 0 / 0.5273 GB, free: 5.777 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.00165/0.3301, allocations: 0.806 MB / 0.5281 GB, free: 5.234 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3301, allocations: 10.64 kB / 0.5281 GB, free: 5.234 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.352e-05/0.3302, allocations: 82.27 kB / 0.5282 GB, free: 5.168 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.56e-05/0.3303, allocations: 61.16 kB / 0.5282 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006914/0.331, allocations: 384.6 kB / 0.5286 GB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.115e-05/0.331, allocations: 32.38 kB / 0.5286 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-05/0.3311, allocations: 45.89 kB / 0.5287 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000705/0.3318, allocations: 416.8 kB / 0.5291 GB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.3318, allocations: 7.953 kB / 0.5291 GB, free: 4.648 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.152e-05/0.3318, allocations: 15.94 kB / 0.5291 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.3319, allocations: 10.44 kB / 0.5291 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006245/0.3325, allocations: 292.5 kB / 0.5294 GB, free: 4.535 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.001855/0.3343, allocations: 1.664 MB / 0.531 GB, free: 3.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004395/0.3348, allocations: 255.9 kB / 0.5313 GB, free: 3.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002815/0.3351, allocations: 150.1 kB / 0.5314 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.898e-05/0.3351, allocations: 5.219 kB / 0.5314 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.432e-05/0.3351, allocations: 41.02 kB / 0.5315 GB, free: 3.031 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.563e-06/0.3351, allocations: 1.062 kB / 0.5315 GB, free: 3.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008938/0.336, allocations: 406.5 kB / 0.5318 GB, free: 2.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.314e-05/0.336, allocations: 58.72 kB / 0.5319 GB, free: 2.797 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007287/0.3368, allocations: 473.4 kB / 0.5323 GB, free: 2.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.3368, allocations: 38.98 kB / 0.5324 GB, free: 2.547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.3369, allocations: 266.2 kB / 0.5326 GB, free: 2.328 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.455e-05/0.337, allocations: 145.1 kB / 0.5328 GB, free: 2.215 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001455/0.3371, allocations: 97.98 kB / 0.5329 GB, free: 2.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.11e-05/0.3372, allocations: 362.9 kB / 0.5332 GB, free: 1.824 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002964/0.3375, allocations: 118.7 kB / 0.5333 GB, free: 1.785 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003385/0.3379, allocations: 243 kB / 0.5336 GB, free: 1.594 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.34, allocations: 0.752 MB / 0.5343 GB, free: 1.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.34, allocations: 1.125 kB / 0.5343 GB, free: 1.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007797/0.3407, allocations: 462.5 kB / 0.5347 GB, free: 1.027 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.3408, allocations: 11.67 kB / 0.5348 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.3408, allocations: 4.594 kB / 0.5348 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.3408, allocations: 6.594 kB / 0.5348 GB, free: 1.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004991/0.3413, allocations: 122.7 kB / 0.5349 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.25e-05/0.3413, allocations: 6.062 kB / 0.5349 GB, free: 1.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003729/0.3417, allocations: 64.5 kB / 0.5349 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.3417, allocations: 23.94 kB / 0.535 GB, free: 0.9727 MB / 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.0002687/0.342, allocations: 204.4 kB / 0.5352 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.503e-05/0.3421, allocations: 48.5 kB / 0.5352 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006186/0.3427, allocations: 368.2 kB / 0.5356 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.3427, allocations: 4.469 kB / 0.5356 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.3427, allocations: 0 / 0.5356 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3427, allocations: 3.641 kB / 0.5356 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005361/0.3432, allocations: 450.1 kB / 0.536 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.3432, allocations: 0.7031 kB / 0.536 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004964/0.3437, allocations: 98.55 kB / 0.5361 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.3437, allocations: 1.031 kB / 0.5361 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.641e-05/0.3438, allocations: 12.62 kB / 0.5361 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.3438, allocations: 2.281 kB / 0.5361 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3438, allocations: 0 / 0.5361 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007726/0.3445, allocations: 0.5694 MB / 0.5367 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3446, allocations: 52.77 kB / 0.5367 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.683e-05/0.3447, allocations: 10.69 kB / 0.5367 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003237/0.345, allocations: 29.05 kB / 0.5368 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.624e-05/0.3451, allocations: 28.78 kB / 0.5368 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.3451, allocations: 13.28 kB / 0.5368 GB, free: 15.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0006092/0.3457, allocations: 339.3 kB / 0.5371 GB, free: 15.78 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3457, allocations: 0 / 0.5371 GB, free: 15.78 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005217/0.3462, allocations: 111.4 kB / 0.5372 GB, free: 15.75 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.001264/0.3475, allocations: 1.128 MB / 0.5383 GB, free: 14.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006771/0.3482, allocations: 308.2 kB / 0.5386 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3482, allocations: 0 / 0.5386 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002594/0.3485, allocations: 160.6 kB / 0.5388 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000446/0.3489, allocations: 58.81 kB / 0.5388 GB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006843/0.3557, allocations: 4.306 MB / 0.543 GB, free: 12.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005385/0.3563, allocations: 0.8572 MB / 0.5439 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002401/0.3565, allocations: 56.52 kB / 0.5439 GB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/0.3568, allocations: 180.6 kB / 0.5441 GB, free: 11.25 MB / 398.1 MB Notification: Performance of SimCode: time 1.253e-06/0.3568, allocations: 0 / 0.5441 GB, free: 11.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04591/0.4027, allocations: 8.687 MB / 0.5526 GB, free: 7.566 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.2, allocations: 19.47 kB / 0.5526 GB, free: 7.555 MB / 398.1 MB " [Timeout remaining time 648] (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: 15.234601422002015] Failed to read output from testmodel.py, exit status != 0: 12.315336611005478 12.343277006 12.009566849 Calling exit ...