Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_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.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof") translateModel(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Tuning_brushup.IMC_scheme_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.09425/0.09425, 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.001057/0.001057, allocations: 188.5 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.303/1.303, allocations: 205.1 MB / 254.8 MB, free: 14.25 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.0009354/0.0009352, allocations: 97.36 kB / 307.5 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009332/0.0009332, allocations: 51.7 kB / 372.3 MB, free: 59.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08524/0.08619, allocations: 51.97 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002068/0.08829, allocations: 1.208 MB / 425.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.08953, allocations: 1.319 MB / 426.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.522e-05/0.08963, allocations: 8 kB / 426.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002506/0.08989, allocations: 59.67 kB / 426.9 MB, free: 11.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001524/0.09006, allocations: 71.73 kB / 427 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001761/0.09024, allocations: 123.8 kB / 427.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002326/0.09048, allocations: 371.3 kB / 427.5 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.832e-05/0.09059, allocations: 56.38 kB / 427.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.09071, allocations: 143.5 kB / 427.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.09089, allocations: 187.3 kB / 427.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.674e-05/0.09093, allocations: 12 kB / 427.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.196e-05/0.09097, allocations: 12 kB / 427.9 MB, free: 10.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.982e-05/0.09107, allocations: 95.75 kB / 427.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.232e-05/0.09115, allocations: 111.1 kB / 428.1 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001499/0.09131, allocations: 259.1 kB / 428.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.09132, allocations: 0 / 428.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.09132, allocations: 0 / 428.3 MB, free: 10.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.09133, allocations: 0 / 428.3 MB, free: 10.48 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001632/0.09297, allocations: 0.7597 MB / 429.1 MB, free: 9.676 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.812e-05/0.09301, allocations: 8.031 kB / 429.1 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.044e-05/0.09307, allocations: 28.56 kB / 429.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000857/0.09393, allocations: 407.3 kB / 429.5 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.09396, allocations: 16.66 kB / 429.5 MB, free: 9.184 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.094, allocations: 20.28 kB / 429.5 MB, free: 9.164 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002488/0.09425, allocations: 200 kB / 429.7 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.09427, allocations: 0 / 429.7 MB, free: 8.965 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.09429, allocations: 4 kB / 429.7 MB, free: 8.961 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.0943, allocations: 4 kB / 429.7 MB, free: 8.957 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002837/0.09459, allocations: 204.1 kB / 429.9 MB, free: 8.758 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008902/0.09549, allocations: 0.6953 MB / 430.6 MB, free: 8.012 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004051/0.09591, allocations: 263.3 kB / 430.9 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001576/0.09607, allocations: 132.8 kB / 431 MB, free: 7.613 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.837e-05/0.0961, allocations: 4 kB / 431 MB, free: 7.609 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.928e-06/0.09611, allocations: 30.56 kB / 431.1 MB, free: 7.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.182e-06/0.09612, allocations: 4 kB / 431.1 MB, free: 7.566 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001522/0.09765, allocations: 0.6903 MB / 431.8 MB, free: 6.848 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.778e-05/0.09768, allocations: 59.34 kB / 431.8 MB, free: 6.777 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007327/0.09842, allocations: 414.8 kB / 432.2 MB, free: 6.367 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.09844, allocations: 29.7 kB / 432.2 MB, free: 6.332 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.0985, allocations: 152.5 kB / 432.4 MB, free: 6.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.722e-05/0.09855, allocations: 82.75 kB / 432.5 MB, free: 6.098 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.152e-05/0.09862, allocations: 45.7 kB / 432.5 MB, free: 6.047 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.87e-05/0.09867, allocations: 346.8 kB / 432.9 MB, free: 5.699 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.09882, allocations: 99.92 kB / 433 MB, free: 5.602 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001326/0.09896, allocations: 112.6 kB / 433.1 MB, free: 5.492 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001789/0.1008, allocations: 0.7084 MB / 433.8 MB, free: 4.781 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1008, allocations: 0 / 433.8 MB, free: 4.781 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006315/0.1014, allocations: 441.8 kB / 434.2 MB, free: 4.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.1014, allocations: 7.938 kB / 434.2 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.1014, allocations: 3.938 kB / 434.2 MB, free: 4.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002794/0.1017, allocations: 100.7 kB / 434.3 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001559/0.1019, allocations: 39.97 kB / 434.4 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.103, allocations: 1.738 MB / 436.1 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003683/0.1034, allocations: 63.8 kB / 436.2 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.629e-05/0.1034, allocations: 8 kB / 436.2 MB, free: 2.246 MB / 298.7 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] 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 (25): * Single equations (assignments): 24 * 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.0001452/0.1036, allocations: 175.7 kB / 436.3 MB, free: 2.066 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.677e-05/0.1036, allocations: 31.62 kB / 436.4 MB, free: 2.035 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.464e-05/0.1037, allocations: 42.25 kB / 436.4 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1037, allocations: 4 kB / 436.4 MB, free: 1.984 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.1038, allocations: 4 kB / 436.4 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.1038, allocations: 0 / 436.4 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002638/0.104, allocations: 361.2 kB / 436.8 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.104, allocations: 4 kB / 436.8 MB, free: 1.574 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.1042, allocations: 27.98 kB / 436.8 MB, free: 1.547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002258/0.1045, allocations: 100.9 kB / 436.9 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.1045, allocations: 12 kB / 436.9 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.1057, allocations: 1.727 MB / 438.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1057, allocations: 0 / 438.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006495/0.1122, allocations: 5.044 MB / 443.7 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.285e-05/0.1123, allocations: 112.7 kB / 443.8 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.1124, allocations: 15.92 kB / 443.8 MB, free: 10.1 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004152/0.1128, allocations: 55.86 kB / 443.9 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.509e-05/0.1129, allocations: 19.97 kB / 443.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.1129, allocations: 8.062 kB / 443.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007975/0.1137, allocations: 325.8 kB / 444.2 MB, free: 9.699 MB / 314.7 MB Notification: Performance of sort global known variables: time 2e-07/0.1137, allocations: 0 / 444.2 MB, free: 9.699 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004049/0.1141, allocations: 92 kB / 444.3 MB, free: 9.609 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.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 (18): * Single equations (assignments): 17 * 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.0001278/0.1143, allocations: 103.2 kB / 444.4 MB, free: 9.5 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006565/0.1149, allocations: 410.4 kB / 444.8 MB, free: 9.086 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1149, allocations: 0 / 444.8 MB, free: 9.086 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003674/0.1153, allocations: 278.5 kB / 445.1 MB, free: 8.801 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003682/0.1157, allocations: 36.88 kB / 445.1 MB, free: 8.766 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.1172, allocations: 1.116 MB / 446.2 MB, free: 7.602 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003546/0.1176, allocations: 0.8029 MB / 447 MB, free: 6.77 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000197/0.1178, allocations: 70.36 kB / 447.1 MB, free: 6.695 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.467e-05/0.1178, allocations: 23.44 kB / 447.1 MB, free: 6.672 MB / 314.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1178, allocations: 0 / 447.1 MB, free: 6.672 MB / 314.7 MB Notification: Performance of Templates: time 0.007183/0.125, allocations: 4.417 MB / 451.5 MB, free: 2.254 MB / 314.7 MB make -j1 -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.makefile (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & ./AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1)