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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00577/0.00577, allocations: 97.62 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00143/0.001429, allocations: 201.3 kB / 16.68 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2365/0.2365, allocations: 22.37 MB / 312.9 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002205/0.002205, allocations: 72.64 kB / 436.6 MB, free: 34.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.107, allocations: 54.96 MB / 491.6 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.00368/0.1108, allocations: 2.981 MB / 494.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.1126, allocations: 1.005 MB / 495.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002237/0.1128, allocations: 11.94 kB / 495.6 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000546/0.1134, allocations: 130.9 kB / 495.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005244/0.1139, allocations: 186.8 kB / 495.9 MB, free: 13.39 MB / 366.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.0004259/0.1144, allocations: 263.6 kB / 496.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000589/0.115, allocations: 0.6132 MB / 496.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003218/0.1153, allocations: 206.8 kB / 496.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002622/0.1156, allocations: 247 kB / 497.2 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002654/0.1159, allocations: 258.7 kB / 497.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.384e-05/0.1159, allocations: 44 kB / 497.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.1161, allocations: 83.95 kB / 497.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.1162, allocations: 139.5 kB / 497.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001869/0.1164, allocations: 246.6 kB / 497.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005405/0.117, allocations: 0.5406 MB / 498.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.117, allocations: 0 / 498.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.117, allocations: 0 / 498.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.117, allocations: 0 / 498.5 MB, free: 10.76 MB / 366.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.00169/0.1187, allocations: 0.8764 MB / 499.3 MB, free: 9.836 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.1187, allocations: 12.03 kB / 499.4 MB, free: 9.824 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.871e-05/0.1188, allocations: 78.7 kB / 499.4 MB, free: 9.738 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.254e-05/0.1189, allocations: 64.56 kB / 499.5 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007146/0.1196, allocations: 455.7 kB / 499.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.322e-05/0.1197, allocations: 33.38 kB / 500 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.966e-05/0.1198, allocations: 52.36 kB / 0.4883 GB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006739/0.1204, allocations: 408.9 kB / 0.4887 GB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.1205, allocations: 7.938 kB / 0.4887 GB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.1205, allocations: 16 kB / 0.4887 GB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.1205, allocations: 12 kB / 0.4887 GB, free: 8.652 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006195/0.1212, allocations: 287.8 kB / 0.489 GB, free: 8.371 MB / 366.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.002024/0.1232, allocations: 1.705 MB / 0.4907 GB, free: 6.527 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004583/0.1237, allocations: 280 kB / 0.4909 GB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.124, allocations: 157.5 kB / 0.4911 GB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.879e-05/0.124, allocations: 8.328 kB / 0.4911 GB, free: 6.082 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.1241, allocations: 38.89 kB / 0.4911 GB, free: 6.035 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.613e-06/0.1241, allocations: 0 / 0.4911 GB, free: 6.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009316/0.125, allocations: 406.8 kB / 0.4915 GB, free: 5.633 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.125, allocations: 59.41 kB / 0.4916 GB, free: 5.562 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006939/0.1257, allocations: 473.5 kB / 0.492 GB, free: 5.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.1258, allocations: 37.7 kB / 0.4921 GB, free: 5.047 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.1259, allocations: 260.5 kB / 0.4923 GB, free: 4.789 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.118e-05/0.126, allocations: 154.7 kB / 0.4925 GB, free: 4.637 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.1262, allocations: 94.2 kB / 0.4926 GB, free: 4.539 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1263, allocations: 362.8 kB / 0.4929 GB, free: 4.176 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002589/0.1266, allocations: 113.1 kB / 0.493 GB, free: 4.062 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003274/0.1269, allocations: 248.6 kB / 0.4932 GB, free: 3.773 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002198/0.1291, allocations: 0.9096 MB / 0.4941 GB, free: 2.777 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1292, allocations: 4 kB / 0.4941 GB, free: 2.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007771/0.1299, allocations: 459.4 kB / 0.4946 GB, free: 2.316 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.13, allocations: 8.5 kB / 0.4946 GB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.13, allocations: 8 kB / 0.4946 GB, free: 2.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.13, allocations: 8 kB / 0.4946 GB, free: 2.293 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004999/0.1305, allocations: 119.8 kB / 0.4947 GB, free: 2.176 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.1305, allocations: 4 kB / 0.4947 GB, free: 2.172 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003599/0.1309, allocations: 67.59 kB / 0.4948 GB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.653e-05/0.1309, allocations: 32 kB / 0.4948 GB, free: 2.074 MB / 366.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.0002708/0.1312, allocations: 202.8 kB / 0.495 GB, free: 1.867 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.82e-05/0.1313, allocations: 43.72 kB / 0.495 GB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006323/0.1319, allocations: 374.8 kB / 0.4954 GB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.132, allocations: 4 kB / 0.4954 GB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.132, allocations: 0 / 0.4954 GB, free: 1.441 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.132, allocations: 3.984 kB / 0.4954 GB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005077/0.1325, allocations: 477.1 kB / 0.4959 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.9e-06/0.1325, allocations: 3.984 kB / 0.4959 GB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005051/0.133, allocations: 91.89 kB / 0.496 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.133, allocations: 3.984 kB / 0.496 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.1331, allocations: 12 kB / 0.496 GB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.1331, allocations: 8 kB / 0.496 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1331, allocations: 0 / 0.496 GB, free: 0.8047 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007652/0.1339, allocations: 0.5677 MB / 0.4965 GB, free: 228 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001128/0.134, allocations: 128.8 kB / 0.4967 GB, free: 80 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.713e-05/0.134, allocations: 8 kB / 0.4967 GB, free: 72 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.1344, allocations: 31.97 kB / 0.4967 GB, free: 40 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.34e-05/0.1344, allocations: 23.97 kB / 0.4967 GB, free: 16 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.237e-05/0.1345, allocations: 11.98 kB / 0.4967 GB, free: 4 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00056/0.135, allocations: 347.1 kB / 0.4971 GB, free: 15.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1351, allocations: 0 / 0.4971 GB, free: 15.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004178/0.1355, allocations: 104 kB / 0.4972 GB, free: 15.57 MB / 382.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.001097/0.1366, allocations: 1.128 MB / 0.4983 GB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006426/0.1372, allocations: 327.4 kB / 0.4986 GB, free: 14.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.1373, allocations: 3.938 kB / 0.4986 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002336/0.1375, allocations: 168.1 kB / 0.4987 GB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.138, allocations: 59.27 kB / 0.4988 GB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005786/0.1438, allocations: 4.315 MB / 0.503 GB, free: 9.375 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003749/0.1442, allocations: 0.8587 MB / 0.5038 GB, free: 8.484 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001966/0.1444, allocations: 59.42 kB / 0.5039 GB, free: 8.426 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/0.1446, allocations: 175.4 kB / 0.5041 GB, free: 8.254 MB / 382.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1446, allocations: 0 / 0.5041 GB, free: 8.254 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02686/0.1715, allocations: 8.247 MB / 0.5121 GB, free: 168 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.16/8.332, allocations: 14.16 kB / 0.5121 GB, free: 156 kB / 382.1 MB (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)