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_openLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop") translateModel(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09875/0.09875, allocations: 21.61 MB / 37.41 MB, free: 0.7617 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001037/0.001037, allocations: 188.5 kB / 43.64 MB, free: 3.57 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.448/1.448, allocations: 205.1 MB / 254.8 MB, free: 14.27 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009405/0.0009406, allocations: 117 kB / 307.6 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 56.33 kB / 372.3 MB, free: 59.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1046, allocations: 51.97 MB / 424.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop): time 0.002553/0.1072, allocations: 2.151 MB / 426.5 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002225/0.1075, allocations: 155.4 kB / 426.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.366e-05/0.1075, allocations: 4 kB / 426.6 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.764e-05/0.1076, allocations: 19.84 kB / 426.6 MB, free: 12.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.1077, allocations: 51.59 kB / 426.7 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000102/0.1078, allocations: 35.98 kB / 426.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000122/0.1079, allocations: 190.8 kB / 426.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.1081, allocations: 88.47 kB / 427 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.631e-05/0.1082, allocations: 63.78 kB / 427.1 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.642e-05/0.1083, allocations: 79.64 kB / 427.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.1083, allocations: 12 kB / 427.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.681e-05/0.1083, allocations: 12 kB / 427.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.339e-05/0.1083, allocations: 27.91 kB / 427.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.899e-05/0.1084, allocations: 95.58 kB / 427.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001206/0.1085, allocations: 187.4 kB / 427.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.1085, allocations: 0 / 427.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.1085, allocations: 0 / 427.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.686e-06/0.1086, allocations: 4 kB / 427.5 MB, free: 11.32 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0004215/0.109, allocations: 455 kB / 427.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.935e-05/0.109, allocations: 16.03 kB / 427.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.694e-05/0.1091, allocations: 16.75 kB / 427.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.418e-05/0.1092, allocations: 184.1 kB / 428.1 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.1092, allocations: 16.38 kB / 428.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.974e-05/0.1092, allocations: 16.38 kB / 428.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002286/0.1095, allocations: 158.1 kB / 428.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1095, allocations: 192 / 428.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.43e-05/0.1095, allocations: 15.94 kB / 428.3 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1095, allocations: 4 kB / 428.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001843/0.1097, allocations: 111.9 kB / 428.4 MB, free: 10.25 MB / 298.7 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.0006437/0.1103, allocations: 0.856 MB / 429.3 MB, free: 9.273 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001666/0.1105, allocations: 122.5 kB / 429.4 MB, free: 9.145 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001007/0.1106, allocations: 76.84 kB / 429.5 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.1107, allocations: 0 / 429.5 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.139e-05/0.1107, allocations: 34.56 kB / 429.5 MB, free: 9.023 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 8.72e-07/0.1107, allocations: 4 kB / 429.5 MB, free: 9.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0002947/0.111, allocations: 173.7 kB / 429.7 MB, free: 8.844 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.493e-05/0.111, allocations: 51.41 kB / 429.7 MB, free: 8.781 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.913e-05/0.1111, allocations: 125.7 kB / 429.9 MB, free: 8.648 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.347e-06/0.1111, allocations: 25.7 kB / 429.9 MB, free: 8.617 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.127e-05/0.1111, allocations: 128.2 kB / 430 MB, free: 8.484 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.1112, allocations: 59.11 kB / 430.1 MB, free: 8.426 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.314e-05/0.1112, allocations: 41.64 kB / 430.1 MB, free: 8.379 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.128e-05/0.1113, allocations: 326.8 kB / 430.4 MB, free: 8.051 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.207e-05/0.1113, allocations: 35.97 kB / 430.5 MB, free: 8.016 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.966e-05/0.1114, allocations: 76.22 kB / 430.5 MB, free: 7.926 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005212/0.112, allocations: 234.4 kB / 430.8 MB, free: 7.684 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.112, allocations: 0 / 430.8 MB, free: 7.684 MB / 298.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002123/0.1122, allocations: 165.4 kB / 430.9 MB, free: 7.516 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.1122, allocations: 4 kB / 430.9 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1122, allocations: 0 / 430.9 MB, free: 7.512 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.1122, allocations: 4 kB / 430.9 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001659/0.1124, allocations: 43.91 kB / 431 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.76e-06/0.1124, allocations: 4 kB / 431 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.963e-05/0.1125, allocations: 23.78 kB / 431 MB, free: 7.438 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/0.1125, allocations: 8.125 kB / 431 MB, free: 7.43 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: Cz1.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Cz2.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001688/0.1127, allocations: 159.6 kB / 431.2 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.1127, allocations: 7.906 kB / 431.2 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.941e-05/0.1128, allocations: 20.84 kB / 431.2 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1128, allocations: 0 / 431.2 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.1128, allocations: 0 / 431.2 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1128, allocations: 7.938 kB / 431.2 MB, free: 7.234 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.113, allocations: 249.5 kB / 431.5 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.113, allocations: 4 kB / 431.5 MB, free: 6.938 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000177/0.1132, allocations: 43.91 kB / 431.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1132, allocations: 0 / 431.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.1132, allocations: 0 / 431.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1132, allocations: 0 / 431.5 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1132, allocations: 3.938 kB / 431.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001502/0.1147, allocations: 1.669 MB / 433.2 MB, free: 5.086 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.387e-05/0.1147, allocations: 96.91 kB / 433.3 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.241e-05/0.1148, allocations: 4 kB / 433.3 MB, free: 4.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.432e-05/0.1149, allocations: 4 kB / 433.3 MB, free: 4.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.348e-05/0.1149, allocations: 16.05 kB / 433.3 MB, free: 4.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.1149, allocations: 4 kB / 433.3 MB, free: 4.945 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.133e-05/0.115, allocations: 95.2 kB / 433.4 MB, free: 4.852 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.115, allocations: 0 / 433.4 MB, free: 4.852 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003219/0.1153, allocations: 67.75 kB / 433.5 MB, free: 4.785 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cz1.T,Cz2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 8.245e-05/0.1154, allocations: 99.25 kB / 433.6 MB, free: 4.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002012/0.1156, allocations: 124.1 kB / 433.7 MB, free: 4.559 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1156, allocations: 4 kB / 433.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.866e-05/0.1157, allocations: 55.92 kB / 433.7 MB, free: 4.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002516/0.1159, allocations: 18.36 kB / 433.8 MB, free: 4.484 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008374/0.1168, allocations: 0.6522 MB / 434.4 MB, free: 3.797 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.117, allocations: 0.7166 MB / 435.1 MB, free: 3.055 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.1171, allocations: 16.64 kB / 435.1 MB, free: 3.035 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.1171, allocations: 15.44 kB / 435.2 MB, free: 3.02 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1172, allocations: 3.938 kB / 435.2 MB, free: 3.016 MB / 298.7 MB Notification: Performance of Templates: time 0.003308/0.1205, allocations: 1.314 MB / 436.5 MB, free: 1.703 MB / 298.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.sim & ./AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_openLoop.pipe 2>&1)