Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.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_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") translateModel(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control") [/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.1235/0.1235, allocations: 21.46 MB / 36.42 MB, free: 1.152 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.0009326/0.0009324, allocations: 178.5 kB / 42.65 MB, free: 3.996 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.412/1.412, allocations: 205.4 MB / 254.1 MB, free: 15.48 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.0007309/0.0007312, allocations: 96.67 kB / 307.8 MB, free: 11.3 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003354/0.0003354, allocations: 8.125 kB / 373.3 MB, free: 59.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0953/0.09566, allocations: 52.96 MB / 426.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.003013/0.09872, allocations: 2.687 MB / 428.9 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001574/0.1003, allocations: 0.8894 MB / 429.8 MB, free: 9.691 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004234/0.1008, allocations: 12 kB / 429.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002356/0.101, allocations: 47.56 kB / 429.9 MB, free: 9.633 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003237/0.1014, allocations: 87.27 kB / 429.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.1018, allocations: 135.8 kB / 430.1 MB, free: 9.414 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004085/0.1022, allocations: 434.9 kB / 430.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002647/0.1025, allocations: 149.4 kB / 430.6 MB, free: 8.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002177/0.1027, allocations: 123.4 kB / 430.8 MB, free: 8.719 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.1029, allocations: 139.2 kB / 430.9 MB, free: 8.582 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.1029, allocations: 16 kB / 430.9 MB, free: 8.566 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.36e-05/0.103, allocations: 16 kB / 430.9 MB, free: 8.551 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.727e-05/0.103, allocations: 59.69 kB / 431 MB, free: 8.492 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.595e-05/0.1031, allocations: 89.52 kB / 431.1 MB, free: 8.398 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002389/0.1033, allocations: 339 kB / 431.4 MB, free: 8.066 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1033, allocations: 0 / 431.4 MB, free: 8.066 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1033, allocations: 0 / 431.4 MB, free: 8.066 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.1034, allocations: 0 / 431.4 MB, free: 8.066 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: 87 * Number of variables: 87 Notification: Performance of Generate backend data structure: time 0.0008201/0.1042, allocations: 0.6237 MB / 432 MB, free: 7.395 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1042, allocations: 16.02 kB / 432 MB, free: 7.379 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.868e-05/0.1043, allocations: 43.53 kB / 432.1 MB, free: 7.336 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.1047, allocations: 314.2 kB / 432.4 MB, free: 6.984 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.1047, allocations: 29 kB / 432.4 MB, free: 6.957 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.1047, allocations: 47.83 kB / 432.5 MB, free: 6.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005486/0.1053, allocations: 363.9 kB / 432.8 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.1053, allocations: 0 / 432.8 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.254e-05/0.1054, allocations: 16 kB / 432.8 MB, free: 6.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1054, allocations: 12 kB / 432.9 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000444/0.1058, allocations: 255.8 kB / 433.1 MB, free: 6.258 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001563/0.1074, allocations: 1.319 MB / 434.4 MB, free: 4.852 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005783/0.108, allocations: 304.2 kB / 434.7 MB, free: 4.547 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000195/0.1082, allocations: 125.2 kB / 434.8 MB, free: 4.422 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.538e-05/0.1082, allocations: 8.188 kB / 434.8 MB, free: 4.414 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.1083, allocations: 34.8 kB / 434.9 MB, free: 4.371 MB / 298.7 MB Notification: Performance of pre-optimization done (n=27): time 1.402e-06/0.1083, allocations: 0 / 434.9 MB, free: 4.371 MB / 298.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006684/0.109, allocations: 340.2 kB / 435.2 MB, free: 4.035 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.33e-05/0.109, allocations: 85.11 kB / 435.3 MB, free: 3.934 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.1092, allocations: 267.3 kB / 435.6 MB, free: 3.668 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.126e-05/0.1092, allocations: 29.7 kB / 435.6 MB, free: 3.633 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1093, allocations: 224 kB / 435.8 MB, free: 3.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.098e-05/0.1094, allocations: 94.58 kB / 435.9 MB, free: 3.316 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.394e-05/0.1094, allocations: 12 kB / 435.9 MB, free: 3.305 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.1095, allocations: 334.8 kB / 436.2 MB, free: 2.969 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001673/0.1097, allocations: 87.95 kB / 436.3 MB, free: 2.883 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001859/0.1099, allocations: 146.8 kB / 436.5 MB, free: 2.715 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001831/0.1101, allocations: 108 kB / 436.6 MB, free: 2.609 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1101, allocations: 0 / 436.6 MB, free: 2.609 MB / 298.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004626/0.1105, allocations: 309.6 kB / 436.9 MB, free: 2.301 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.722e-05/0.1106, allocations: 140.4 kB / 437 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1106, allocations: 0 / 437 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.859e-05/0.1106, allocations: 8 kB / 437 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002689/0.1109, allocations: 71.91 kB / 437.1 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.1109, allocations: 3.938 kB / 437.1 MB, free: 2.059 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.1111, allocations: 35.73 kB / 437.1 MB, free: 2.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.1111, allocations: 12 kB / 437.1 MB, free: 2.012 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.44e-06/0.1112, allocations: 4 kB / 437.1 MB, free: 2.008 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00031/0.1115, allocations: 227.8 kB / 437.4 MB, free: 1.785 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-06/0.1115, allocations: 4 kB / 437.4 MB, free: 1.781 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.726e-06/0.1115, allocations: 0 / 437.4 MB, free: 1.781 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002269/0.1117, allocations: 63.91 kB / 437.4 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1117, allocations: 7.953 kB / 437.4 MB, free: 1.711 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.1119, allocations: 23.97 kB / 437.5 MB, free: 1.688 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.1119, allocations: 19.98 kB / 437.5 MB, free: 1.668 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 36 * 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 0.0001384/0.1121, allocations: 233 kB / 437.7 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.909e-05/0.1121, allocations: 27.62 kB / 437.7 MB, free: 1.402 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004686/0.1126, allocations: 284.8 kB / 438 MB, free: 1.113 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.1126, allocations: 8 kB / 438 MB, free: 1.105 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.1126, allocations: 11.89 kB / 438 MB, free: 1.094 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.1126, allocations: 0 / 438 MB, free: 1.094 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003228/0.113, allocations: 401.1 kB / 438.4 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.113, allocations: 4 kB / 438.4 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/0.1132, allocations: 63.91 kB / 438.5 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.1132, allocations: 0 / 438.5 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.1133, allocations: 4 kB / 438.5 MB, free: 0.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1133, allocations: 4 kB / 438.5 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1133, allocations: 4 kB / 438.5 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005802/0.1139, allocations: 475 kB / 439 MB, free: 96 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.114, allocations: 132.7 kB / 439.1 MB, free: 15.95 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.114, allocations: 11.94 kB / 439.1 MB, free: 15.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.1142, allocations: 23.92 kB / 439.1 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.329e-05/0.1143, allocations: 7.984 kB / 439.1 MB, free: 15.9 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.1143, allocations: 12 kB / 439.2 MB, free: 15.89 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001672/0.1145, allocations: 190 kB / 439.3 MB, free: 15.71 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1145, allocations: 0 / 439.3 MB, free: 15.71 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004173/0.1149, allocations: 155.3 kB / 439.5 MB, free: 15.55 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Cbody.T,PID.I.y,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 (28): * Single equations (assignments): 28 * 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 0.0001094/0.115, allocations: 107 kB / 439.6 MB, free: 15.44 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006152/0.1157, allocations: 352 kB / 439.9 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1157, allocations: 0 / 439.9 MB, free: 15.1 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.1159, allocations: 116.3 kB / 440.1 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005164/0.1164, allocations: 68.92 kB / 440.1 MB, free: 14.92 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.1177, allocations: 0.9297 MB / 441 MB, free: 13.96 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003255/0.118, allocations: 0.7956 MB / 441.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.1182, allocations: 50.88 kB / 441.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.479e-05/0.1183, allocations: 23.44 kB / 441.9 MB, free: 13.07 MB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1183, allocations: 4 kB / 441.9 MB, free: 13.06 MB / 314.7 MB Notification: Performance of Templates: time 0.00565/0.124, allocations: 2.851 MB / 444.8 MB, free: 10.21 MB / 314.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.makefile (rm -f AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)