Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.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.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") translateModel(AES.Coursework.Tuning_brushup.Exploiting_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.Exploiting_2dof") [/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.09397/0.09397, allocations: 21.61 MB / 37.41 MB, free: 0.7656 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.00106/0.00106, allocations: 184.5 kB / 43.63 MB, free: 3.578 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.279/1.279, allocations: 205.1 MB / 254.8 MB, free: 14.26 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.0008647/0.0008647, allocations: 104.4 kB / 307.5 MB, free: 11.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 53.45 kB / 372.3 MB, free: 59.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07918/0.08039, allocations: 51.98 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.002323/0.08276, allocations: 1.356 MB / 425.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.08405, allocations: 1.432 MB / 427.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.506e-05/0.08416, allocations: 3.938 kB / 427.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.0845, allocations: 79.66 kB / 427.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.08473, allocations: 111.6 kB / 427.3 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.085, allocations: 187.7 kB / 427.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003136/0.08532, allocations: 0.4988 MB / 428 MB, free: 10.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001232/0.08545, allocations: 56.73 kB / 428 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.08561, allocations: 203.2 kB / 428.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002221/0.08584, allocations: 231.1 kB / 428.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.375e-05/0.08589, allocations: 19.94 kB / 428.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.594e-05/0.08593, allocations: 16 kB / 428.5 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.08605, allocations: 111.7 kB / 428.6 MB, free: 10.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.924e-05/0.08614, allocations: 135 kB / 428.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000193/0.08634, allocations: 310.8 kB / 429 MB, free: 9.766 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.08635, allocations: 0 / 429 MB, free: 9.766 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.08636, allocations: 4 kB / 429 MB, free: 9.762 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.08637, allocations: 0 / 429 MB, free: 9.762 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001957/0.08833, allocations: 0.8687 MB / 429.9 MB, free: 8.844 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.08837, allocations: 8.031 kB / 429.9 MB, free: 8.836 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.063e-05/0.08844, allocations: 40.38 kB / 430 MB, free: 8.797 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.08949, allocations: 490.1 kB / 430.4 MB, free: 8.277 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.08951, allocations: 12.7 kB / 430.4 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.286e-05/0.08955, allocations: 20.38 kB / 430.5 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002806/0.08984, allocations: 220.3 kB / 430.7 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.08986, allocations: 0 / 430.7 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.08988, allocations: 8 kB / 430.7 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.0899, allocations: 4 kB / 430.7 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003269/0.09023, allocations: 232.1 kB / 430.9 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.09126, allocations: 0.7577 MB / 431.7 MB, free: 6.98 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005445/0.09182, allocations: 326.3 kB / 432 MB, free: 6.652 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.092, allocations: 136.8 kB / 432.1 MB, free: 6.516 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.14e-05/0.09203, allocations: 8.438 kB / 432.1 MB, free: 6.508 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.114e-05/0.09205, allocations: 30.56 kB / 432.2 MB, free: 6.469 MB / 298.7 MB Notification: Performance of pre-optimization done (n=26): time 1.312e-06/0.09205, allocations: 3.938 kB / 432.2 MB, free: 6.465 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001559/0.09362, allocations: 0.791 MB / 433 MB, free: 5.625 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.847e-05/0.09365, allocations: 51.41 kB / 433 MB, free: 5.562 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009584/0.09461, allocations: 0.5053 MB / 433.5 MB, free: 5.051 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.09464, allocations: 33.7 kB / 433.5 MB, free: 5.012 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.743e-05/0.09471, allocations: 180.4 kB / 433.7 MB, free: 4.832 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.416e-05/0.09477, allocations: 98.5 kB / 433.8 MB, free: 4.734 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.496e-05/0.09484, allocations: 45.7 kB / 433.9 MB, free: 4.684 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.501e-05/0.0949, allocations: 354.8 kB / 434.2 MB, free: 4.328 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.09506, allocations: 108.2 kB / 434.3 MB, free: 4.223 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001439/0.09521, allocations: 116.4 kB / 434.4 MB, free: 4.109 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001865/0.09708, allocations: 0.7263 MB / 435.2 MB, free: 3.383 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.0971, allocations: 0 / 435.2 MB, free: 3.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006896/0.09779, allocations: 474.7 kB / 435.6 MB, free: 2.906 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.09781, allocations: 8 kB / 435.6 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.09782, allocations: 0 / 435.6 MB, free: 2.898 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003016/0.09813, allocations: 117.5 kB / 435.7 MB, free: 2.777 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.0983, allocations: 39.98 kB / 435.8 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00176/0.1001, allocations: 2.999 MB / 438.8 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004732/0.1006, allocations: 79.64 kB / 438.9 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.1006, allocations: 12 kB / 438.9 MB, free: 15.38 MB / 314.7 MB Warning: Assuming fixed start value for the following 7 variables: Cfb_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb_1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cff_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process_2.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process_1.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 (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001885/0.1008, allocations: 175.8 kB / 439 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.065e-05/0.1008, allocations: 35.56 kB / 439.1 MB, free: 15.16 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.101, allocations: 47.31 kB / 439.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.337e-06/0.101, allocations: 8 kB / 439.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.101, allocations: 0 / 439.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.752e-06/0.101, allocations: 7.984 kB / 439.1 MB, free: 15.1 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003823/0.1014, allocations: 393.2 kB / 439.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1014, allocations: 0 / 439.5 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002051/0.1016, allocations: 35.98 kB / 439.6 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000286/0.1019, allocations: 105.5 kB / 439.7 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.1019, allocations: 15.98 kB / 439.7 MB, free: 14.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002082/0.104, allocations: 2.991 MB / 442.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.104, allocations: 0 / 442.7 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007881/0.1119, allocations: 6.687 MB / 449.4 MB, free: 4.129 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.1121, allocations: 124.6 kB / 449.5 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.915e-05/0.1121, allocations: 8 kB / 449.5 MB, free: 3.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004912/0.1126, allocations: 71.95 kB / 449.6 MB, free: 3.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.386e-05/0.1127, allocations: 23.97 kB / 449.6 MB, free: 3.887 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.1127, allocations: 7.938 kB / 449.6 MB, free: 3.879 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009945/0.1137, allocations: 406.9 kB / 450 MB, free: 3.484 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1137, allocations: 0 / 450 MB, free: 3.484 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004881/0.1142, allocations: 103.9 kB / 450.1 MB, free: 3.383 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process_1.x_scaled[1],Process_1.x_scaled[2],Process_2.x_scaled[1],Process_2.x_scaled[2],Cff_2.x_scaled[1],Cfb_1.x_scaled[1],Cfb_2.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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (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.0001575/0.1144, allocations: 115.1 kB / 450.2 MB, free: 3.258 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000836/0.1152, allocations: 0.5441 MB / 450.7 MB, free: 2.688 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.1152, allocations: 4 kB / 450.7 MB, free: 2.684 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004917/0.1157, allocations: 385.2 kB / 451.1 MB, free: 2.281 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.1162, allocations: 65.3 kB / 451.2 MB, free: 2.215 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.118, allocations: 1.352 MB / 452.5 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.1184, allocations: 0.8348 MB / 453.4 MB, free: 15.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001808/0.1185, allocations: 78.91 kB / 453.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.609e-05/0.1186, allocations: 27.44 kB / 453.5 MB, free: 15.83 MB / 330.7 MB Notification: Performance of SimCode: time 1.9e-07/0.1186, allocations: 0 / 453.5 MB, free: 15.83 MB / 330.7 MB Notification: Performance of Templates: time 0.008181/0.1268, allocations: 5.301 MB / 458.8 MB, free: 10.52 MB / 330.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.Exploiting_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.Exploiting_2dof.pipe 2>&1)