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.001011/0.001011, allocations: 91.61 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.001266/0.001266, allocations: 172.7 kB / 15.95 MB, free: 208 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.566/1.566, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2233/0.2233, allocations: 22.34 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0007623/0.0007627, allocations: 8 kB / 381.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.4227, allocations: 55.98 MB / 437.9 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop): time 0.002629/0.4254, allocations: 2.167 MB / 440.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.4268, allocations: 0.8336 MB / 440.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001941/0.427, allocations: 8.625 kB / 440.9 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003599/0.4274, allocations: 53.69 kB / 441 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002077/0.4276, allocations: 64.25 kB / 441 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003714/0.428, allocations: 154.6 kB / 441.2 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004015/0.4284, allocations: 397.6 kB / 441.6 MB, free: 36.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.4286, allocations: 92.53 kB / 441.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002001/0.4288, allocations: 146.4 kB / 441.8 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/0.429, allocations: 169.7 kB / 442 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.036e-05/0.4291, allocations: 12.84 kB / 442 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.703e-05/0.4291, allocations: 9.562 kB / 442 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.784e-05/0.4292, allocations: 71.77 kB / 442.1 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.959e-05/0.4293, allocations: 79.12 kB / 442.1 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.4295, allocations: 299.2 kB / 442.4 MB, free: 36.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.4296, allocations: 0 / 442.4 MB, free: 36.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.4296, allocations: 0 / 442.4 MB, free: 36.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.4296, allocations: 0 / 442.4 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.001291/0.4309, allocations: 0.6731 MB / 443.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.4309, allocations: 11.53 kB / 443.1 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.336e-05/0.431, allocations: 42.66 kB / 443.2 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005207/0.4315, allocations: 358.3 kB / 443.5 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.4316, allocations: 19.03 kB / 443.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.224e-05/0.4316, allocations: 36.14 kB / 443.6 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005107/0.4321, allocations: 311.3 kB / 443.9 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.4322, allocations: 0 / 443.9 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.204e-05/0.4322, allocations: 15.52 kB / 443.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.4322, allocations: 7.625 kB / 443.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004497/0.4327, allocations: 245.4 kB / 444.1 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.4341, allocations: 1.038 MB / 445.2 MB, free: 34.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005043/0.4346, allocations: 302.5 kB / 445.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002097/0.4348, allocations: 129.4 kB / 445.6 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.602e-05/0.4348, allocations: 6.812 kB / 445.6 MB, free: 34.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.4349, allocations: 41.5 kB / 445.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.633e-06/0.4349, allocations: 3.938 kB / 445.6 MB, free: 34.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.004133/0.439, allocations: 1.364 MB / 447 MB, free: 33.87 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.4391, allocations: 80.08 kB / 447.1 MB, free: 33.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004426/0.4395, allocations: 361.2 kB / 447.4 MB, free: 33.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.374e-05/0.4396, allocations: 36.55 kB / 447.5 MB, free: 33.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.4397, allocations: 192.2 kB / 447.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.371e-05/0.4397, allocations: 118.5 kB / 447.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.465e-05/0.4398, allocations: 4 kB / 447.8 MB, free: 33.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.413e-05/0.4398, allocations: 349.1 kB / 448.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.44, allocations: 110.4 kB / 448.2 MB, free: 32.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/0.4403, allocations: 163.9 kB / 448.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000258/0.4405, allocations: 127.4 kB / 448.5 MB, free: 32.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.4406, allocations: 0 / 448.5 MB, free: 32.8 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.001852/0.4424, allocations: 0.7216 MB / 449.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.449e-05/0.4425, allocations: 118.4 kB / 449.3 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.4425, allocations: 0 / 449.3 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/0.4439, allocations: 230.7 kB / 449.6 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003473/0.4442, allocations: 71.61 kB / 449.6 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004933/0.4492, allocations: 4.867 MB / 454.5 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003563/0.4496, allocations: 38.48 kB / 454.5 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.192e-05/0.4496, allocations: 10.44 kB / 454.6 MB, free: 27.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.945e-06/0.4496, allocations: 6.156 kB / 454.6 MB, free: 27.72 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.001611/0.4512, allocations: 0.6239 MB / 455.2 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.637e-06/0.4512, allocations: 0 / 455.2 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/0.4525, allocations: 226.6 kB / 455.4 MB, free: 27.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002954/0.4528, allocations: 69.48 kB / 455.5 MB, free: 27.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004618/0.4575, allocations: 4.879 MB / 460.4 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.4578, allocations: 20.98 kB / 460.4 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.4579, allocations: 12.31 kB / 460.4 MB, free: 22.83 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.0002599/0.4581, allocations: 239.8 kB / 460.6 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.153e-05/0.4582, allocations: 35.84 kB / 460.7 MB, free: 22.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.4595, allocations: 0.4894 MB / 461.1 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.4595, allocations: 2.719 kB / 461.1 MB, free: 22.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-06/0.4595, allocations: 3.938 kB / 461.2 MB, free: 22.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.4595, allocations: 6.047 kB / 461.2 MB, free: 22.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.4613, allocations: 0.9528 MB / 462.1 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.4613, allocations: 7.938 kB / 462.1 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.4616, allocations: 55.72 kB / 462.2 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008647/0.4625, allocations: 185.2 kB / 462.4 MB, free: 21.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.4625, allocations: 7.656 kB / 462.4 MB, free: 21.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003071/0.4656, allocations: 1.946 MB / 464.3 MB, free: 20.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4656, allocations: 0 / 464.3 MB, free: 20.28 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00163/0.4672, allocations: 0.7028 MB / 465 MB, free: 19.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.4674, allocations: 138.8 kB / 465.1 MB, free: 19.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.763e-05/0.4674, allocations: 7.094 kB / 465.2 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002686/0.4677, allocations: 29.41 kB / 465.2 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.139e-05/0.4678, allocations: 16.06 kB / 465.2 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.238e-05/0.4678, allocations: 12.95 kB / 465.2 MB, free: 19.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004216/0.4682, allocations: 264.2 kB / 465.5 MB, free: 19.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4682, allocations: 0 / 465.5 MB, free: 19.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008028/0.4691, allocations: 119.1 kB / 465.6 MB, free: 19.67 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.0001362/0.4692, allocations: 113.3 kB / 465.7 MB, free: 19.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.4706, allocations: 0.903 MB / 466.6 MB, free: 18.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.4706, allocations: 4 kB / 466.6 MB, free: 18.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003833/0.471, allocations: 276 kB / 466.9 MB, free: 18.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005155/0.4715, allocations: 63.88 kB / 466.9 MB, free: 18.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/0.4733, allocations: 1.038 MB / 468 MB, free: 18.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.4736, allocations: 0.812 MB / 468.8 MB, free: 17.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002325/0.4738, allocations: 59.61 kB / 468.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.037e-05/0.4739, allocations: 28.59 kB / 468.9 MB, free: 17.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.4739, allocations: 0 / 468.9 MB, free: 17.36 MB / 350.1 MB Notification: Performance of Templates: time 0.01284/0.4868, allocations: 4.92 MB / 473.8 MB, free: 17.06 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)