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.09681/0.09681, allocations: 21.41 MB / 36.66 MB, free: 1.09 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.0009736/0.0009737, allocations: 180.5 kB / 42.84 MB, free: 3.91 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.66/1.66, 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.0007479/0.0007478, allocations: 89.38 kB / 307.2 MB, free: 11.45 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003988/0.0003988, allocations: 7.594 kB / 372.5 MB, free: 59.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1052, allocations: 52.52 MB / 425 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002555/0.1078, allocations: 1.126 MB / 426.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.1095, allocations: 1.284 MB / 427.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001784/0.1097, allocations: 0 / 427.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004116/0.1102, allocations: 43.81 kB / 427.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002218/0.1104, allocations: 59.75 kB / 427.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.1106, allocations: 91.88 kB / 427.6 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002572/0.1109, allocations: 291.4 kB / 427.9 MB, free: 11.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001325/0.111, allocations: 41.67 kB / 427.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001266/0.1112, allocations: 111.6 kB / 428 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.1114, allocations: 147.5 kB / 428.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.872e-05/0.1114, allocations: 12 kB / 428.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.022e-05/0.1115, allocations: 16 kB / 428.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.1116, allocations: 83.72 kB / 428.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.715e-05/0.1117, allocations: 87.39 kB / 428.4 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.1118, allocations: 207.2 kB / 428.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1118, allocations: 0 / 428.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1119, allocations: 0 / 428.6 MB, free: 10.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1119, allocations: 0 / 428.6 MB, free: 10.85 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.001464/0.1133, allocations: 0.6699 MB / 429.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1134, allocations: 12.03 kB / 429.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.509e-05/0.1134, allocations: 24.66 kB / 429.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006951/0.1141, allocations: 358.6 kB / 429.6 MB, free: 9.711 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.1142, allocations: 12.38 kB / 429.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.618e-05/0.1142, allocations: 12.38 kB / 429.6 MB, free: 9.688 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002764/0.1145, allocations: 173.8 kB / 429.8 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.1145, allocations: 0 / 429.8 MB, free: 9.512 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.1146, allocations: 8 kB / 429.8 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1146, allocations: 0 / 429.8 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.1148, allocations: 171.9 kB / 430 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00087/0.1157, allocations: 0.629 MB / 430.6 MB, free: 8.656 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002947/0.116, allocations: 206.5 kB / 430.8 MB, free: 8.445 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.1162, allocations: 112.8 kB / 430.9 MB, free: 8.332 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.1162, allocations: 11.92 kB / 430.9 MB, free: 8.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.605e-05/0.1162, allocations: 42.48 kB / 431 MB, free: 8.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.192e-06/0.1162, allocations: 0 / 431 MB, free: 8.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.001531/0.1178, allocations: 0.6363 MB / 431.6 MB, free: 7.605 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.1178, allocations: 59.41 kB / 431.7 MB, free: 7.535 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005904/0.1184, allocations: 340.9 kB / 432 MB, free: 7.191 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.1184, allocations: 33.64 kB / 432 MB, free: 7.152 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.212e-05/0.1185, allocations: 140.4 kB / 432.2 MB, free: 7.008 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.588e-05/0.1186, allocations: 70.91 kB / 432.3 MB, free: 6.938 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.106e-05/0.1186, allocations: 41.7 kB / 432.3 MB, free: 6.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.516e-05/0.1187, allocations: 338.8 kB / 432.6 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.1189, allocations: 91.94 kB / 432.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.119, allocations: 92.06 kB / 432.8 MB, free: 6.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00171/0.1207, allocations: 0.6226 MB / 433.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1207, allocations: 0 / 433.4 MB, free: 5.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006176/0.1213, allocations: 402 kB / 433.8 MB, free: 5.344 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1214, allocations: 7.938 kB / 433.8 MB, free: 5.336 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.1214, allocations: 7.938 kB / 433.8 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002867/0.1217, allocations: 88.77 kB / 433.9 MB, free: 5.238 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001823/0.1219, allocations: 31.98 kB / 434 MB, free: 5.207 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.1231, allocations: 1.73 MB / 435.7 MB, free: 3.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.1234, allocations: 59.8 kB / 435.7 MB, free: 3.285 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.1235, allocations: 4.062 kB / 435.7 MB, free: 3.281 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.000179/0.1237, allocations: 166.9 kB / 435.9 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.394e-05/0.1237, allocations: 27.89 kB / 435.9 MB, free: 3.082 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.034e-05/0.1238, allocations: 38.19 kB / 436 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1238, allocations: 0 / 436 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1238, allocations: 4 kB / 436 MB, free: 3.039 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1238, allocations: 7.984 kB / 436 MB, free: 3.031 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002571/0.1241, allocations: 325.3 kB / 436.3 MB, free: 2.664 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1241, allocations: 3.984 kB / 436.3 MB, free: 2.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.1242, allocations: 23.98 kB / 436.3 MB, free: 2.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002331/0.1245, allocations: 92.75 kB / 436.4 MB, free: 2.543 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.1245, allocations: 12 kB / 436.4 MB, free: 2.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/0.1257, allocations: 1.727 MB / 438.2 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.1257, allocations: 0 / 438.2 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007596/0.1265, allocations: 0.566 MB / 438.7 MB, free: 92 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001058/0.1266, allocations: 104.8 kB / 438.8 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.1266, allocations: 8.188 kB / 438.8 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003333/0.127, allocations: 51.94 kB / 438.9 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.43e-05/0.1271, allocations: 15.97 kB / 438.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.445e-05/0.1271, allocations: 8 kB / 438.9 MB, free: 15.89 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005951/0.1277, allocations: 272.3 kB / 439.2 MB, free: 15.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1277, allocations: 4 kB / 439.2 MB, free: 15.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002883/0.128, allocations: 55.94 kB / 439.2 MB, free: 15.56 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.0001308/0.1281, allocations: 99.25 kB / 439.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006511/0.1288, allocations: 374.6 kB / 439.7 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.103e-06/0.1288, allocations: 0 / 439.7 MB, free: 15.07 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003621/0.1292, allocations: 250.5 kB / 439.9 MB, free: 14.82 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003792/0.1296, allocations: 46.98 kB / 440 MB, free: 14.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.1306, allocations: 0.6147 MB / 440.6 MB, free: 14.14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.131, allocations: 0.7755 MB / 441.4 MB, free: 13.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.1312, allocations: 53.91 kB / 441.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.814e-05/0.1312, allocations: 15.44 kB / 441.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1312, allocations: 0 / 441.4 MB, free: 13.27 MB / 314.7 MB Notification: Performance of Templates: time 0.005692/0.1369, allocations: 2.744 MB / 444.2 MB, free: 10.52 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)