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: translateModel(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01") translateModel(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00149/0.001491, allocations: 103.4 kB / 16.4 MB, free: 6.496 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.001942/0.001942, allocations: 192.1 kB / 17.34 MB, free: 5.738 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.576/1.576, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09312/0.09312, allocations: 22.32 MB / 313.5 MB, free: 8.895 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 67.89 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09351/0.0949, allocations: 54.95 MB / 492.7 MB, free: 4.762 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.004011/0.09895, allocations: 2.974 MB / 495.6 MB, free: 1.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.1009, allocations: 1.009 MB / 496.7 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003514/0.1013, allocations: 11.94 kB / 496.7 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005243/0.1018, allocations: 130.9 kB / 496.8 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006792/0.1026, allocations: 186.8 kB / 497 MB, free: 436 kB / 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.0005564/0.1031, allocations: 267.6 kB / 497.2 MB, free: 168 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000776/0.1039, allocations: 0.6093 MB / 497.9 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003567/0.1043, allocations: 206.7 kB / 498.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003405/0.1046, allocations: 239.1 kB / 498.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004488/0.1051, allocations: 262.7 kB / 498.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.1052, allocations: 44 kB / 498.6 MB, free: 14.81 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002014/0.1054, allocations: 79.91 kB / 498.7 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001681/0.1056, allocations: 135.6 kB / 498.8 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002566/0.1059, allocations: 242.7 kB / 499 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006065/0.1065, allocations: 0.5448 MB / 499.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1065, allocations: 3.938 kB / 499.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1065, allocations: 0 / 499.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.053e-05/0.1066, allocations: 0 / 499.6 MB, free: 13.81 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.002064/0.1086, allocations: 0.8652 MB / 0.4887 GB, free: 12.89 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1087, allocations: 8.031 kB / 0.4887 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001378/0.1088, allocations: 64.17 kB / 0.4888 GB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000797/0.1096, allocations: 443.6 kB / 0.4892 GB, free: 12.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.081e-05/0.1097, allocations: 33.38 kB / 0.4892 GB, free: 12.32 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.738e-05/0.1098, allocations: 48.28 kB / 0.4893 GB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007614/0.1105, allocations: 425 kB / 0.4897 GB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.849e-05/0.1106, allocations: 3.938 kB / 0.4897 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.787e-05/0.1106, allocations: 24 kB / 0.4897 GB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.1106, allocations: 8 kB / 0.4897 GB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006428/0.1113, allocations: 291.8 kB / 0.49 GB, free: 11.52 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.002083/0.1134, allocations: 1.708 MB / 0.4917 GB, free: 9.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004723/0.1138, allocations: 275.8 kB / 0.4919 GB, free: 9.391 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.1141, allocations: 153.5 kB / 0.4921 GB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.1142, allocations: 12.33 kB / 0.4921 GB, free: 9.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.114e-05/0.1142, allocations: 34.89 kB / 0.4921 GB, free: 9.184 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 1.954e-06/0.1142, allocations: 0 / 0.4921 GB, free: 9.184 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.000918/0.1152, allocations: 406.5 kB / 0.4925 GB, free: 8.781 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.1152, allocations: 55.41 kB / 0.4926 GB, free: 8.715 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007407/0.116, allocations: 477.5 kB / 0.493 GB, free: 8.238 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.879e-05/0.116, allocations: 29.7 kB / 0.4931 GB, free: 8.203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.1162, allocations: 260 kB / 0.4933 GB, free: 7.945 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/0.1163, allocations: 142 kB / 0.4934 GB, free: 7.805 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.1165, allocations: 102.2 kB / 0.4935 GB, free: 7.699 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.1167, allocations: 358.7 kB / 0.4939 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.1169, allocations: 117.1 kB / 0.494 GB, free: 7.223 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003594/0.1173, allocations: 248.6 kB / 0.4942 GB, free: 6.934 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002337/0.1197, allocations: 0.9019 MB / 0.4951 GB, free: 5.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.1197, allocations: 3.938 kB / 0.4951 GB, free: 5.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008681/0.1206, allocations: 459.6 kB / 0.4955 GB, free: 5.488 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.1206, allocations: 4 kB / 0.4956 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.1206, allocations: 4 kB / 0.4956 GB, free: 5.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/0.1206, allocations: 11.98 kB / 0.4956 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005228/0.1212, allocations: 123.8 kB / 0.4957 GB, free: 5.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.1212, allocations: 8 kB / 0.4957 GB, free: 5.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/0.1216, allocations: 67.53 kB / 0.4958 GB, free: 5.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.619e-05/0.1216, allocations: 20 kB / 0.4958 GB, free: 5.254 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.000306/0.122, allocations: 199.6 kB / 0.496 GB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.675e-05/0.1221, allocations: 47.44 kB / 0.496 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006931/0.1228, allocations: 370.8 kB / 0.4964 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.073e-06/0.1228, allocations: 8 kB / 0.4964 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1228, allocations: 0 / 0.4964 GB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1228, allocations: 3.984 kB / 0.4964 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005736/0.1234, allocations: 472.9 kB / 0.4968 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.1234, allocations: 0 / 0.4968 GB, free: 4.105 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00052/0.1239, allocations: 103.8 kB / 0.4969 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.1239, allocations: 4 kB / 0.4969 GB, free: 4 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.689e-05/0.124, allocations: 11.98 kB / 0.4969 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.124, allocations: 0 / 0.4969 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.124, allocations: 0 / 0.4969 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008381/0.1248, allocations: 0.5674 MB / 0.4975 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.125, allocations: 132.5 kB / 0.4976 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/0.125, allocations: 8 kB / 0.4976 GB, free: 3.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000333/0.1254, allocations: 31.97 kB / 0.4977 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.982e-05/0.1255, allocations: 23.97 kB / 0.4977 GB, free: 3.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.387e-05/0.1255, allocations: 15.98 kB / 0.4977 GB, free: 3.176 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005921/0.1261, allocations: 335.1 kB / 0.498 GB, free: 2.855 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1261, allocations: 0 / 0.498 GB, free: 2.855 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004789/0.1266, allocations: 111.7 kB / 0.4981 GB, free: 2.746 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.0001762/0.1268, allocations: 123.4 kB / 0.4982 GB, free: 2.617 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006767/0.1274, allocations: 338.9 kB / 0.4986 GB, free: 2.285 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1275, allocations: 0 / 0.4986 GB, free: 2.285 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.1277, allocations: 151.8 kB / 0.4987 GB, free: 2.137 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004624/0.1282, allocations: 62.47 kB / 0.4988 GB, free: 2.074 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.1298, allocations: 1.036 MB / 0.4998 GB, free: 1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004282/0.1303, allocations: 0.8664 MB / 0.5006 GB, free: 108 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001476/0.1304, allocations: 39.44 kB / 0.5007 GB, free: 72 kB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1304, allocations: 0 / 0.5007 GB, free: 72 kB / 382.1 MB Notification: Performance of Templates: time 0.1984/0.3289, allocations: 5.442 MB / 0.506 GB, free: 21.27 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.makefile (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 & ./AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe 2>&1)