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.1661/0.1661, allocations: 21.44 MB / 36.4 MB, free: 1.223 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.002029/0.002029, allocations: 182.4 kB / 42.62 MB, free: 3.965 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.702/1.702, allocations: 205.4 MB / 254.1 MB, free: 15.28 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.001014/0.001014, allocations: 86.92 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002856/0.0002857, allocations: 11.14 kB / 373.2 MB, free: 59.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08763/0.08794, allocations: 52.96 MB / 426.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.0008091/0.08878, allocations: 0.667 MB / 426.8 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001098/0.0899, allocations: 1.211 MB / 428.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.876e-05/0.09, allocations: 0 / 428.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002387/0.09025, allocations: 27.89 kB / 428.1 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000118/0.09038, allocations: 47.75 kB / 428.1 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.09054, allocations: 55.86 kB / 428.2 MB, free: 11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.09067, allocations: 107.8 kB / 428.3 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.253e-05/0.09077, allocations: 33.41 kB / 428.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.09091, allocations: 91.72 kB / 428.4 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.09104, allocations: 79.72 kB / 428.5 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.185e-05/0.09107, allocations: 4 kB / 428.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.888e-05/0.09109, allocations: 4 kB / 428.5 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.055e-05/0.09115, allocations: 47.86 kB / 428.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.615e-05/0.09118, allocations: 41.64 kB / 428.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.7e-05/0.09127, allocations: 95.81 kB / 428.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.09128, allocations: 0 / 428.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.09129, allocations: 0 / 428.7 MB, free: 10.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.0913, allocations: 0 / 428.7 MB, free: 10.5 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.0009609/0.09226, allocations: 0.5102 MB / 429.2 MB, free: 9.941 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.0923, allocations: 8.031 kB / 429.2 MB, free: 9.934 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.528e-05/0.09235, allocations: 15.81 kB / 429.2 MB, free: 9.918 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004808/0.09284, allocations: 286.7 kB / 429.5 MB, free: 9.598 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.09287, allocations: 4 kB / 429.5 MB, free: 9.594 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.0929, allocations: 8 kB / 429.5 MB, free: 9.586 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001903/0.09309, allocations: 119.8 kB / 429.6 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.09311, allocations: 0 / 429.6 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.09313, allocations: 0 / 429.6 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.09314, allocations: 4 kB / 429.6 MB, free: 9.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.09334, allocations: 99.92 kB / 429.7 MB, free: 9.363 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005818/0.09393, allocations: 460.5 kB / 430.2 MB, free: 8.863 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003206/0.09427, allocations: 162.4 kB / 430.3 MB, free: 8.695 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.09429, allocations: 224 / 430.3 MB, free: 8.695 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.341e-05/0.09431, allocations: 34.5 kB / 430.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 9.32e-07/0.09432, allocations: 0 / 430.4 MB, free: 8.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0009042/0.09523, allocations: 399.3 kB / 430.8 MB, free: 8.234 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.038e-05/0.09526, allocations: 55.41 kB / 430.8 MB, free: 8.168 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004058/0.09568, allocations: 250.6 kB / 431.1 MB, free: 7.914 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.0957, allocations: 29.7 kB / 431.1 MB, free: 7.879 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.671e-05/0.09576, allocations: 112 kB / 431.2 MB, free: 7.766 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.555e-05/0.0958, allocations: 47.38 kB / 431.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-06/0.09582, allocations: 0 / 431.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.871e-05/0.09587, allocations: 330.8 kB / 431.6 MB, free: 7.387 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.494e-05/0.09597, allocations: 47.97 kB / 431.6 MB, free: 7.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.335e-05/0.09606, allocations: 55.91 kB / 431.7 MB, free: 7.285 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001063/0.09618, allocations: 59.97 kB / 431.7 MB, free: 7.227 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.09619, allocations: 7.875 kB / 431.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003884/0.09658, allocations: 226.2 kB / 431.9 MB, free: 6.988 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.0966, allocations: 8 kB / 432 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.09661, allocations: 0 / 432 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001976/0.09681, allocations: 56.8 kB / 432 MB, free: 6.922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.09e-05/0.09691, allocations: 19.94 kB / 432 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009021/0.09782, allocations: 1.515 MB / 433.5 MB, free: 5.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002089/0.09805, allocations: 31.86 kB / 433.6 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.09807, allocations: 4 kB / 433.6 MB, free: 5.211 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.0982, allocations: 145.8 kB / 433.7 MB, free: 5.059 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.291e-05/0.09824, allocations: 11.81 kB / 433.7 MB, free: 5.047 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.599e-05/0.09829, allocations: 25.39 kB / 433.8 MB, free: 5.023 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.0983, allocations: 4 kB / 433.8 MB, free: 5.02 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.09831, allocations: 0 / 433.8 MB, free: 5.02 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.09831, allocations: 0 / 433.8 MB, free: 5.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.09851, allocations: 245.5 kB / 434 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.09852, allocations: 0 / 434 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001092/0.09864, allocations: 15.98 kB / 434 MB, free: 4.715 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000149/0.09879, allocations: 56.75 kB / 434.1 MB, free: 4.656 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.09882, allocations: 8 kB / 434.1 MB, free: 4.648 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008754/0.0997, allocations: 1.507 MB / 435.6 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.09972, allocations: 0 / 435.6 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004985/0.1002, allocations: 376.2 kB / 436 MB, free: 2.625 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.1003, allocations: 104.8 kB / 436.1 MB, free: 2.504 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.1e-05/0.1003, allocations: 4.062 kB / 436.1 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002279/0.1005, allocations: 31.95 kB / 436.1 MB, free: 2.469 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.286e-05/0.1006, allocations: 11.98 kB / 436.1 MB, free: 2.457 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-06/0.1006, allocations: 0 / 436.1 MB, free: 2.457 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003495/0.101, allocations: 204.2 kB / 436.3 MB, free: 2.258 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.101, allocations: 0 / 436.3 MB, free: 2.258 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002488/0.1012, allocations: 35.95 kB / 436.3 MB, free: 2.223 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.801e-05/0.1013, allocations: 99.69 kB / 436.4 MB, free: 2.117 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003965/0.1017, allocations: 266.4 kB / 436.7 MB, free: 1.844 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1017, allocations: 4 kB / 436.7 MB, free: 1.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002231/0.102, allocations: 198.6 kB / 436.9 MB, free: 1.633 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002013/0.1022, allocations: 16.17 kB / 436.9 MB, free: 1.617 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004669/0.1026, allocations: 387.2 kB / 437.3 MB, free: 1.211 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.1028, allocations: 0.74 MB / 438 MB, free: 456 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.858e-05/0.1029, allocations: 29 kB / 438.1 MB, free: 428 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.678e-05/0.1029, allocations: 19.38 kB / 438.1 MB, free: 408 kB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1029, allocations: 0 / 438.1 MB, free: 408 kB / 298.7 MB Notification: Performance of Templates: time 0.003862/0.1068, allocations: 1.681 MB / 439.8 MB, free: 14.71 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.MSL_loop_base.pipe 2>&1)