Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.IMC_scheme_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof") [/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.08911/0.08911, allocations: 21.61 MB / 37.4 MB, free: 0.7578 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.001078/0.001078, allocations: 192.4 kB / 43.64 MB, free: 3.57 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.266/1.266, allocations: 205.1 MB / 254.8 MB, free: 14.3 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.0008509/0.000851, allocations: 104.4 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 58.12 kB / 372.3 MB, free: 59.54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0799/0.08113, allocations: 51.98 MB / 424.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002012/0.08319, allocations: 1.135 MB / 425.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.08429, allocations: 1.277 MB / 426.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.042e-05/0.08439, allocations: 3.938 kB / 426.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002814/0.08467, allocations: 43.81 kB / 426.8 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001473/0.08484, allocations: 59.75 kB / 426.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001624/0.08501, allocations: 95.86 kB / 426.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002084/0.08523, allocations: 287.4 kB / 427.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.08536, allocations: 41.67 kB / 427.2 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.08548, allocations: 115.5 kB / 427.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.08564, allocations: 151.5 kB / 427.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.737e-05/0.08569, allocations: 8 kB / 427.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.776e-05/0.08572, allocations: 16 kB / 427.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.896e-05/0.08582, allocations: 79.78 kB / 427.6 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.673e-05/0.08589, allocations: 95.31 kB / 427.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.08604, allocations: 207.3 kB / 427.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.08605, allocations: 0 / 427.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.08606, allocations: 0 / 427.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.08606, allocations: 0 / 427.9 MB, free: 10.89 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001408/0.08748, allocations: 0.6738 MB / 428.6 MB, free: 10.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.08752, allocations: 8.031 kB / 428.6 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.08757, allocations: 24.66 kB / 428.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006862/0.08826, allocations: 358.6 kB / 429 MB, free: 9.754 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.453e-05/0.08829, allocations: 8.375 kB / 429 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.147e-05/0.08832, allocations: 12.38 kB / 429 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002437/0.08857, allocations: 177.9 kB / 429.1 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.0886, allocations: 0 / 429.1 MB, free: 9.555 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/0.08862, allocations: 4 kB / 429.1 MB, free: 9.551 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.08863, allocations: 11.92 kB / 429.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/0.08889, allocations: 167.9 kB / 429.3 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008538/0.08975, allocations: 0.629 MB / 430 MB, free: 8.695 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000263/0.09002, allocations: 210.5 kB / 430.2 MB, free: 8.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001418/0.09018, allocations: 116.7 kB / 430.3 MB, free: 8.363 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.09021, allocations: 0 / 430.3 MB, free: 8.363 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/0.09023, allocations: 38.56 kB / 430.3 MB, free: 8.316 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 9.22e-07/0.09024, allocations: 0 / 430.3 MB, free: 8.316 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001516/0.09176, allocations: 0.6363 MB / 430.9 MB, free: 7.652 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/0.09179, allocations: 63.34 kB / 431 MB, free: 7.578 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005996/0.0924, allocations: 336.9 kB / 431.3 MB, free: 7.238 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.09242, allocations: 33.7 kB / 431.4 MB, free: 7.199 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.129e-05/0.09248, allocations: 140.3 kB / 431.5 MB, free: 7.055 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.587e-05/0.09253, allocations: 74.91 kB / 431.6 MB, free: 6.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.872e-05/0.09259, allocations: 41.7 kB / 431.6 MB, free: 6.934 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.942e-05/0.09265, allocations: 338.8 kB / 432 MB, free: 6.594 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.09278, allocations: 79.95 kB / 432 MB, free: 6.516 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.09291, allocations: 96.06 kB / 432.1 MB, free: 6.422 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.09456, allocations: 0.6265 MB / 432.8 MB, free: 5.793 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.09457, allocations: 0 / 432.8 MB, free: 5.793 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006033/0.09518, allocations: 398 kB / 433.1 MB, free: 5.395 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.09521, allocations: 7.938 kB / 433.1 MB, free: 5.387 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.09522, allocations: 8 kB / 433.2 MB, free: 5.379 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002682/0.09549, allocations: 96.75 kB / 433.3 MB, free: 5.281 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.09565, allocations: 31.92 kB / 433.3 MB, free: 5.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001222/0.09688, allocations: 1.734 MB / 435 MB, free: 3.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003058/0.0972, allocations: 51.81 kB / 435.1 MB, free: 3.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.09722, allocations: 4.062 kB / 435.1 MB, free: 3.328 MB / 298.7 MB Warning: Assuming fixed start value for the following 6 variables: M.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.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 (21): * Single equations (assignments): 20 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000186/0.09741, allocations: 174.9 kB / 435.2 MB, free: 3.148 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.351e-05/0.09746, allocations: 19.72 kB / 435.3 MB, free: 3.129 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.71e-05/0.09754, allocations: 46.11 kB / 435.3 MB, free: 3.082 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.09755, allocations: 4 kB / 435.3 MB, free: 3.078 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.09756, allocations: 0 / 435.3 MB, free: 3.078 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.09757, allocations: 0 / 435.3 MB, free: 3.078 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.09782, allocations: 325.5 kB / 435.6 MB, free: 2.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.09783, allocations: 4 kB / 435.6 MB, free: 2.707 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.098, allocations: 27.98 kB / 435.7 MB, free: 2.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002282/0.09823, allocations: 92.77 kB / 435.7 MB, free: 2.586 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.013e-05/0.09826, allocations: 8 kB / 435.8 MB, free: 2.578 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001121/0.09939, allocations: 1.734 MB / 437.5 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.09941, allocations: 3.938 kB / 437.5 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00595/0.1054, allocations: 4.67 MB / 442.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.566e-05/0.1055, allocations: 108.8 kB / 442.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.1055, allocations: 12 kB / 442.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003635/0.1059, allocations: 47.92 kB / 442.3 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.415e-05/0.106, allocations: 11.98 kB / 442.3 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.106, allocations: 8 kB / 442.3 MB, free: 11.54 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000738/0.1067, allocations: 268.3 kB / 442.6 MB, free: 11.28 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1067, allocations: 3.938 kB / 442.6 MB, free: 11.28 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004929/0.1072, allocations: 79.91 kB / 442.7 MB, free: 11.2 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * 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 (15): * Single equations (assignments): 14 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001348/0.1074, allocations: 107.2 kB / 442.8 MB, free: 11.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007503/0.1081, allocations: 370.7 kB / 443.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1082, allocations: 0 / 443.2 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004087/0.1086, allocations: 254.4 kB / 443.4 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004119/0.109, allocations: 44.06 kB / 443.5 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001473/0.1105, allocations: 0.9575 MB / 444.4 MB, free: 9.406 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.1108, allocations: 0.7792 MB / 445.2 MB, free: 8.602 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001578/0.111, allocations: 53.91 kB / 445.2 MB, free: 8.547 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.064e-05/0.1111, allocations: 23.38 kB / 445.3 MB, free: 8.523 MB / 314.7 MB Notification: Performance of SimCode: time 2.51e-07/0.1111, allocations: 4 kB / 445.3 MB, free: 8.52 MB / 314.7 MB Notification: Performance of Templates: time 0.006907/0.118, allocations: 3.815 MB / 449.1 MB, free: 4.703 MB / 314.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)