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.1067/0.1067, allocations: 21.44 MB / 36.39 MB, free: 1.172 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.001163/0.001163, allocations: 182.9 kB / 42.62 MB, free: 3.992 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.598/1.598, allocations: 205.4 MB / 254.1 MB, free: 15.2 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.00118/0.00118, allocations: 90.86 kB / 307.8 MB, free: 11.1 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003491/0.0003489, allocations: 8.062 kB / 373.2 MB, free: 59.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.118, allocations: 52.96 MB / 426.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3855/0.5036, allocations: 78.63 MB / 0.493 GB, free: 23.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001947/0.5038, allocations: 74.59 kB / 0.4931 GB, free: 23.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01265/0.5165, allocations: 3.687 MB / 0.4967 GB, free: 23.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.907e-06/0.5165, allocations: 0 / 0.4967 GB, free: 23.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.253e-05/0.5165, allocations: 8.031 kB / 0.4967 GB, free: 23.25 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.001292/0.5178, allocations: 0.6075 MB / 0.4973 GB, free: 22.82 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.5179, allocations: 9.109 kB / 0.4973 GB, free: 22.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.198e-05/0.518, allocations: 28.59 kB / 0.4973 GB, free: 22.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008703/0.5188, allocations: 364.5 kB / 0.4976 GB, free: 22.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.5189, allocations: 8.156 kB / 0.4976 GB, free: 22.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.587e-05/0.5189, allocations: 15.89 kB / 0.4977 GB, free: 22.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.5193, allocations: 169 kB / 0.4978 GB, free: 22.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.5194, allocations: 8.859 kB / 0.4978 GB, free: 22.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.24e-05/0.5194, allocations: 5.094 kB / 0.4978 GB, free: 22.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.5194, allocations: 3.531 kB / 0.4978 GB, free: 22.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003404/0.5197, allocations: 172.7 kB / 0.498 GB, free: 22.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001029/0.5208, allocations: 0.585 MB / 0.4986 GB, free: 22.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.5212, allocations: 206.5 kB / 0.4988 GB, free: 22.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.5212, allocations: 2.5 kB / 0.4988 GB, free: 22.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.5213, allocations: 36.66 kB / 0.4988 GB, free: 22.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.503e-06/0.5213, allocations: 0 / 0.4988 GB, free: 22.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.001889/0.5232, allocations: 0.6388 MB / 0.4994 GB, free: 22.01 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.5232, allocations: 54.44 kB / 0.4995 GB, free: 21.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000749/0.524, allocations: 324.7 kB / 0.4998 GB, free: 21.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.524, allocations: 30.02 kB / 0.4998 GB, free: 21.81 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.665e-05/0.5241, allocations: 134.1 kB / 0.5 GB, free: 21.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.023e-05/0.5242, allocations: 73.61 kB / 0.5 GB, free: 21.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.574e-05/0.5242, allocations: 5.406 kB / 0.5 GB, free: 21.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.039e-05/0.5243, allocations: 335.7 kB / 0.5003 GB, free: 21.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002328/0.5245, allocations: 94.86 kB / 0.5004 GB, free: 21.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002227/0.5248, allocations: 86.77 kB / 0.5005 GB, free: 21.35 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.5251, allocations: 106 kB / 0.5006 GB, free: 21.35 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5251, allocations: 0 / 0.5006 GB, free: 21.35 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008229/0.5259, allocations: 399.4 kB / 0.501 GB, free: 21.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.5259, allocations: 4.844 kB / 0.501 GB, free: 21.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.5259, allocations: 3.938 kB / 0.501 GB, free: 21.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003719/0.5263, allocations: 99.28 kB / 0.5011 GB, free: 21.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.5265, allocations: 35.44 kB / 0.5011 GB, free: 21.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002998/0.5295, allocations: 1.748 MB / 0.5028 GB, free: 35.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003831/0.5299, allocations: 56.78 kB / 0.5029 GB, free: 35.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.5299, allocations: 16.56 kB / 0.5029 GB, free: 35.96 MB / 378.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.0002414/0.5302, allocations: 154.6 kB / 0.5031 GB, free: 35.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.205e-05/0.5303, allocations: 30.69 kB / 0.5031 GB, free: 35.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.626e-05/0.5303, allocations: 41.06 kB / 0.5031 GB, free: 35.81 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.5303, allocations: 1.656 kB / 0.5031 GB, free: 35.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.5304, allocations: 3.047 kB / 0.5031 GB, free: 35.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.5304, allocations: 0.7969 kB / 0.5031 GB, free: 35.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004275/0.5308, allocations: 321.2 kB / 0.5034 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.5308, allocations: 0 / 0.5034 GB, free: 35.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002069/0.531, allocations: 36.23 kB / 0.5035 GB, free: 35.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003041/0.5313, allocations: 88.56 kB / 0.5036 GB, free: 35.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.569e-05/0.5314, allocations: 12.06 kB / 0.5036 GB, free: 35.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/0.5331, allocations: 1.747 MB / 0.5053 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5332, allocations: 4 kB / 0.5053 GB, free: 34.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.5343, allocations: 0.5504 MB / 0.5058 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.941e-05/0.5344, allocations: 105.3 kB / 0.5059 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.782e-05/0.5345, allocations: 12.56 kB / 0.5059 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003916/0.5349, allocations: 43.11 kB / 0.506 GB, free: 34.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.215e-05/0.535, allocations: 20.33 kB / 0.506 GB, free: 34.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.535, allocations: 4.641 kB / 0.506 GB, free: 34.02 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006934/0.5357, allocations: 274.2 kB / 0.5063 GB, free: 33.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5357, allocations: 1.062 kB / 0.5063 GB, free: 33.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000358/0.5361, allocations: 59.69 kB / 0.5063 GB, free: 33.94 MB / 378.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.000147/0.5362, allocations: 115.7 kB / 0.5064 GB, free: 33.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006868/0.5369, allocations: 386.1 kB / 0.5068 GB, free: 33.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.5369, allocations: 0 / 0.5068 GB, free: 33.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003932/0.5373, allocations: 238.3 kB / 0.507 GB, free: 33.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.5377, allocations: 36.75 kB / 0.5071 GB, free: 33.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.5388, allocations: 0.6169 MB / 0.5077 GB, free: 33.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004076/0.5392, allocations: 0.7903 MB / 0.5084 GB, free: 32.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000157/0.5394, allocations: 50.66 kB / 0.5085 GB, free: 32.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.824e-05/0.5395, allocations: 17.39 kB / 0.5085 GB, free: 32.56 MB / 378.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5395, allocations: 4 kB / 0.5085 GB, free: 32.55 MB / 378.7 MB Notification: Performance of Templates: time 0.005836/0.5453, allocations: 2.676 MB / 0.5111 GB, free: 32.39 MB / 378.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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1)