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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 110 kB / 16.41 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 191.7 kB / 19.35 MB, free: 3.734 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.1001/0.1001, allocations: 22.34 MB / 319.6 MB, free: 6.766 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 67.89 kB / 445.3 MB, free: 8.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.115, allocations: 54.95 MB / 0.4885 GB, free: 1.605 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.004718/0.1198, allocations: 2.961 MB / 0.4914 GB, free: 14.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002083/0.1219, allocations: 1.013 MB / 0.4924 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002936/0.1222, allocations: 8 kB / 0.4924 GB, free: 13.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005419/0.1228, allocations: 126.9 kB / 0.4925 GB, free: 13.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006076/0.1235, allocations: 186.8 kB / 0.4927 GB, free: 13.29 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.0005469/0.124, allocations: 271.6 kB / 0.4929 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007287/0.1248, allocations: 0.6132 MB / 0.4935 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003695/0.1251, allocations: 206.8 kB / 0.4937 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003484/0.1255, allocations: 247 kB / 0.494 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003387/0.1258, allocations: 258.7 kB / 0.4942 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.302e-05/0.1259, allocations: 51.94 kB / 0.4943 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001875/0.1261, allocations: 75.97 kB / 0.4943 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001805/0.1263, allocations: 143.6 kB / 0.4945 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002636/0.1266, allocations: 242.6 kB / 0.4947 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007275/0.1273, allocations: 0.5445 MB / 0.4952 GB, free: 10.65 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1273, allocations: 0 / 0.4952 GB, free: 10.65 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1274, allocations: 0 / 0.4952 GB, free: 10.65 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.1274, allocations: 0 / 0.4952 GB, free: 10.65 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.001965/0.1293, allocations: 0.8764 MB / 0.4961 GB, free: 9.723 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1294, allocations: 12.03 kB / 0.4961 GB, free: 9.711 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.1295, allocations: 78.7 kB / 0.4962 GB, free: 9.625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.1296, allocations: 60.56 kB / 0.4962 GB, free: 9.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008584/0.1305, allocations: 459.7 kB / 0.4967 GB, free: 9.074 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.036e-05/0.1306, allocations: 37.38 kB / 0.4967 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.599e-05/0.1306, allocations: 40.38 kB / 0.4968 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008213/0.1315, allocations: 428.8 kB / 0.4972 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.1315, allocations: 0 / 0.4972 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.772e-05/0.1315, allocations: 16 kB / 0.4972 GB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.43e-05/0.1316, allocations: 12 kB / 0.4972 GB, free: 8.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006724/0.1323, allocations: 287.8 kB / 0.4975 GB, free: 8.254 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.002431/0.1347, allocations: 1.713 MB / 0.4991 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005889/0.1353, allocations: 267.9 kB / 0.4994 GB, free: 6.133 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003214/0.1356, allocations: 164.1 kB / 0.4996 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.1357, allocations: 4.328 kB / 0.4996 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.1357, allocations: 34.89 kB / 0.4996 GB, free: 5.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.134e-06/0.1357, allocations: 0 / 0.4996 GB, free: 5.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009961/0.1367, allocations: 406.8 kB / 0.5 GB, free: 5.523 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.1368, allocations: 55.41 kB / 0.5 GB, free: 5.457 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007855/0.1376, allocations: 477.5 kB / 0.5005 GB, free: 4.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.1376, allocations: 33.7 kB / 0.5005 GB, free: 4.941 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002151/0.1379, allocations: 264.5 kB / 0.5008 GB, free: 4.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.138, allocations: 150.7 kB / 0.5009 GB, free: 4.531 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.1381, allocations: 98.2 kB / 0.501 GB, free: 4.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001889/0.1383, allocations: 358.8 kB / 0.5013 GB, free: 4.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003026/0.1386, allocations: 113.1 kB / 0.5015 GB, free: 3.957 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/0.139, allocations: 256.4 kB / 0.5017 GB, free: 3.66 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002382/0.1414, allocations: 0.8981 MB / 0.5026 GB, free: 2.676 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.1415, allocations: 7.938 kB / 0.5026 GB, free: 2.668 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008886/0.1423, allocations: 463.6 kB / 0.503 GB, free: 2.207 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1424, allocations: 4 kB / 0.503 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1424, allocations: 4 kB / 0.503 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.037e-05/0.1424, allocations: 8 kB / 0.503 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005232/0.1429, allocations: 123.8 kB / 0.5032 GB, free: 2.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/0.143, allocations: 15.92 kB / 0.5032 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003835/0.1434, allocations: 71.91 kB / 0.5032 GB, free: 1.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.598e-05/0.1434, allocations: 20 kB / 0.5033 GB, free: 1.965 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.0003113/0.1437, allocations: 209.9 kB / 0.5035 GB, free: 1.754 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.147e-05/0.1438, allocations: 43.72 kB / 0.5035 GB, free: 1.711 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007005/0.1445, allocations: 366.8 kB / 0.5039 GB, free: 1.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1445, allocations: 4 kB / 0.5039 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.1446, allocations: 0 / 0.5039 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.1446, allocations: 7.984 kB / 0.5039 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005794/0.1451, allocations: 469.1 kB / 0.5043 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1452, allocations: 4 kB / 0.5043 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005099/0.1457, allocations: 95.89 kB / 0.5044 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.1457, allocations: 4 kB / 0.5044 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.168e-05/0.1457, allocations: 12 kB / 0.5044 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.1457, allocations: 7.922 kB / 0.5044 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1458, allocations: 4 kB / 0.5044 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008912/0.1466, allocations: 0.56 MB / 0.505 GB, free: 124 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2354/0.3821, allocations: 134.4 kB / 0.5051 GB, free: 20.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.3823, allocations: 9.906 kB / 0.5051 GB, free: 20.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.3827, allocations: 29.19 kB / 0.5051 GB, free: 20.71 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.312e-05/0.3828, allocations: 26.75 kB / 0.5052 GB, free: 20.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.349e-05/0.3828, allocations: 9.141 kB / 0.5052 GB, free: 20.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005694/0.3834, allocations: 339.2 kB / 0.5055 GB, free: 20.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3834, allocations: 0 / 0.5055 GB, free: 20.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005278/0.3839, allocations: 106.1 kB / 0.5056 GB, free: 20.63 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.001016/0.385, allocations: 1.13 MB / 0.5067 GB, free: 19.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006539/0.3856, allocations: 332.2 kB / 0.507 GB, free: 19.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3857, allocations: 1.25 kB / 0.507 GB, free: 19.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002229/0.3859, allocations: 161.9 kB / 0.5072 GB, free: 19.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004592/0.3863, allocations: 57.44 kB / 0.5072 GB, free: 19.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005484/0.3918, allocations: 4.313 MB / 0.5115 GB, free: 18.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003077/0.3922, allocations: 0.8594 MB / 0.5123 GB, free: 17.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002193/0.3924, allocations: 57.36 kB / 0.5123 GB, free: 17.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000227/0.3927, allocations: 169.3 kB / 0.5125 GB, free: 17.39 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3927, allocations: 0 / 0.5125 GB, free: 17.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/0.4293, allocations: 8.246 MB / 0.5206 GB, free: 16.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.612/9.041, allocations: 6.656 kB / 0.5206 GB, free: 16.59 MB / 382.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: 11.90843811200466] Failed to read output from testmodel.py, exit status != 0: 9.115664070937783 9.13909345 9.007686117 Calling exit ...