Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_base.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_loop_base,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_base") translateModel(AES.Coursework.Tuning_brushup.MSL_loop_base,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.MSL_loop_base") [/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.0932/0.0932, allocations: 21.6 MB / 37.4 MB, free: 0.7695 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.001043/0.001043, allocations: 188.5 kB / 43.63 MB, free: 3.566 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.286/1.286, allocations: 205.1 MB / 254.8 MB, free: 14.29 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.0009167/0.0009165, allocations: 100 kB / 307.5 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 49.22 kB / 372.3 MB, free: 59.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08903/0.09026, allocations: 51.98 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002005/0.09231, allocations: 1.029 MB / 425.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001069/0.0934, allocations: 1.238 MB / 426.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.485e-05/0.09348, allocations: 3.938 kB / 426.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002847/0.09377, allocations: 27.91 kB / 426.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001211/0.09391, allocations: 35.83 kB / 426.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001322/0.09405, allocations: 63.91 kB / 426.7 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.09424, allocations: 199.6 kB / 426.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.978e-05/0.09434, allocations: 33.42 kB / 426.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.66e-05/0.09444, allocations: 75.69 kB / 427 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001383/0.09458, allocations: 91.69 kB / 427.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.762e-05/0.09462, allocations: 4 kB / 427.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.984e-05/0.09464, allocations: 8 kB / 427.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.297e-05/0.09472, allocations: 47.89 kB / 427.2 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.098e-05/0.09478, allocations: 55.58 kB / 427.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.09489, allocations: 127.5 kB / 427.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.0949, allocations: 4 kB / 427.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.09491, allocations: 0 / 427.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.09492, allocations: 0 / 427.3 MB, free: 11.47 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0009845/0.09591, allocations: 0.526 MB / 427.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.09595, allocations: 8.031 kB / 427.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.09599, allocations: 20.75 kB / 427.9 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.09647, allocations: 275.9 kB / 428.2 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.09649, allocations: 8.312 kB / 428.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.287e-05/0.09652, allocations: 12.38 kB / 428.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001789/0.09671, allocations: 109.9 kB / 428.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.09673, allocations: 0 / 428.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.09674, allocations: 4 kB / 428.3 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.09675, allocations: 0 / 428.3 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.09696, allocations: 107.9 kB / 428.4 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005977/0.09757, allocations: 464.3 kB / 428.8 MB, free: 9.812 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000338/0.09792, allocations: 162.4 kB / 429 MB, free: 9.645 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.09804, allocations: 68.83 kB / 429.1 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.09806, allocations: 0 / 429.1 MB, free: 9.574 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.493e-05/0.09808, allocations: 34.56 kB / 429.1 MB, free: 9.531 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 9.71e-07/0.09809, allocations: 0 / 429.1 MB, free: 9.531 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0009137/0.099, allocations: 399.3 kB / 429.5 MB, free: 9.113 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.09904, allocations: 59.62 kB / 429.6 MB, free: 9.043 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004/0.09944, allocations: 254.5 kB / 429.8 MB, free: 8.785 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.09947, allocations: 25.7 kB / 429.8 MB, free: 8.754 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.176e-05/0.09951, allocations: 116 kB / 429.9 MB, free: 8.637 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.09955, allocations: 47.3 kB / 430 MB, free: 8.59 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.38e-05/0.0996, allocations: 29.66 kB / 430 MB, free: 8.555 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.715e-05/0.09966, allocations: 330.8 kB / 430.3 MB, free: 8.223 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.206e-05/0.09975, allocations: 51.95 kB / 430.4 MB, free: 8.172 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.067e-05/0.09984, allocations: 47.97 kB / 430.4 MB, free: 8.125 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009427/0.1008, allocations: 332.6 kB / 430.8 MB, free: 7.797 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1008, allocations: 0 / 430.8 MB, free: 7.797 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003833/0.1012, allocations: 246 kB / 431 MB, free: 7.547 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.1012, allocations: 4 kB / 431 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1012, allocations: 0 / 431 MB, free: 7.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002156/0.1014, allocations: 52.81 kB / 431.1 MB, free: 7.488 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.107e-05/0.1015, allocations: 15.98 kB / 431.1 MB, free: 7.473 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009344/0.1025, allocations: 1.503 MB / 432.6 MB, free: 5.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.1027, allocations: 35.92 kB / 432.6 MB, free: 5.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.1027, allocations: 12 kB / 432.6 MB, free: 5.781 MB / 298.7 MB Warning: Assuming fixed start value for the following 3 variables: Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (12): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001238/0.1029, allocations: 133.8 kB / 432.8 MB, free: 5.641 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.385e-05/0.1029, allocations: 11.81 kB / 432.8 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.701e-05/0.103, allocations: 25.39 kB / 432.8 MB, free: 5.605 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.103, allocations: 4 kB / 432.8 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.103, allocations: 7.938 kB / 432.8 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.103, allocations: 3.938 kB / 432.8 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001797/0.1032, allocations: 245.5 kB / 433 MB, free: 5.301 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1032, allocations: 0 / 433 MB, free: 5.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001043/0.1033, allocations: 15.98 kB / 433.1 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001379/0.1034, allocations: 52.81 kB / 433.1 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.1034, allocations: 4 kB / 433.1 MB, free: 5.227 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008376/0.1043, allocations: 1.503 MB / 434.6 MB, free: 3.594 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1043, allocations: 4.031 kB / 434.6 MB, free: 3.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003454/0.1078, allocations: 3.585 MB / 438.2 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.308e-05/0.1078, allocations: 92.86 kB / 438.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.733e-05/0.1079, allocations: 12.06 kB / 438.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.1081, allocations: 23.95 kB / 438.3 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.301e-05/0.1082, allocations: 11.98 kB / 438.3 MB, free: 15.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.568e-06/0.1082, allocations: 4.094 kB / 438.4 MB, free: 15.56 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003909/0.1086, allocations: 208.1 kB / 438.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1086, allocations: 0 / 438.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003577/0.109, allocations: 44 kB / 438.6 MB, free: 15.31 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1]) * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001108/0.1091, allocations: 103.2 kB / 438.7 MB, free: 15.2 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004986/0.1096, allocations: 250.5 kB / 438.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.738e-06/0.1096, allocations: 8 kB / 439 MB, free: 14.94 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002784/0.1099, allocations: 202.5 kB / 439.2 MB, free: 14.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.1102, allocations: 30.48 kB / 439.2 MB, free: 14.7 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008324/0.1111, allocations: 0.6568 MB / 439.8 MB, free: 14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002969/0.1114, allocations: 0.732 MB / 440.6 MB, free: 13.24 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.815e-05/0.1115, allocations: 29.06 kB / 440.6 MB, free: 13.21 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.68e-05/0.1115, allocations: 19.42 kB / 440.6 MB, free: 13.19 MB / 314.7 MB Notification: Performance of SimCode: time 2.304e-06/0.1115, allocations: 4 kB / 440.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of Templates: time 0.004804/0.1163, allocations: 2.364 MB / 443 MB, free: 10.82 MB / 314.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.makefile (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_base.sim & ./AES_AES.Coursework.Tuning_brushup.MSL_loop_base -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1)