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/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009714/0.0009713, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 187.3 kB / 16.92 MB, free: 6.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1976/0.1976, allocations: 22.36 MB / 314.4 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002987/0.0002988, allocations: 4 kB / 383.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2609, allocations: 55.97 MB / 439.2 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop): time 0.00217/0.2631, allocations: 2.266 MB / 441.5 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001148/0.2643, allocations: 0.8433 MB / 442.3 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.2644, allocations: 9.969 kB / 442.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.2648, allocations: 53.86 kB / 442.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001942/0.265, allocations: 72.86 kB / 442.5 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.2653, allocations: 192 kB / 442.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003277/0.2657, allocations: 425.6 kB / 443.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.2659, allocations: 125.7 kB / 443.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001691/0.266, allocations: 143.5 kB / 443.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001879/0.2662, allocations: 158.9 kB / 443.5 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.091e-05/0.2663, allocations: 13.5 kB / 443.5 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.386e-05/0.2663, allocations: 10.75 kB / 443.5 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.219e-05/0.2664, allocations: 77.98 kB / 443.6 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.2665, allocations: 176.1 kB / 443.8 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002028/0.2667, allocations: 291.6 kB / 444.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2668, allocations: 0 / 444.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2668, allocations: 3.938 kB / 444.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.753e-06/0.2668, allocations: 0 / 444.1 MB, free: 36.6 MB / 350.1 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.001119/0.2679, allocations: 0.6673 MB / 444.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.2679, allocations: 15.75 kB / 444.7 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.97e-05/0.268, allocations: 45.78 kB / 444.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004775/0.2685, allocations: 363.3 kB / 445.1 MB, free: 35.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.718e-05/0.2685, allocations: 18.09 kB / 445.2 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.2686, allocations: 40.06 kB / 445.2 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004532/0.269, allocations: 317.5 kB / 445.5 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.2691, allocations: 0 / 445.5 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.2691, allocations: 10.84 kB / 445.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.2691, allocations: 12.25 kB / 445.5 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004257/0.2695, allocations: 237.1 kB / 445.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.2708, allocations: 1.04 MB / 446.8 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004871/0.2713, allocations: 307.9 kB / 447.1 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.2715, allocations: 140.8 kB / 447.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.2716, allocations: 3.156 kB / 447.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.632e-05/0.2716, allocations: 42.44 kB / 447.3 MB, free: 34.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.054e-06/0.2716, allocations: 3.984 kB / 447.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.004599/0.2762, allocations: 1.368 MB / 448.7 MB, free: 33.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.2763, allocations: 83.64 kB / 448.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004528/0.2767, allocations: 360.4 kB / 449.1 MB, free: 33.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.2768, allocations: 33.7 kB / 449.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.157e-05/0.2769, allocations: 200.8 kB / 449.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.004e-05/0.2769, allocations: 109.7 kB / 449.4 MB, free: 33.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/0.277, allocations: 35.33 kB / 449.5 MB, free: 33.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.787e-05/0.277, allocations: 345.5 kB / 449.8 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.2773, allocations: 111.7 kB / 449.9 MB, free: 32.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.2775, allocations: 170.2 kB / 450.1 MB, free: 32.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004144/0.2816, allocations: 0.8983 MB / 451 MB, free: 32.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2817, allocations: 0 / 451 MB, free: 32.66 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd 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.002016/0.2837, allocations: 0.713 MB / 451.7 MB, free: 32.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.598e-05/0.2837, allocations: 120.5 kB / 451.8 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.2837, allocations: 0 / 451.8 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001592/0.2853, allocations: 226.2 kB / 452 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.2857, allocations: 74.84 kB / 452.1 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005211/0.2909, allocations: 4.867 MB / 457 MB, free: 27.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.2913, allocations: 26.52 kB / 457 MB, free: 27.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.2913, allocations: 11.88 kB / 457 MB, free: 27.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.173e-06/0.2913, allocations: 6.219 kB / 457 MB, free: 27.61 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ G.Pm ; G.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001772/0.2931, allocations: 0.6453 MB / 457.7 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.667e-06/0.2931, allocations: 3.875 kB / 457.7 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.2946, allocations: 222.5 kB / 457.9 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.295, allocations: 71.86 kB / 457.9 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004952/0.2999, allocations: 4.884 MB / 462.8 MB, free: 22.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.3002, allocations: 27.12 kB / 462.9 MB, free: 22.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.966e-05/0.3003, allocations: 6.25 kB / 462.9 MB, free: 22.69 MB / 350.1 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 (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.000223/0.3005, allocations: 240 kB / 463.1 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.561e-05/0.3006, allocations: 36.94 kB / 463.1 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001458/0.302, allocations: 0.4981 MB / 463.6 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.302, allocations: 7.062 kB / 463.6 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.3021, allocations: 0.9688 kB / 463.6 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3021, allocations: 3.141 kB / 463.6 MB, free: 22.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001794/0.3039, allocations: 0.9508 MB / 464.6 MB, free: 21.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3039, allocations: 4 kB / 464.6 MB, free: 21.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002672/0.3042, allocations: 54.8 kB / 464.7 MB, free: 21.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001026/0.3052, allocations: 186.3 kB / 464.8 MB, free: 21.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.3052, allocations: 6.656 kB / 464.8 MB, free: 21.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003144/0.3084, allocations: 1.95 MB / 466.8 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3084, allocations: 0 / 466.8 MB, free: 20.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.31, allocations: 0.705 MB / 467.5 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.3101, allocations: 137.1 kB / 467.6 MB, free: 19.69 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.572e-05/0.3102, allocations: 18.44 kB / 467.6 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002947/0.3105, allocations: 25.81 kB / 467.7 MB, free: 19.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.529e-05/0.3105, allocations: 24 kB / 467.7 MB, free: 19.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.3105, allocations: 4.812 kB / 467.7 MB, free: 19.67 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003775/0.3109, allocations: 266.5 kB / 468 MB, free: 19.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3109, allocations: 4 kB / 468 MB, free: 19.53 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000708/0.3117, allocations: 115 kB / 468.1 MB, free: 19.52 MB / 350.1 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000105/0.3118, allocations: 109.8 kB / 468.2 MB, free: 19.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.3129, allocations: 0.9015 MB / 469.1 MB, free: 18.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3129, allocations: 0 / 469.1 MB, free: 18.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000358/0.3132, allocations: 283.6 kB / 469.4 MB, free: 18.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004869/0.3137, allocations: 60.45 kB / 469.4 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001375/0.3151, allocations: 1.108 MB / 470.5 MB, free: 17.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.3154, allocations: 0.812 MB / 471.3 MB, free: 17.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001021/0.3155, allocations: 25.75 kB / 471.4 MB, free: 17.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3155, allocations: 0 / 471.4 MB, free: 17.18 MB / 350.1 MB Notification: Performance of Templates: time 0.009829/0.3253, allocations: 6.484 MB / 477.9 MB, free: 16.72 MB / 350.1 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.pipe 2>&1)