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 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.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.09515/0.09515, allocations: 21.61 MB / 36.56 MB, free: 1.109 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.0009037/0.0009038, allocations: 186.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.227/1.227, allocations: 223.2 MB / 272.1 MB, free: 1.809 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.000881/0.000881, allocations: 107 kB / 328.7 MB, free: 12.11 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003441/0.0003441, allocations: 8 kB / 397 MB, free: 46.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07692/0.07728, allocations: 55.82 MB / 452.9 MB, free: 6.668 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.262/0.3393, allocations: 79.48 MB / 0.5199 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001784/0.3396, allocations: 69.53 kB / 0.5199 GB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01065/0.3502, allocations: 3.732 MB / 0.5236 GB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3502, allocations: 4 kB / 0.5236 GB, free: 12.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.3503, allocations: 4.906 kB / 0.5236 GB, free: 12.6 MB / 362.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.001011/0.3513, allocations: 0.6037 MB / 0.5242 GB, free: 12.17 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.3513, allocations: 7.688 kB / 0.5242 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.143e-05/0.3514, allocations: 27.16 kB / 0.5242 GB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000688/0.3521, allocations: 366.9 kB / 0.5246 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.3521, allocations: 11.38 kB / 0.5246 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.936e-05/0.3521, allocations: 11.03 kB / 0.5246 GB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002467/0.3524, allocations: 168.9 kB / 0.5247 GB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3524, allocations: 4 kB / 0.5247 GB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.3524, allocations: 3.125 kB / 0.5247 GB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-06/0.3524, allocations: 11.73 kB / 0.5248 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.3527, allocations: 167.4 kB / 0.5249 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000737/0.3535, allocations: 0.5939 MB / 0.5255 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.3537, allocations: 207.1 kB / 0.5257 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.443e-05/0.3538, allocations: 3.844 kB / 0.5257 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.176e-05/0.3538, allocations: 34.55 kB / 0.5257 GB, free: 11.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.333e-06/0.3538, allocations: 4 kB / 0.5257 GB, free: 11.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.001434/0.3552, allocations: 0.6375 MB / 0.5264 GB, free: 11.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.838e-05/0.3552, allocations: 55.34 kB / 0.5264 GB, free: 11.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005823/0.3558, allocations: 319 kB / 0.5267 GB, free: 10.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.656e-05/0.3559, allocations: 29.33 kB / 0.5267 GB, free: 10.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.896e-05/0.3559, allocations: 138.7 kB / 0.5269 GB, free: 10.85 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.57e-05/0.356, allocations: 72.84 kB / 0.5269 GB, free: 10.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.858e-06/0.356, allocations: 4 kB / 0.5269 GB, free: 10.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.03e-05/0.356, allocations: 336.5 kB / 0.5273 GB, free: 10.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.3562, allocations: 92.41 kB / 0.5274 GB, free: 10.46 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.3563, allocations: 91.97 kB / 0.5274 GB, free: 10.44 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001442/0.3565, allocations: 105.7 kB / 0.5275 GB, free: 10.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3565, allocations: 0 / 0.5275 GB, free: 10.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005997/0.3571, allocations: 406.4 kB / 0.5279 GB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.3571, allocations: 7.781 kB / 0.5279 GB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.3571, allocations: 0 / 0.5279 GB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003077/0.3574, allocations: 84.27 kB / 0.528 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.3576, allocations: 35.7 kB / 0.5281 GB, free: 10.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/0.3589, allocations: 1.748 MB / 0.5298 GB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.3592, allocations: 65.05 kB / 0.5298 GB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.481e-05/0.3592, allocations: 3.875 kB / 0.5298 GB, free: 8.816 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001434/0.3594, allocations: 168.3 kB / 0.53 GB, free: 8.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.313e-05/0.3594, allocations: 23.12 kB / 0.53 GB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.894e-05/0.3595, allocations: 39.36 kB / 0.53 GB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.3595, allocations: 3.844 kB / 0.53 GB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3595, allocations: 4.328 kB / 0.5301 GB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3595, allocations: 0 / 0.5301 GB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000252/0.3598, allocations: 320.5 kB / 0.5304 GB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3598, allocations: 7.984 kB / 0.5304 GB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001664/0.36, allocations: 27.23 kB / 0.5304 GB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002362/0.3602, allocations: 97.36 kB / 0.5305 GB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.3603, allocations: 3.844 kB / 0.5305 GB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001159/0.3614, allocations: 1.751 MB / 0.5322 GB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3614, allocations: 3.812 kB / 0.5322 GB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007314/0.3622, allocations: 0.557 MB / 0.5327 GB, free: 6.703 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.031e-05/0.3622, allocations: 103.3 kB / 0.5328 GB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.046e-05/0.3623, allocations: 11.98 kB / 0.5329 GB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003454/0.3626, allocations: 37.94 kB / 0.5329 GB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.238e-05/0.3627, allocations: 18.67 kB / 0.5329 GB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.3627, allocations: 11.67 kB / 0.5329 GB, free: 6.566 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005137/0.3632, allocations: 262.8 kB / 0.5332 GB, free: 6.441 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3632, allocations: 3.844 kB / 0.5332 GB, free: 6.441 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002896/0.3635, allocations: 64.98 kB / 0.5332 GB, free: 6.43 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001068/0.3636, allocations: 115.2 kB / 0.5333 GB, free: 6.332 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005177/0.3642, allocations: 378.2 kB / 0.5337 GB, free: 6.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3642, allocations: 3.938 kB / 0.5337 GB, free: 6.156 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002822/0.3645, allocations: 246.2 kB / 0.5339 GB, free: 6.016 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.3647, allocations: 37.2 kB / 0.534 GB, free: 6.004 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007176/0.3654, allocations: 0.6167 MB / 0.5346 GB, free: 5.621 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001631/0.3656, allocations: 0.7759 MB / 0.5353 GB, free: 4.879 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.3657, allocations: 53.09 kB / 0.5354 GB, free: 4.859 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.869e-05/0.3658, allocations: 17.72 kB / 0.5354 GB, free: 4.852 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3658, allocations: 0 / 0.5354 GB, free: 4.852 MB / 362.7 MB Notification: Performance of Templates: time 0.004281/0.3701, allocations: 2.693 MB / 0.538 GB, free: 3.559 MB / 362.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)