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.0011/0.0011, allocations: 108 kB / 15.61 MB, free: 152 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.001659/0.001659, allocations: 195 kB / 16.53 MB, free: 6.664 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.411/1.411, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2553/0.2553, allocations: 22.35 MB / 312.7 MB, free: 12.45 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001358, allocations: 63.91 kB / 380.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2946, allocations: 54.95 MB / 435.8 MB, free: 39.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.003271/0.2979, allocations: 2.601 MB / 438.4 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.2992, allocations: 0.79 MB / 439.2 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.2993, allocations: 9.781 kB / 439.2 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003359/0.2997, allocations: 93.17 kB / 439.3 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002536/0.2999, allocations: 141.2 kB / 439.4 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002844/0.3002, allocations: 210 kB / 439.6 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003876/0.3006, allocations: 0.5464 MB / 440.1 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.3008, allocations: 128.6 kB / 440.3 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.301, allocations: 234 kB / 440.5 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002611/0.3013, allocations: 249.8 kB / 440.7 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.317e-05/0.3014, allocations: 34.12 kB / 440.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.73e-05/0.3014, allocations: 37.47 kB / 440.8 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.3016, allocations: 114.2 kB / 440.9 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.3017, allocations: 206.4 kB / 441.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000288/0.302, allocations: 412.5 kB / 441.5 MB, free: 36.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.302, allocations: 0 / 441.5 MB, free: 36.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.302, allocations: 0 / 441.5 MB, free: 36.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.302, allocations: 0 / 441.5 MB, free: 36.2 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.001629/0.3037, allocations: 0.8449 MB / 442.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.3037, allocations: 8.219 kB / 442.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.366e-05/0.3038, allocations: 56.25 kB / 442.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006894/0.3045, allocations: 435.1 kB / 442.9 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.3045, allocations: 22.22 kB / 442.9 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.12e-05/0.3046, allocations: 39.84 kB / 442.9 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003928/0.305, allocations: 317 kB / 443.2 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.305, allocations: 4 kB / 443.2 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.561e-05/0.305, allocations: 10.56 kB / 443.2 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.305, allocations: 9.375 kB / 443.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003461/0.3054, allocations: 232.7 kB / 443.5 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.3066, allocations: 1.066 MB / 444.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006765/0.3073, allocations: 420.9 kB / 445 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002029/0.3075, allocations: 168.5 kB / 445.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.374e-05/0.3075, allocations: 13.97 kB / 445.1 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.3076, allocations: 41.95 kB / 445.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.422e-06/0.3076, allocations: 4 kB / 445.2 MB, free: 34.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.002686/0.3103, allocations: 1.185 MB / 446.4 MB, free: 33.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.133e-05/0.3103, allocations: 59.59 kB / 446.4 MB, free: 33.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006454/0.311, allocations: 435.6 kB / 446.9 MB, free: 33.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.311, allocations: 32.39 kB / 446.9 MB, free: 33.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.306e-05/0.3111, allocations: 204.1 kB / 447.1 MB, free: 32.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.686e-05/0.3111, allocations: 151.9 kB / 447.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.379e-05/0.3112, allocations: 70.39 kB / 447.3 MB, free: 32.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.6e-05/0.3113, allocations: 359.7 kB / 447.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001721/0.3115, allocations: 115.6 kB / 447.8 MB, free: 32.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001843/0.3117, allocations: 176.6 kB / 447.9 MB, free: 32.35 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003902/0.3156, allocations: 0.9167 MB / 448.9 MB, free: 32.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3156, allocations: 0 / 448.9 MB, free: 32.08 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.002005/0.3176, allocations: 0.9573 MB / 449.8 MB, free: 31.44 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.3176, allocations: 5.25 kB / 449.8 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.3176, allocations: 6.562 kB / 449.8 MB, free: 31.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001566/0.3192, allocations: 255.7 kB / 450.1 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003122/0.3195, allocations: 83.77 kB / 450.2 MB, free: 31.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006316/0.3259, allocations: 8.607 MB / 458.8 MB, free: 23.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004116/0.3263, allocations: 40.12 kB / 458.8 MB, free: 23.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.3263, allocations: 16.41 kB / 458.8 MB, free: 23.18 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.0001749/0.3265, allocations: 162.3 kB / 459 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.455e-05/0.3266, allocations: 38 kB / 459 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001364/0.3279, allocations: 0.5514 MB / 459.6 MB, free: 22.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.328, allocations: 6.859 kB / 459.6 MB, free: 22.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-06/0.328, allocations: 7.938 kB / 459.6 MB, free: 22.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.328, allocations: 0 / 459.6 MB, free: 22.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001799/0.3298, allocations: 1.03 MB / 460.6 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3298, allocations: 0 / 460.6 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002844/0.3301, allocations: 66.42 kB / 460.7 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009411/0.331, allocations: 183.3 kB / 460.9 MB, free: 22.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.9e-05/0.3311, allocations: 14.02 kB / 460.9 MB, free: 22.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003821/0.3349, allocations: 2.419 MB / 463.3 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3349, allocations: 3.938 kB / 463.3 MB, free: 20.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/0.3365, allocations: 0.7588 MB / 464 MB, free: 19.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.24e-05/0.3366, allocations: 124.8 kB / 464.2 MB, free: 19.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.825e-05/0.3366, allocations: 12.28 kB / 464.2 MB, free: 19.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.337, allocations: 39.42 kB / 464.2 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.848e-05/0.3371, allocations: 26.98 kB / 464.2 MB, free: 19.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.3371, allocations: 11.03 kB / 464.3 MB, free: 19.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005968/0.3377, allocations: 329.6 kB / 464.6 MB, free: 19.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3377, allocations: 0 / 464.6 MB, free: 19.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005962/0.3383, allocations: 92.78 kB / 464.7 MB, free: 19.68 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.0001217/0.3384, allocations: 114.3 kB / 464.8 MB, free: 19.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009906/0.3394, allocations: 0.693 MB / 465.5 MB, free: 19.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.3394, allocations: 0 / 465.5 MB, free: 19.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003942/0.3398, allocations: 320.9 kB / 465.8 MB, free: 18.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/0.3403, allocations: 71.73 kB / 465.9 MB, free: 18.89 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001676/0.342, allocations: 1.056 MB / 466.9 MB, free: 18.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.3423, allocations: 0.8401 MB / 467.8 MB, free: 17.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001609/0.3425, allocations: 43.92 kB / 467.8 MB, free: 17.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.906e-05/0.3425, allocations: 36.16 kB / 467.8 MB, free: 17.49 MB / 350.1 MB Notification: Performance of SimCode: time 1.91e-07/0.3426, allocations: 1.062 kB / 467.8 MB, free: 17.49 MB / 350.1 MB Notification: Performance of Templates: time 0.011/0.3536, allocations: 5.099 MB / 472.9 MB, free: 17.16 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)