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 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 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.09564/0.09564, allocations: 21.61 MB / 36.56 MB, free: 1.07 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009533/0.0009533, allocations: 179.4 kB / 42.82 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.197/1.197, allocations: 223.2 MB / 272.1 MB, free: 1.391 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008252/0.0008252, allocations: 96.23 kB / 328.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003638/0.0003639, allocations: 8 kB / 397 MB, free: 46.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07722/0.0776, allocations: 55.82 MB / 452.9 MB, free: 6.637 MB / 314.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control): time 0.00279/0.08043, allocations: 2.58 MB / 455.5 MB, free: 4.039 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001078/0.08152, allocations: 0.7794 MB / 456.2 MB, free: 3.254 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.08168, allocations: 8 kB / 456.2 MB, free: 3.246 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 5.874e-05/0.08174, allocations: 39.64 kB / 456.3 MB, free: 3.207 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.08206, allocations: 131.5 kB / 456.4 MB, free: 3.078 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002792/0.08235, allocations: 143.8 kB / 456.5 MB, free: 2.938 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003663/0.08272, allocations: 339.9 kB / 456.9 MB, free: 2.605 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.08291, allocations: 116.3 kB / 457 MB, free: 2.492 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.08304, allocations: 111.7 kB / 457.1 MB, free: 2.383 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.0832, allocations: 131.4 kB / 457.2 MB, free: 2.254 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.786e-05/0.08325, allocations: 12 kB / 457.2 MB, free: 2.242 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.08329, allocations: 16 kB / 457.3 MB, free: 2.227 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.575e-05/0.08334, allocations: 55.7 kB / 457.3 MB, free: 2.172 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.366e-05/0.08341, allocations: 89.52 kB / 457.4 MB, free: 2.078 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.08367, allocations: 323.2 kB / 457.7 MB, free: 1.762 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.913e-06/0.08368, allocations: 0 / 457.7 MB, free: 1.762 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.08369, allocations: 7.938 kB / 457.7 MB, free: 1.754 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.0837, allocations: 0 / 457.7 MB, free: 1.754 MB / 314.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.0007803/0.08449, allocations: 0.6392 MB / 458.4 MB, free: 1.066 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.998e-05/0.08452, allocations: 8.031 kB / 458.4 MB, free: 1.059 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.804e-05/0.0846, allocations: 43.53 kB / 458.4 MB, free: 1.016 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003323/0.08493, allocations: 306.2 kB / 458.7 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.08497, allocations: 29 kB / 458.7 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.397e-05/0.08502, allocations: 28 kB / 458.8 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005488/0.08557, allocations: 375.9 kB / 459.1 MB, free: 236 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.0856, allocations: 0 / 459.1 MB, free: 236 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.064e-05/0.08563, allocations: 19.95 kB / 459.2 MB, free: 216 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.08565, allocations: 8 kB / 459.2 MB, free: 208 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004721/0.08612, allocations: 259.8 kB / 459.4 MB, free: 15.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.08778, allocations: 1.318 MB / 460.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000595/0.08839, allocations: 308.1 kB / 461 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.08843, allocations: 8.219 kB / 461 MB, free: 14.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.128e-05/0.08846, allocations: 38.8 kB / 461.1 MB, free: 14.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=27): time 1.323e-06/0.08846, allocations: 0 / 461.1 MB, free: 14.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=27): time 0.0006065/0.08908, allocations: 337.7 kB / 461.4 MB, free: 13.85 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.08913, allocations: 77.11 kB / 461.5 MB, free: 13.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002065/0.08934, allocations: 234.2 kB / 461.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.08937, allocations: 37.7 kB / 461.7 MB, free: 13.48 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.08949, allocations: 212.1 kB / 462 MB, free: 13.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.272e-05/0.08956, allocations: 98.56 kB / 462.1 MB, free: 13.17 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.195e-05/0.08958, allocations: 7.938 kB / 462.1 MB, free: 13.16 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.08969, allocations: 342.8 kB / 462.4 MB, free: 12.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.08987, allocations: 83.95 kB / 462.5 MB, free: 12.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.09008, allocations: 146.8 kB / 462.6 MB, free: 12.56 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000191/0.09028, allocations: 112.5 kB / 462.7 MB, free: 12.45 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.09029, allocations: 0 / 462.7 MB, free: 12.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0004694/0.09076, allocations: 309.1 kB / 463 MB, free: 12.14 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002035/0.09098, allocations: 0.6124 MB / 463.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.09099, allocations: 0 / 463.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.609e-05/0.09101, allocations: 4 kB / 463.6 MB, free: 11.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/0.09129, allocations: 71.91 kB / 463.7 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.09131, allocations: 7.953 kB / 463.7 MB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001718/0.09149, allocations: 39.67 kB / 463.8 MB, free: 11.36 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.09152, allocations: 12 kB / 463.8 MB, free: 11.35 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.692e-06/0.09153, allocations: 4 kB / 463.8 MB, free: 11.35 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003428/0.09188, allocations: 228.1 kB / 464 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.09189, allocations: 7.938 kB / 464 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.178e-06/0.0919, allocations: 4 kB / 464 MB, free: 11.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002347/0.09214, allocations: 59.91 kB / 464.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.498e-06/0.09215, allocations: 4 kB / 464.1 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001422/0.0923, allocations: 31.83 kB / 464.1 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.09232, allocations: 8 kB / 464.1 MB, free: 11.01 MB / 330.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.0001528/0.09248, allocations: 237 kB / 464.3 MB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.997e-05/0.09254, allocations: 31.62 kB / 464.4 MB, free: 10.74 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004945/0.09304, allocations: 280.7 kB / 464.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.828e-06/0.09305, allocations: 4 kB / 464.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.09306, allocations: 3.938 kB / 464.7 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.09307, allocations: 7.984 kB / 464.7 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003817/0.09346, allocations: 393.2 kB / 465.1 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.09347, allocations: 3.953 kB / 465.1 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002713/0.09374, allocations: 59.97 kB / 465.1 MB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.09376, allocations: 4 kB / 465.1 MB, free: 9.938 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.09378, allocations: 7.938 kB / 465.1 MB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.09379, allocations: 4 kB / 465.1 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.09379, allocations: 0 / 465.1 MB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006401/0.09444, allocations: 479 kB / 465.6 MB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.09456, allocations: 132.6 kB / 465.7 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.205e-05/0.0946, allocations: 4 kB / 465.7 MB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.0948, allocations: 23.98 kB / 465.8 MB, free: 9.266 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.606e-05/0.09484, allocations: 11.98 kB / 465.8 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.09486, allocations: 16 kB / 465.8 MB, free: 9.238 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001586/0.09503, allocations: 182 kB / 466 MB, free: 9.062 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.09504, allocations: 0 / 466 MB, free: 9.062 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004005/0.09544, allocations: 151.4 kB / 466.1 MB, free: 8.914 MB / 330.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 9.378e-05/0.09554, allocations: 107.2 kB / 466.2 MB, free: 8.801 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005679/0.09612, allocations: 340.3 kB / 466.5 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-06/0.09613, allocations: 0 / 466.5 MB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.09632, allocations: 124.4 kB / 466.7 MB, free: 8.348 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.09668, allocations: 56.61 kB / 466.7 MB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.09783, allocations: 0.9374 MB / 467.7 MB, free: 7.324 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.09815, allocations: 0.8035 MB / 468.5 MB, free: 6.496 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.09833, allocations: 34.91 kB / 468.5 MB, free: 6.465 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.331e-05/0.0984, allocations: 23.44 kB / 468.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.0984, allocations: 0 / 468.5 MB, free: 6.441 MB / 330.7 MB Notification: Performance of Templates: time 0.005154/0.1036, allocations: 2.857 MB / 471.4 MB, free: 3.617 MB / 330.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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_electrical_thermal_control.pipe 2>&1)