Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_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_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001412, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001892/0.001892, allocations: 190.9 kB / 16.25 MB, free: 6.629 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.429/1.429, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1981/0.1981, allocations: 22.35 MB / 312.4 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002135, allocations: 63.91 kB / 380.3 MB, free: 11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2996, allocations: 54.94 MB / 435.2 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003045/0.3027, allocations: 2.634 MB / 437.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00125/0.3039, allocations: 0.7943 MB / 438.7 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001656/0.3041, allocations: 9.312 kB / 438.7 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003366/0.3045, allocations: 71.91 kB / 438.7 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002721/0.3048, allocations: 116.9 kB / 438.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003023/0.3051, allocations: 189.1 kB / 439 MB, free: 36.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003856/0.3055, allocations: 0.5512 MB / 439.6 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.3057, allocations: 125.1 kB / 439.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/0.3059, allocations: 237.6 kB / 439.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.3061, allocations: 255.3 kB / 440.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.186e-05/0.3062, allocations: 35.56 kB / 440.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.897e-05/0.3062, allocations: 37.22 kB / 440.3 MB, free: 36.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.092e-05/0.3063, allocations: 117.2 kB / 440.4 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.3064, allocations: 198 kB / 440.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002656/0.3067, allocations: 421.6 kB / 441 MB, free: 36.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3067, allocations: 0 / 441 MB, free: 36.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3067, allocations: 0 / 441 MB, free: 36.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.3067, allocations: 0 / 441 MB, free: 36.07 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001661/0.3084, allocations: 0.8373 MB / 441.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.3084, allocations: 11.28 kB / 441.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.572e-05/0.3085, allocations: 51.72 kB / 441.9 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000699/0.3092, allocations: 433.8 kB / 442.3 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.069e-05/0.3093, allocations: 23.56 kB / 442.3 MB, free: 35.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.79e-05/0.3093, allocations: 38.19 kB / 442.4 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004262/0.3098, allocations: 317.9 kB / 442.7 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.3098, allocations: 3.938 kB / 442.7 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.3098, allocations: 14.94 kB / 442.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.3098, allocations: 12 kB / 442.7 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003671/0.3102, allocations: 227.2 kB / 442.9 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001275/0.3115, allocations: 1.073 MB / 444 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007053/0.3122, allocations: 424.9 kB / 444.4 MB, free: 34.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000208/0.3124, allocations: 159.8 kB / 444.6 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.3125, allocations: 10.17 kB / 444.6 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.435e-05/0.3125, allocations: 41.86 kB / 444.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.513e-06/0.3125, allocations: 3.938 kB / 444.6 MB, free: 33.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.002827/0.3153, allocations: 1.181 MB / 445.8 MB, free: 33.33 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.157e-05/0.3153, allocations: 64.88 kB / 445.9 MB, free: 33.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006563/0.316, allocations: 426.9 kB / 446.3 MB, free: 33.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.335e-05/0.316, allocations: 36.14 kB / 446.3 MB, free: 33.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.388e-05/0.3161, allocations: 207.6 kB / 446.5 MB, free: 32.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.131e-05/0.3162, allocations: 150.6 kB / 446.7 MB, free: 32.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.098e-05/0.3163, allocations: 73.56 kB / 446.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.892e-05/0.3164, allocations: 353.4 kB / 447.1 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.3166, allocations: 119.3 kB / 447.2 MB, free: 32.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.3168, allocations: 176 kB / 447.4 MB, free: 32.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004125/0.3209, allocations: 0.926 MB / 448.3 MB, free: 31.96 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3209, allocations: 0 / 448.3 MB, free: 31.96 MB / 350.1 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge2.Pcmd ; Ge2.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=54) (initialization): time 0.002149/0.3231, allocations: 0.9592 MB / 449.3 MB, free: 31.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3231, allocations: 5.125 kB / 449.3 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.3231, allocations: 6.562 kB / 449.3 MB, free: 31.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001752/0.3249, allocations: 257 kB / 449.5 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003393/0.3252, allocations: 85.83 kB / 449.6 MB, free: 31.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007112/0.3324, allocations: 8.604 MB / 458.2 MB, free: 23.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005105/0.3329, allocations: 48.67 kB / 458.3 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.3329, allocations: 15.78 kB / 458.3 MB, free: 23.05 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.000223/0.3332, allocations: 161.2 kB / 458.4 MB, free: 22.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.091e-05/0.3332, allocations: 39.59 kB / 458.5 MB, free: 22.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.3347, allocations: 0.5495 MB / 459 MB, free: 22.67 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.3347, allocations: 3.281 kB / 459 MB, free: 22.67 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.3347, allocations: 7.406 kB / 459 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.3347, allocations: 0 / 459 MB, free: 22.66 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/0.3366, allocations: 1.035 MB / 460.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.3366, allocations: 1.062 kB / 460.1 MB, free: 22.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/0.3369, allocations: 62.8 kB / 460.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001007/0.3379, allocations: 186.5 kB / 460.3 MB, free: 22.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.349e-05/0.338, allocations: 15.7 kB / 460.3 MB, free: 22.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004023/0.342, allocations: 2.405 MB / 462.7 MB, free: 20.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.342, allocations: 7.875 kB / 462.7 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001655/0.3437, allocations: 0.7679 MB / 463.5 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.324e-05/0.3438, allocations: 121.7 kB / 463.6 MB, free: 19.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.386e-05/0.3439, allocations: 9.938 kB / 463.6 MB, free: 19.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004049/0.3443, allocations: 41.73 kB / 463.7 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.33e-05/0.3444, allocations: 30.45 kB / 463.7 MB, free: 19.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.3444, allocations: 6.938 kB / 463.7 MB, free: 19.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006663/0.3451, allocations: 332 kB / 464 MB, free: 19.56 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3451, allocations: 0 / 464 MB, free: 19.56 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005934/0.3457, allocations: 91.69 kB / 464.1 MB, free: 19.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (G1.x_scaled[1],G2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.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 (32): * 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: 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,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001178/0.3458, allocations: 116.6 kB / 464.2 MB, free: 19.45 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009463/0.3467, allocations: 0.6906 MB / 464.9 MB, free: 18.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3468, allocations: 0 / 464.9 MB, free: 18.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004201/0.3472, allocations: 325.2 kB / 465.2 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000444/0.3476, allocations: 60.61 kB / 465.3 MB, free: 18.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.3491, allocations: 1.207 MB / 466.5 MB, free: 17.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002335/0.3494, allocations: 0.8318 MB / 467.3 MB, free: 17.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.3496, allocations: 45.91 kB / 467.4 MB, free: 17.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.059e-05/0.3497, allocations: 30.09 kB / 467.4 MB, free: 17.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3497, allocations: 3.938 kB / 467.4 MB, free: 17.22 MB / 350.1 MB Notification: Performance of Templates: time 0.009798/0.3595, allocations: 5.093 MB / 472.5 MB, free: 16.88 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.sim & ./AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.pipe 2>&1)