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.001324/0.001324, allocations: 109.4 kB / 17.15 MB, free: 6.02 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.001446/0.001446, allocations: 207.2 kB / 20.11 MB, free: 3.062 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.512/1.512, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1053/0.1053, allocations: 24.03 MB / 333.6 MB, free: 1.559 MB / 254.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.003215/0.003215, allocations: 69.52 kB / 468.4 MB, free: 31.45 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1086, allocations: 59.55 MB / 0.5156 GB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.00481/0.1134, allocations: 2.994 MB / 0.5185 GB, free: 9.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.1156, allocations: 1.052 MB / 0.5195 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003883/0.116, allocations: 11.88 kB / 0.5196 GB, free: 8.195 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000552/0.1165, allocations: 134.9 kB / 0.5197 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006932/0.1172, allocations: 194.8 kB / 0.5199 GB, free: 7.871 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.0005658/0.1178, allocations: 259.6 kB / 0.5201 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008069/0.1186, allocations: 0.6132 MB / 0.5207 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003389/0.1189, allocations: 158.8 kB / 0.5209 GB, free: 6.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003756/0.1193, allocations: 247.1 kB / 0.5211 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004002/0.1197, allocations: 274.6 kB / 0.5214 GB, free: 6.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.439e-05/0.1198, allocations: 48 kB / 0.5214 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001769/0.12, allocations: 75.97 kB / 0.5215 GB, free: 6.207 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001755/0.1201, allocations: 143.4 kB / 0.5216 GB, free: 6.066 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002724/0.1204, allocations: 246.6 kB / 0.5219 GB, free: 5.824 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006931/0.1211, allocations: 0.5367 MB / 0.5224 GB, free: 5.281 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1211, allocations: 4 kB / 0.5224 GB, free: 5.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1211, allocations: 3.938 kB / 0.5224 GB, free: 5.273 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.1211, allocations: 4 kB / 0.5224 GB, free: 5.27 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.002069/0.1232, allocations: 0.8725 MB / 0.5232 GB, free: 4.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.1232, allocations: 12.62 kB / 0.5233 GB, free: 4.336 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001302/0.1234, allocations: 82.7 kB / 0.5233 GB, free: 4.246 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.1235, allocations: 60.56 kB / 0.5234 GB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000847/0.1243, allocations: 447.8 kB / 0.5238 GB, free: 3.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.412e-05/0.1244, allocations: 33.38 kB / 0.5239 GB, free: 3.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.975e-05/0.1245, allocations: 48.36 kB / 0.5239 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007703/0.1252, allocations: 420.9 kB / 0.5243 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.1253, allocations: 7.891 kB / 0.5243 GB, free: 3.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.891e-05/0.1253, allocations: 16 kB / 0.5243 GB, free: 3.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.1253, allocations: 8 kB / 0.5243 GB, free: 3.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00068/0.126, allocations: 291.8 kB / 0.5246 GB, free: 2.887 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.002362/0.1283, allocations: 1.709 MB / 0.5263 GB, free: 1.039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005058/0.1288, allocations: 251.3 kB / 0.5265 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.1292, allocations: 149.5 kB / 0.5267 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.459e-05/0.1292, allocations: 8.328 kB / 0.5267 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.1292, allocations: 34.89 kB / 0.5267 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.064e-06/0.1292, allocations: 0 / 0.5267 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009965/0.1302, allocations: 407.7 kB / 0.5271 GB, free: 188 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.1303, allocations: 59.41 kB / 0.5271 GB, free: 116 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008662/0.1311, allocations: 473.5 kB / 0.5276 GB, free: 15.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.1312, allocations: 37.7 kB / 0.5276 GB, free: 15.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002179/0.1314, allocations: 264.5 kB / 0.5279 GB, free: 15.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001445/0.1315, allocations: 150.8 kB / 0.528 GB, free: 15.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.1317, allocations: 94.2 kB / 0.5281 GB, free: 15.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.1319, allocations: 358.8 kB / 0.5285 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003046/0.1322, allocations: 113.1 kB / 0.5286 GB, free: 14.62 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004178/0.1326, allocations: 248.6 kB / 0.5288 GB, free: 14.33 MB / 398.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002504/0.1351, allocations: 0.9097 MB / 0.5297 GB, free: 13.34 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.1351, allocations: 0 / 0.5297 GB, free: 13.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009834/0.1361, allocations: 467.5 kB / 0.5301 GB, free: 12.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.1361, allocations: 8 kB / 0.5301 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.1361, allocations: 4 kB / 0.5302 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/0.1362, allocations: 11.98 kB / 0.5302 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005254/0.1367, allocations: 119.8 kB / 0.5303 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.1367, allocations: 4 kB / 0.5303 GB, free: 12.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004416/0.1372, allocations: 72.02 kB / 0.5303 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.211e-05/0.1372, allocations: 20 kB / 0.5304 GB, free: 12.64 MB / 398.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.0003676/0.1376, allocations: 205.8 kB / 0.5306 GB, free: 12.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.1377, allocations: 47.66 kB / 0.5306 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007502/0.1384, allocations: 358.2 kB / 0.531 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.1384, allocations: 7.938 kB / 0.531 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1384, allocations: 3.938 kB / 0.531 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.1384, allocations: 3.984 kB / 0.531 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007003/0.1391, allocations: 485 kB / 0.5314 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-06/0.1392, allocations: 4 kB / 0.5314 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005299/0.1397, allocations: 91.89 kB / 0.5315 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.218e-05/0.1397, allocations: 7.984 kB / 0.5315 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/0.1397, allocations: 8 kB / 0.5315 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.516e-06/0.1397, allocations: 7.984 kB / 0.5315 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.1397, allocations: 0 / 0.5315 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000931/0.1407, allocations: 0.5758 MB / 0.5321 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.1408, allocations: 128.8 kB / 0.5322 GB, free: 10.63 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.089e-05/0.1409, allocations: 8 kB / 0.5322 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003281/0.1412, allocations: 27.97 kB / 0.5323 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.8e-05/0.1413, allocations: 23.97 kB / 0.5323 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.239e-05/0.1413, allocations: 11.98 kB / 0.5323 GB, free: 10.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.00063/0.142, allocations: 347.1 kB / 0.5326 GB, free: 10.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.142, allocations: 0 / 0.5326 GB, free: 10.22 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00047/0.1424, allocations: 103.8 kB / 0.5327 GB, free: 10.12 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.001504/0.1439, allocations: 1.124 MB / 0.5338 GB, free: 8.969 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008948/0.1448, allocations: 319.6 kB / 0.5341 GB, free: 8.656 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1448, allocations: 0 / 0.5341 GB, free: 8.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003134/0.1451, allocations: 155.7 kB / 0.5343 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006076/0.1458, allocations: 58.03 kB / 0.5343 GB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007406/0.1532, allocations: 4.314 MB / 0.5385 GB, free: 3.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005177/0.1537, allocations: 0.8587 MB / 0.5394 GB, free: 3.074 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000224/0.1539, allocations: 59.44 kB / 0.5394 GB, free: 3.016 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002619/0.1542, allocations: 171.4 kB / 0.5396 GB, free: 2.848 MB / 398.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1542, allocations: 0 / 0.5396 GB, free: 2.848 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0364/0.1906, allocations: 8.288 MB / 0.5477 GB, free: 10.72 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.809/9, allocations: 13.5 kB / 0.5477 GB, free: 10.71 MB / 414.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.06231981399469] Failed to read output from testmodel.py, exit status != 0: 9.077580990968272 9.100309646 8.974966388 Calling exit ...