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 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.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.09212/0.09212, allocations: 21.61 MB / 36.56 MB, free: 1.043 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.0009282/0.0009282, allocations: 183.4 kB / 42.83 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.207/1.207, allocations: 223.2 MB / 272.1 MB, free: 1.371 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.0008636/0.0008636, allocations: 106.2 kB / 328.7 MB, free: 11.72 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003496, allocations: 12 kB / 397 MB, free: 46.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07638/0.07674, allocations: 55.81 MB / 452.9 MB, free: 6.645 MB / 314.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.Exploiting_2dof): time 0.001168/0.07795, allocations: 0.9416 MB / 453.8 MB, free: 5.703 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.07932, allocations: 1.326 MB / 455.1 MB, free: 4.359 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.348e-05/0.07941, allocations: 3.938 kB / 455.1 MB, free: 4.355 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002504/0.07967, allocations: 79.66 kB / 455.2 MB, free: 4.277 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.07988, allocations: 103.7 kB / 455.3 MB, free: 4.176 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000256/0.08014, allocations: 159.8 kB / 455.5 MB, free: 4.02 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003519/0.0805, allocations: 359.3 kB / 455.8 MB, free: 3.668 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.247e-05/0.0806, allocations: 43.91 kB / 455.9 MB, free: 3.625 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002529/0.08085, allocations: 219.5 kB / 456.1 MB, free: 3.41 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002249/0.08109, allocations: 207.4 kB / 456.3 MB, free: 3.207 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.288e-05/0.08113, allocations: 12 kB / 456.3 MB, free: 3.195 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.275e-05/0.08117, allocations: 16 kB / 456.3 MB, free: 3.18 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.08129, allocations: 99.69 kB / 456.4 MB, free: 3.082 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 4.628e-05/0.08134, allocations: 65.52 kB / 456.5 MB, free: 3.012 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000194/0.08154, allocations: 235.4 kB / 456.7 MB, free: 2.781 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.08155, allocations: 0 / 456.7 MB, free: 2.781 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.08155, allocations: 0 / 456.7 MB, free: 2.781 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.08156, allocations: 0 / 456.7 MB, free: 2.781 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001959/0.08353, allocations: 0.8258 MB / 457.5 MB, free: 1.902 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.627e-05/0.08356, allocations: 8.031 kB / 457.5 MB, free: 1.895 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.342e-05/0.08363, allocations: 39.53 kB / 457.6 MB, free: 1.855 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001113/0.08475, allocations: 497 kB / 458 MB, free: 1.328 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.334e-05/0.08477, allocations: 8.328 kB / 458.1 MB, free: 1.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.08482, allocations: 19.98 kB / 458.1 MB, free: 1.301 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003221/0.08514, allocations: 212.1 kB / 458.3 MB, free: 1.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.08516, allocations: 0 / 458.3 MB, free: 1.09 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.08519, allocations: 7.953 kB / 458.3 MB, free: 1.082 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.0852, allocations: 4 kB / 458.3 MB, free: 1.078 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003777/0.08558, allocations: 228.4 kB / 458.5 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.08677, allocations: 0.7655 MB / 459.3 MB, free: 40 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006232/0.08741, allocations: 336 kB / 459.6 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/0.08744, allocations: 4 kB / 459.6 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.555e-05/0.08746, allocations: 30.56 kB / 459.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 2.385e-06/0.08747, allocations: 0 / 459.6 MB, free: 15.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.001664/0.08914, allocations: 0.7866 MB / 460.4 MB, free: 14.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.842e-05/0.08918, allocations: 63.33 kB / 460.5 MB, free: 14.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001014/0.0902, allocations: 480.6 kB / 461 MB, free: 14.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.09024, allocations: 33.7 kB / 461 MB, free: 14.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.503e-05/0.09034, allocations: 172.4 kB / 461.2 MB, free: 14.06 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.483e-05/0.09042, allocations: 94.64 kB / 461.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.239e-05/0.09044, allocations: 8 kB / 461.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.09055, allocations: 346.8 kB / 461.6 MB, free: 13.61 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.09074, allocations: 108.2 kB / 461.7 MB, free: 13.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001685/0.09091, allocations: 120.4 kB / 461.8 MB, free: 13.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.09112, allocations: 132.4 kB / 462 MB, free: 13.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.09113, allocations: 0 / 462 MB, free: 13.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007959/0.09193, allocations: 477 kB / 462.4 MB, free: 12.78 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.076e-05/0.09195, allocations: 4 kB / 462.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.09196, allocations: 4 kB / 462.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003353/0.09231, allocations: 109.5 kB / 462.5 MB, free: 12.66 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001826/0.0925, allocations: 47.91 kB / 462.6 MB, free: 12.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002255/0.09476, allocations: 3.007 MB / 465.6 MB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004733/0.09525, allocations: 87.83 kB / 465.7 MB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.09528, allocations: 4 kB / 465.7 MB, free: 9.242 MB / 330.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[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] 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000189/0.09547, allocations: 184 kB / 465.9 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.177e-05/0.09554, allocations: 43.47 kB / 465.9 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.496e-05/0.09564, allocations: 55.31 kB / 466 MB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.09565, allocations: 0 / 466 MB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.09566, allocations: 4 kB / 466 MB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.09566, allocations: 0 / 466 MB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004003/0.09607, allocations: 393.2 kB / 466.3 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.09608, allocations: 0 / 466.3 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/0.0963, allocations: 31.98 kB / 466.4 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003025/0.09662, allocations: 109.6 kB / 466.5 MB, free: 8.379 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.09665, allocations: 11.89 kB / 466.5 MB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/0.09889, allocations: 3.015 MB / 469.5 MB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.0989, allocations: 0 / 469.5 MB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000982/0.09989, allocations: 0.6648 MB / 470.2 MB, free: 4.398 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.1, allocations: 116.7 kB / 470.3 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.1001, allocations: 11.98 kB / 470.3 MB, free: 4.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005002/0.1006, allocations: 75.89 kB / 470.4 MB, free: 4.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.1006, allocations: 23.92 kB / 470.4 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.1007, allocations: 4 kB / 470.4 MB, free: 4.152 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00095/0.1016, allocations: 410.9 kB / 470.8 MB, free: 3.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1016, allocations: 0 / 470.8 MB, free: 3.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003104/0.1019, allocations: 71.91 kB / 470.9 MB, free: 3.68 MB / 330.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.338e-05/0.102, allocations: 107.2 kB / 471 MB, free: 3.566 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007505/0.1028, allocations: 0.5336 MB / 471.5 MB, free: 3.008 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.1028, allocations: 0 / 471.5 MB, free: 3.008 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004867/0.1033, allocations: 409.1 kB / 471.9 MB, free: 2.582 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.1036, allocations: 49.34 kB / 472 MB, free: 2.535 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.1048, allocations: 0.8695 MB / 472.8 MB, free: 1.637 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.1052, allocations: 0.8303 MB / 473.7 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001549/0.1054, allocations: 62.92 kB / 473.7 MB, free: 0.7227 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.292e-05/0.1054, allocations: 35.42 kB / 473.8 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1054, allocations: 0 / 473.8 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of Templates: time 0.006194/0.1116, allocations: 3.714 MB / 477.5 MB, free: 12.99 MB / 346.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)