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.1058/0.1058, allocations: 21.41 MB / 36.68 MB, free: 1.148 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.001039/0.001039, allocations: 176.5 kB / 42.85 MB, free: 3.875 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.546/1.546, allocations: 205 MB / 253.9 MB, free: 15.06 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.0006886/0.0006887, allocations: 103 kB / 307.2 MB, free: 11.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003727/0.0003728, allocations: 8.781 kB / 372.5 MB, free: 59.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09506/0.09544, allocations: 52.52 MB / 425 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_base): time 0.002016/0.0975, allocations: 1.037 MB / 426 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.09865, allocations: 1.23 MB / 427.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.736e-05/0.09874, allocations: 0 / 427.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003174/0.09907, allocations: 35.83 kB / 427.3 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000129/0.09922, allocations: 39.83 kB / 427.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001471/0.09938, allocations: 63.91 kB / 427.4 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001791/0.09957, allocations: 199.5 kB / 427.6 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.09968, allocations: 25.44 kB / 427.6 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.09979, allocations: 83.67 kB / 427.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001647/0.09996, allocations: 87.7 kB / 427.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.429e-05/0.1, allocations: 8 kB / 427.8 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.028e-05/0.1, allocations: 4 kB / 427.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.966e-05/0.1001, allocations: 47.88 kB / 427.8 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.373e-05/0.1002, allocations: 55.59 kB / 427.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.1003, allocations: 119.5 kB / 428 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1003, allocations: 3.938 kB / 428 MB, free: 11.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1004, allocations: 0 / 428 MB, free: 11.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.1004, allocations: 0 / 428 MB, free: 11.25 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.001031/0.1014, allocations: 0.526 MB / 428.5 MB, free: 10.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.1015, allocations: 16.02 kB / 428.6 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.1015, allocations: 16.75 kB / 428.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000472/0.102, allocations: 283.9 kB / 428.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.102, allocations: 4.375 kB / 428.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.944e-05/0.102, allocations: 12.31 kB / 428.9 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.1023, allocations: 120.6 kB / 429 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.1023, allocations: 0 / 429 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.1023, allocations: 0 / 429 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.1023, allocations: 8 kB / 429 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002116/0.1025, allocations: 99.92 kB / 429.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006367/0.1032, allocations: 468.3 kB / 429.6 MB, free: 9.578 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.1035, allocations: 154.5 kB / 429.7 MB, free: 9.418 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.1037, allocations: 64.83 kB / 429.8 MB, free: 9.352 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.583e-05/0.1037, allocations: 0 / 429.8 MB, free: 9.352 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.1037, allocations: 34.56 kB / 429.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 8.62e-07/0.1037, allocations: 0 / 429.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0009044/0.1046, allocations: 399.3 kB / 430.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.317e-05/0.1047, allocations: 55.61 kB / 430.2 MB, free: 8.824 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003929/0.1051, allocations: 246.5 kB / 430.5 MB, free: 8.574 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.1051, allocations: 25.7 kB / 430.5 MB, free: 8.543 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.529e-05/0.1051, allocations: 120 kB / 430.6 MB, free: 8.422 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.355e-05/0.1052, allocations: 43.3 kB / 430.7 MB, free: 8.379 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.455e-05/0.1052, allocations: 37.7 kB / 430.7 MB, free: 8.336 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.219e-05/0.1053, allocations: 330.8 kB / 431 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.191e-05/0.1054, allocations: 43.97 kB / 431.1 MB, free: 7.961 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.656e-05/0.1055, allocations: 55.95 kB / 431.1 MB, free: 7.906 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009508/0.1064, allocations: 336.6 kB / 431.5 MB, free: 7.574 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1064, allocations: 0 / 431.5 MB, free: 7.574 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003841/0.1068, allocations: 238 kB / 431.7 MB, free: 7.332 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.1068, allocations: 8 kB / 431.7 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.1069, allocations: 0 / 431.7 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/0.1071, allocations: 56.8 kB / 431.8 MB, free: 7.266 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.21e-05/0.1072, allocations: 16 kB / 431.8 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009856/0.1082, allocations: 1.503 MB / 433.3 MB, free: 5.605 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001985/0.1084, allocations: 35.83 kB / 433.3 MB, free: 5.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.1084, allocations: 4 kB / 433.3 MB, free: 5.566 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.0001285/0.1085, allocations: 137.8 kB / 433.4 MB, free: 5.422 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.417e-05/0.1086, allocations: 15.81 kB / 433.5 MB, free: 5.406 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.916e-05/0.1086, allocations: 21.41 kB / 433.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1086, allocations: 0 / 433.5 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.1086, allocations: 11.92 kB / 433.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1087, allocations: 3.938 kB / 433.5 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001923/0.1089, allocations: 249.5 kB / 433.7 MB, free: 5.078 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1089, allocations: 4 kB / 433.7 MB, free: 5.074 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001042/0.109, allocations: 12 kB / 433.8 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001431/0.1091, allocations: 60.8 kB / 433.8 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.341e-05/0.1091, allocations: 4 kB / 433.8 MB, free: 4.996 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008427/0.11, allocations: 1.499 MB / 435.3 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.11, allocations: 0 / 435.3 MB, free: 3.367 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004864/0.1105, allocations: 372 kB / 435.7 MB, free: 2.984 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.62e-05/0.1105, allocations: 96.86 kB / 435.8 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.996e-05/0.1106, allocations: 8.031 kB / 435.8 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.1108, allocations: 28.03 kB / 435.8 MB, free: 2.836 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.583e-05/0.1108, allocations: 11.98 kB / 435.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.1109, allocations: 0 / 435.8 MB, free: 2.824 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003517/0.1112, allocations: 200.2 kB / 436 MB, free: 2.629 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1112, allocations: 0 / 436 MB, free: 2.629 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002418/0.1115, allocations: 36 kB / 436.1 MB, free: 2.594 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 (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 8.747e-05/0.1116, allocations: 99.91 kB / 436.2 MB, free: 2.488 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004253/0.112, allocations: 262.4 kB / 436.4 MB, free: 2.219 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.112, allocations: 0 / 436.4 MB, free: 2.219 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002277/0.1122, allocations: 202.5 kB / 436.6 MB, free: 2.008 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.1125, allocations: 27.92 kB / 436.6 MB, free: 1.98 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005038/0.1131, allocations: 391 kB / 437 MB, free: 1.574 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001412/0.1132, allocations: 0.7244 MB / 437.7 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.834e-05/0.1133, allocations: 29.06 kB / 437.8 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.995e-05/0.1133, allocations: 19.42 kB / 437.8 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1134, allocations: 0 / 437.8 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of Templates: time 0.004055/0.1174, allocations: 1.733 MB / 439.5 MB, free: 15.05 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)