Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.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.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop") [/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.1692/0.1692, allocations: 21.44 MB / 36.39 MB, free: 1.203 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.001403/0.001402, allocations: 183.8 kB / 42.62 MB, free: 3.984 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.765/1.765, allocations: 205.4 MB / 254.1 MB, free: 15.22 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.0009176/0.0009173, allocations: 97.48 kB / 307.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004112/0.0004113, allocations: 7.656 kB / 373.2 MB, free: 59.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1282/0.1286, allocations: 52.95 MB / 426.2 MB, free: 13.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4238/0.5524, allocations: 83.41 MB / 0.4977 GB, free: 17.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/0.5527, allocations: 77.55 kB / 0.4977 GB, free: 17.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01797/0.5707, allocations: 6.127 MB / 0.5037 GB, free: 17.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.5708, allocations: 1.312 kB / 0.5037 GB, free: 17.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.002e-05/0.5708, allocations: 8.656 kB / 0.5037 GB, free: 17.06 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001383/0.5722, allocations: 0.6865 MB / 0.5044 GB, free: 16.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.281e-05/0.5723, allocations: 8.25 kB / 0.5044 GB, free: 16.56 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.5724, allocations: 44.97 kB / 0.5044 GB, free: 16.54 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007341/0.5732, allocations: 380 kB / 0.5048 GB, free: 16.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.79e-05/0.5732, allocations: 19.09 kB / 0.5048 GB, free: 16.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.904e-05/0.5733, allocations: 28.38 kB / 0.5048 GB, free: 16.29 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005668/0.5739, allocations: 312.1 kB / 0.5051 GB, free: 16.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.5739, allocations: 2.297 kB / 0.5051 GB, free: 16.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.822e-05/0.5739, allocations: 11.25 kB / 0.5052 GB, free: 16.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.568e-05/0.574, allocations: 5.531 kB / 0.5052 GB, free: 16.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005024/0.5745, allocations: 237.4 kB / 0.5054 GB, free: 16.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.5762, allocations: 1.054 MB / 0.5064 GB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006028/0.5768, allocations: 294.8 kB / 0.5067 GB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.5769, allocations: 2.594 kB / 0.5067 GB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.5769, allocations: 40.19 kB / 0.5067 GB, free: 15.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 2.264e-06/0.5769, allocations: 3.984 kB / 0.5067 GB, free: 15.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.005817/0.5828, allocations: 1.445 MB / 0.5082 GB, free: 15.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.838e-05/0.5828, allocations: 80.83 kB / 0.5082 GB, free: 15.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006555/0.5835, allocations: 323.8 kB / 0.5085 GB, free: 14.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.161e-05/0.5835, allocations: 34.14 kB / 0.5086 GB, free: 14.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.5837, allocations: 194.5 kB / 0.5088 GB, free: 14.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.283e-05/0.5837, allocations: 115.8 kB / 0.5089 GB, free: 14.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.513e-05/0.5838, allocations: 8.75 kB / 0.5089 GB, free: 14.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.5839, allocations: 349.2 kB / 0.5092 GB, free: 14.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/0.5841, allocations: 108.1 kB / 0.5093 GB, free: 14.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002873/0.5844, allocations: 159.6 kB / 0.5095 GB, free: 14.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002775/0.5847, allocations: 129.4 kB / 0.5096 GB, free: 14.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.5847, allocations: 0 / 0.5096 GB, free: 14.38 MB / 362.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pcmd = G.Pm [ -1.0 , 1.0 ; 1.0 , -1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=39) (initialization): time 0.002362/0.5871, allocations: 0.7365 MB / 0.5103 GB, free: 14.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.5872, allocations: 360.9 kB / 0.5107 GB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.5872, allocations: 1.375 kB / 0.5107 GB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001691/0.5889, allocations: 238.4 kB / 0.5109 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004507/0.5894, allocations: 70.67 kB / 0.5109 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007794/0.5972, allocations: 4.993 MB / 0.5158 GB, free: 25.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003629/0.5976, allocations: 29.33 kB / 0.5159 GB, free: 25.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.5976, allocations: 10.98 kB / 0.5159 GB, free: 25.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.438e-06/0.5976, allocations: 3.781 kB / 0.5159 GB, free: 25.4 MB / 378.7 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pcmd = G.Pm [ -1.0 , 1.0 ; 1.0 , -1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002012/0.5997, allocations: 0.6435 MB / 0.5165 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.5997, allocations: 4.078 kB / 0.5165 GB, free: 25.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001559/0.6012, allocations: 230.1 kB / 0.5167 GB, free: 25.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003099/0.6016, allocations: 66.11 kB / 0.5168 GB, free: 25.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007182/0.6088, allocations: 5.003 MB / 0.5217 GB, free: 20.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003313/0.6091, allocations: 23.05 kB / 0.5217 GB, free: 20.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.6091, allocations: 11.19 kB / 0.5217 GB, free: 20.84 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: G.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real g.x_scaled[2]: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: 4 * Number of states: 0 () * Number of discrete variables: 1 (Cps.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003552/0.6095, allocations: 238.1 kB / 0.5219 GB, free: 20.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.004e-05/0.6096, allocations: 38.81 kB / 0.522 GB, free: 20.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.611, allocations: 0.51 MB / 0.5225 GB, free: 20.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.6111, allocations: 7.625 kB / 0.5225 GB, free: 20.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.6111, allocations: 0 / 0.5225 GB, free: 20.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.6111, allocations: 3.188 kB / 0.5225 GB, free: 20.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002129/0.6132, allocations: 0.9634 MB / 0.5234 GB, free: 20.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.6132, allocations: 1.781 kB / 0.5234 GB, free: 20.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002797/0.6135, allocations: 55.8 kB / 0.5235 GB, free: 20.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009802/0.6145, allocations: 188 kB / 0.5236 GB, free: 20.19 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.6146, allocations: 7.156 kB / 0.5237 GB, free: 20.19 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003775/0.6183, allocations: 1.987 MB / 0.5256 GB, free: 18.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.6183, allocations: 3.953 kB / 0.5256 GB, free: 18.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001598/0.62, allocations: 0.7271 MB / 0.5263 GB, free: 18.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.6201, allocations: 136.5 kB / 0.5264 GB, free: 18.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.468e-05/0.6202, allocations: 13.3 kB / 0.5265 GB, free: 18.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.6205, allocations: 27.03 kB / 0.5265 GB, free: 18.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.48e-05/0.6206, allocations: 19.61 kB / 0.5265 GB, free: 18.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.621e-05/0.6206, allocations: 7.656 kB / 0.5265 GB, free: 18.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003999/0.621, allocations: 270.2 kB / 0.5268 GB, free: 18.43 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.621, allocations: 0 / 0.5268 GB, free: 18.43 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007139/0.6217, allocations: 119.9 kB / 0.5269 GB, free: 18.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (g.x_scaled[1],g.x_scaled[2],Cps.I.y,G.thetap,G.deltag,G.wg) * 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 (25): * Single equations (assignments): 24 * 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: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001849/0.6219, allocations: 120 kB / 0.527 GB, free: 18.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001405/0.6233, allocations: 0.8883 MB / 0.5279 GB, free: 17.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.6233, allocations: 4.312 kB / 0.5279 GB, free: 17.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003415/0.6237, allocations: 280.2 kB / 0.5281 GB, free: 17.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.6241, allocations: 63.94 kB / 0.5282 GB, free: 17.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.6255, allocations: 1.048 MB / 0.5292 GB, free: 17.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003456/0.6258, allocations: 0.8172 MB / 0.53 GB, free: 16.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002072/0.626, allocations: 63.78 kB / 0.5301 GB, free: 16.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.64e-05/0.6261, allocations: 26.59 kB / 0.5301 GB, free: 16.39 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.6261, allocations: 4 kB / 0.5301 GB, free: 16.39 MB / 378.7 MB Notification: Performance of Templates: time 0.008371/0.6345, allocations: 4.784 MB / 0.5348 GB, free: 16.07 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe 2>&1)