Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_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.Tuning_brushup.MSL_electrical_thermal_OpenLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_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.1072/0.1072, allocations: 21.44 MB / 36.39 MB, free: 1.234 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.001126/0.001125, allocations: 186.4 kB / 42.63 MB, free: 3.961 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.461/1.461, allocations: 205.4 MB / 254.1 MB, free: 15.2 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.0007846/0.0007845, allocations: 93.05 kB / 307.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003688/0.0003689, allocations: 8.094 kB / 373.2 MB, free: 59.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1074, allocations: 52.97 MB / 426.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop): time 0.001972/0.1094, allocations: 1.797 MB / 428 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007166/0.1102, allocations: 0.5389 MB / 428.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.1103, allocations: 4 kB / 428.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.464e-05/0.1104, allocations: 23.84 kB / 428.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.1105, allocations: 67.78 kB / 428.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001347/0.1107, allocations: 31.97 kB / 428.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001718/0.1109, allocations: 151.7 kB / 428.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.111, allocations: 78.56 kB / 428.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.362e-05/0.1111, allocations: 59.8 kB / 428.9 MB, free: 10.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.1112, allocations: 79.67 kB / 429 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.679e-05/0.1113, allocations: 8 kB / 429 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.676e-05/0.1113, allocations: 11.94 kB / 429 MB, free: 10.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.173e-05/0.1113, allocations: 23.92 kB / 429 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.853e-05/0.1114, allocations: 61.58 kB / 429.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.1115, allocations: 159.5 kB / 429.3 MB, free: 9.922 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.1115, allocations: 0 / 429.3 MB, free: 9.922 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1115, allocations: 0 / 429.3 MB, free: 9.922 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.1115, allocations: 0 / 429.3 MB, free: 9.922 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.0005289/0.1121, allocations: 443.3 kB / 429.7 MB, free: 9.441 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.966e-05/0.1121, allocations: 8.031 kB / 429.7 MB, free: 9.434 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.017e-05/0.1122, allocations: 23.72 kB / 429.7 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.1124, allocations: 210.8 kB / 429.9 MB, free: 9.164 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.088e-05/0.1124, allocations: 12.44 kB / 429.9 MB, free: 9.152 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.561e-05/0.1124, allocations: 20 kB / 430 MB, free: 9.133 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.1127, allocations: 175.2 kB / 430.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.1128, allocations: 0 / 430.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.211e-05/0.1128, allocations: 11.94 kB / 430.1 MB, free: 8.945 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1128, allocations: 4 kB / 430.1 MB, free: 8.941 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.1131, allocations: 125.7 kB / 430.3 MB, free: 8.816 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008733/0.1139, allocations: 0.6758 MB / 430.9 MB, free: 8.074 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.1142, allocations: 130.5 kB / 431.1 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.1142, allocations: 3.984 kB / 431.1 MB, free: 7.934 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.517e-05/0.1143, allocations: 34.5 kB / 431.1 MB, free: 7.891 MB / 298.7 MB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.1143, allocations: 0 / 431.1 MB, free: 7.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.0003663/0.1146, allocations: 177.6 kB / 431.3 MB, free: 7.711 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.1147, allocations: 55.41 kB / 431.3 MB, free: 7.645 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.99e-05/0.1147, allocations: 125.8 kB / 431.5 MB, free: 7.512 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.1148, allocations: 25.7 kB / 431.5 MB, free: 7.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.289e-05/0.1148, allocations: 136 kB / 431.6 MB, free: 7.344 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.971e-05/0.1148, allocations: 51.27 kB / 431.7 MB, free: 7.293 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-06/0.1149, allocations: 4 kB / 431.7 MB, free: 7.289 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.211e-05/0.1149, allocations: 318.8 kB / 432 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.887e-05/0.115, allocations: 36.36 kB / 432 MB, free: 6.934 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.084e-05/0.1151, allocations: 84.03 kB / 432.1 MB, free: 6.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.082e-05/0.1152, allocations: 50.34 kB / 432.2 MB, free: 6.793 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1152, allocations: 0 / 432.2 MB, free: 6.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002222/0.1154, allocations: 157.5 kB / 432.3 MB, free: 6.633 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.1155, allocations: 8.031 kB / 432.3 MB, free: 6.625 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1155, allocations: 4 kB / 432.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.1155, allocations: 0 / 432.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.1156, allocations: 47.92 kB / 432.4 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1157, allocations: 7.938 kB / 432.4 MB, free: 6.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.553e-05/0.1158, allocations: 15.84 kB / 432.4 MB, free: 6.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.1158, allocations: 11.94 kB / 432.4 MB, free: 6.539 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.788e-05/0.1159, allocations: 129.8 kB / 432.5 MB, free: 6.402 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.863e-05/0.1159, allocations: 7.906 kB / 432.5 MB, free: 6.395 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.568e-05/0.1159, allocations: 24.83 kB / 432.6 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.116, allocations: 0 / 432.6 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.116, allocations: 0 / 432.6 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.116, allocations: 7.953 kB / 432.6 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002166/0.1162, allocations: 265.3 kB / 432.8 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1162, allocations: 0 / 432.8 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001784/0.1164, allocations: 31.98 kB / 432.9 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1164, allocations: 0 / 432.9 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.1164, allocations: 12 kB / 432.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1164, allocations: 0 / 432.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1164, allocations: 0 / 432.9 MB, free: 6.012 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003452/0.1168, allocations: 291.7 kB / 433.2 MB, free: 5.711 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.964e-05/0.1168, allocations: 88.95 kB / 433.2 MB, free: 5.605 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.132e-05/0.1168, allocations: 0 / 433.2 MB, free: 5.605 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.117, allocations: 16.05 kB / 433.3 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.311e-05/0.117, allocations: 15.92 kB / 433.3 MB, free: 5.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.654e-06/0.117, allocations: 4 kB / 433.3 MB, free: 5.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.82e-05/0.1171, allocations: 96.02 kB / 433.4 MB, free: 5.477 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1171, allocations: 0 / 433.4 MB, free: 5.477 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002455/0.1173, allocations: 47.84 kB / 433.4 MB, free: 5.43 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Cbody.T,Ccont.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.467e-05/0.1174, allocations: 110.9 kB / 433.5 MB, free: 5.312 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002177/0.1176, allocations: 113.6 kB / 433.6 MB, free: 5.203 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1177, allocations: 0 / 433.6 MB, free: 5.203 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.267e-05/0.1178, allocations: 51.92 kB / 433.7 MB, free: 5.152 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.118, allocations: 12 kB / 433.7 MB, free: 5.141 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008287/0.1189, allocations: 0.5624 MB / 434.3 MB, free: 4.543 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.119, allocations: 0.7281 MB / 435 MB, free: 3.789 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.893e-05/0.1191, allocations: 12.64 kB / 435 MB, free: 3.777 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.454e-05/0.1192, allocations: 19.38 kB / 435 MB, free: 3.762 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1192, allocations: 0 / 435 MB, free: 3.762 MB / 298.7 MB Notification: Performance of Templates: time 0.003145/0.1223, allocations: 1.069 MB / 436.1 MB, free: 2.695 MB / 298.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.makefile (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_OpenLoop.pipe 2>&1)