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.0009209/0.0009208, allocations: 103.3 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000865/0.0008651, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2022/0.2022, allocations: 22.34 MB / 313.3 MB, free: 13.19 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003418/0.0003419, allocations: 11.98 kB / 381.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3502/0.3505, allocations: 55.97 MB / 437.8 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop): time 0.00222/0.3528, allocations: 2.155 MB / 440 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.354, allocations: 0.8226 MB / 440.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.3542, allocations: 9.344 kB / 440.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002987/0.3545, allocations: 34.86 kB / 440.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.3548, allocations: 106.1 kB / 440.9 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003615/0.3551, allocations: 163.6 kB / 441.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.3554, allocations: 279.6 kB / 441.4 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001803/0.3556, allocations: 101.3 kB / 441.5 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001852/0.3558, allocations: 148.3 kB / 441.6 MB, free: 36.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.356, allocations: 155.5 kB / 441.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.831e-05/0.3561, allocations: 11.38 kB / 441.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.784e-05/0.3561, allocations: 13.5 kB / 441.8 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.111e-05/0.3562, allocations: 70.98 kB / 441.9 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.9e-05/0.3562, allocations: 81.52 kB / 441.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.3565, allocations: 296.2 kB / 442.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.284e-06/0.3565, allocations: 0 / 442.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3565, allocations: 0 / 442.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3565, allocations: 0 / 442.2 MB, free: 36.52 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.001181/0.3577, allocations: 0.6671 MB / 442.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.3577, allocations: 10.28 kB / 442.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.38e-05/0.3578, allocations: 47.44 kB / 442.9 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005144/0.3583, allocations: 358.1 kB / 443.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.3583, allocations: 17.5 kB / 443.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.3584, allocations: 35.12 kB / 443.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004576/0.3589, allocations: 315.2 kB / 443.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.3589, allocations: 0 / 443.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.3589, allocations: 14.98 kB / 443.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.3589, allocations: 6.156 kB / 443.7 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000403/0.3593, allocations: 235.4 kB / 443.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00134/0.3607, allocations: 1.043 MB / 445 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004722/0.3612, allocations: 301.7 kB / 445.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.3612, allocations: 2.969 kB / 445.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.077e-05/0.3613, allocations: 41.25 kB / 445.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.953e-06/0.3613, allocations: 0 / 445.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.004445/0.3657, allocations: 1.368 MB / 446.7 MB, free: 33.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.3658, allocations: 80.86 kB / 446.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004262/0.3662, allocations: 356.4 kB / 447.1 MB, free: 33.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.3662, allocations: 33.64 kB / 447.1 MB, free: 33.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.527e-05/0.3663, allocations: 197.6 kB / 447.3 MB, free: 33.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.378e-05/0.3664, allocations: 112.8 kB / 447.4 MB, free: 33.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.427e-05/0.3664, allocations: 4 kB / 447.4 MB, free: 33.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.462e-05/0.3665, allocations: 356.1 kB / 447.8 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001896/0.3667, allocations: 108.1 kB / 447.9 MB, free: 32.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000208/0.3669, allocations: 160 kB / 448 MB, free: 32.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.3671, allocations: 128.4 kB / 448.2 MB, free: 32.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.3671, allocations: 0 / 448.2 MB, free: 32.85 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.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.001903/0.369, allocations: 0.7229 MB / 448.9 MB, free: 32.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.711e-05/0.3692, allocations: 374.3 kB / 449.2 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.3692, allocations: 0 / 449.2 MB, free: 32.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/0.3707, allocations: 223.6 kB / 449.5 MB, free: 32.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003507/0.371, allocations: 74.86 kB / 449.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005372/0.3764, allocations: 4.922 MB / 454.5 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003612/0.3768, allocations: 32.42 kB / 454.5 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.164e-05/0.3768, allocations: 13.09 kB / 454.5 MB, free: 27.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.296e-06/0.3768, allocations: 5.156 kB / 454.5 MB, free: 27.52 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.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.001705/0.3786, allocations: 0.6221 MB / 455.1 MB, free: 27.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.3786, allocations: 3.781 kB / 455.1 MB, free: 27.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001445/0.38, allocations: 226.7 kB / 455.4 MB, free: 27.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003008/0.3803, allocations: 68.98 kB / 455.4 MB, free: 27.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005173/0.3855, allocations: 4.932 MB / 460.4 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003613/0.3859, allocations: 20.45 kB / 460.4 MB, free: 22.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.34e-05/0.3859, allocations: 15.06 kB / 460.4 MB, free: 22.61 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 (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.0003135/0.3862, allocations: 241.2 kB / 460.6 MB, free: 22.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.981e-05/0.3863, allocations: 39.34 kB / 460.7 MB, free: 22.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.3877, allocations: 0.4924 MB / 461.2 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3877, allocations: 4.031 kB / 461.2 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.3877, allocations: 0 / 461.2 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.3877, allocations: 0 / 461.2 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.3894, allocations: 0.9547 MB / 462.1 MB, free: 21.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.3895, allocations: 128 / 462.1 MB, free: 21.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002635/0.3897, allocations: 58.64 kB / 462.2 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009392/0.3907, allocations: 192.2 kB / 462.4 MB, free: 21.61 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.825e-05/0.3907, allocations: 10.64 kB / 462.4 MB, free: 21.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003436/0.3942, allocations: 1.988 MB / 464.4 MB, free: 20.06 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3942, allocations: 0 / 464.4 MB, free: 20.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001655/0.3959, allocations: 0.7166 MB / 465.1 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.396, allocations: 132.4 kB / 465.2 MB, free: 19.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.783e-05/0.3961, allocations: 11.05 kB / 465.2 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002987/0.3964, allocations: 29.27 kB / 465.2 MB, free: 19.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.633e-05/0.3964, allocations: 25.7 kB / 465.3 MB, free: 19.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.3965, allocations: 10.44 kB / 465.3 MB, free: 19.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004299/0.3969, allocations: 262.4 kB / 465.5 MB, free: 19.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3969, allocations: 0 / 465.5 MB, free: 19.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008695/0.3978, allocations: 118.3 kB / 465.7 MB, free: 19.43 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 (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.0002028/0.398, allocations: 107.4 kB / 465.8 MB, free: 19.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.3995, allocations: 0.9032 MB / 466.7 MB, free: 18.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3996, allocations: 5.156 kB / 466.7 MB, free: 18.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004063/0.4, allocations: 270 kB / 466.9 MB, free: 18.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004614/0.4004, allocations: 62.92 kB / 467 MB, free: 18.53 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.4023, allocations: 1.028 MB / 468 MB, free: 17.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004187/0.4028, allocations: 0.8249 MB / 468.8 MB, free: 17.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002478/0.403, allocations: 66.58 kB / 468.9 MB, free: 17.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.4031, allocations: 27.97 kB / 468.9 MB, free: 17.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4031, allocations: 0 / 468.9 MB, free: 17.14 MB / 350.1 MB Notification: Performance of Templates: time 0.0122/0.4153, allocations: 4.905 MB / 473.8 MB, free: 16.84 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: