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.0008852/0.0008852, allocations: 91.92 kB / 16.02 MB, free: 80 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.0009497/0.0009498, allocations: 179.7 kB / 16.92 MB, free: 6.652 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.293/1.293, allocations: 223.3 MB / 241 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2171/0.2171, allocations: 22.34 MB / 314.4 MB, free: 13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000371/0.0003712, allocations: 19.94 kB / 383.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2687/0.2691, allocations: 55.96 MB / 439.2 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.00237/0.2715, allocations: 2.26 MB / 441.5 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.2728, allocations: 0.7899 MB / 442.3 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002561/0.2731, allocations: 11 kB / 442.3 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003402/0.2734, allocations: 67.95 kB / 442.4 MB, free: 37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003065/0.2738, allocations: 129.2 kB / 442.5 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.2741, allocations: 181.5 kB / 442.7 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003983/0.2745, allocations: 0.5253 MB / 443.2 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001873/0.2747, allocations: 117.5 kB / 443.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.2749, allocations: 201 kB / 443.5 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.2752, allocations: 220.4 kB / 443.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.954e-05/0.2752, allocations: 16.5 kB / 443.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.409e-05/0.2753, allocations: 15.94 kB / 443.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.64e-05/0.2754, allocations: 95.66 kB / 443.8 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.2755, allocations: 193.5 kB / 444 MB, free: 36.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002122/0.2757, allocations: 306.2 kB / 444.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.2757, allocations: 0 / 444.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2757, allocations: 0 / 444.3 MB, free: 36.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.2758, allocations: 0 / 444.3 MB, free: 36.11 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.001599/0.2774, allocations: 0.7782 MB / 445.1 MB, free: 35.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.434e-05/0.2774, allocations: 12.02 kB / 445.1 MB, free: 35.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.883e-05/0.2775, allocations: 46.88 kB / 445.2 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007095/0.2782, allocations: 444.9 kB / 445.6 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.2782, allocations: 24.53 kB / 445.6 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.2783, allocations: 44.42 kB / 445.7 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004182/0.2787, allocations: 317.2 kB / 446 MB, free: 35.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.2787, allocations: 0 / 446 MB, free: 35.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.2788, allocations: 15.12 kB / 446 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.2788, allocations: 8.375 kB / 446 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003676/0.2792, allocations: 234 kB / 446.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001301/0.2805, allocations: 1.069 MB / 447.3 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007022/0.2812, allocations: 423.3 kB / 447.7 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.2814, allocations: 159.1 kB / 447.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.2815, allocations: 9.328 kB / 447.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.64e-05/0.2815, allocations: 46.77 kB / 447.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.593e-06/0.2815, allocations: 0 / 447.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.002842/0.2843, allocations: 1.201 MB / 449.1 MB, free: 33.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.2844, allocations: 59.03 kB / 449.2 MB, free: 33.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007082/0.2851, allocations: 438.5 kB / 449.6 MB, free: 33.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.2851, allocations: 36.11 kB / 449.6 MB, free: 33.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.244e-05/0.2852, allocations: 214 kB / 449.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.66e-05/0.2853, allocations: 142.2 kB / 450 MB, free: 32.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.921e-05/0.2854, allocations: 49.38 kB / 450 MB, free: 32.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.319e-05/0.2854, allocations: 354.7 kB / 450.4 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001891/0.2856, allocations: 124.3 kB / 450.5 MB, free: 32.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.2858, allocations: 170.5 kB / 450.7 MB, free: 32.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004273/0.2901, allocations: 0.9586 MB / 451.6 MB, free: 32.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2901, allocations: 0 / 451.6 MB, free: 32.04 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.002211/0.2923, allocations: 0.9607 MB / 452.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2924, allocations: 6.469 kB / 452.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.2924, allocations: 3.938 kB / 452.6 MB, free: 31.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001715/0.2941, allocations: 281.8 kB / 452.9 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000344/0.2945, allocations: 81.16 kB / 453 MB, free: 31.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006341/0.3008, allocations: 7.972 MB / 460.9 MB, free: 23.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004573/0.3013, allocations: 40.83 kB / 461 MB, free: 23.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.3013, allocations: 23.47 kB / 461 MB, free: 23.79 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.0001759/0.3015, allocations: 156 kB / 461.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.182e-05/0.3016, allocations: 45.36 kB / 461.2 MB, free: 23.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.303, allocations: 0.5606 MB / 461.7 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.303, allocations: 10 kB / 461.8 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.3031, allocations: 0 / 461.8 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3031, allocations: 0 / 461.8 MB, free: 23.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001909/0.305, allocations: 1.049 MB / 462.8 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.305, allocations: 0 / 462.8 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002963/0.3053, allocations: 59.56 kB / 462.9 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/0.3065, allocations: 238.9 kB / 463.1 MB, free: 22.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.3065, allocations: 14.58 kB / 463.1 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003786/0.3103, allocations: 2.21 MB / 465.3 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3103, allocations: 5.25 kB / 465.3 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.3121, allocations: 0.782 MB / 466.1 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.518e-05/0.3121, allocations: 123.9 kB / 466.2 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.674e-05/0.3122, allocations: 8.719 kB / 466.2 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004039/0.3126, allocations: 42.06 kB / 466.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.246e-05/0.3127, allocations: 32.8 kB / 466.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.3127, allocations: 7.938 kB / 466.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006116/0.3133, allocations: 336.1 kB / 466.6 MB, free: 20.46 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3134, allocations: 5.344 kB / 466.7 MB, free: 20.46 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005765/0.3139, allocations: 91.97 kB / 466.7 MB, free: 20.45 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.0001057/0.314, allocations: 106.3 kB / 466.8 MB, free: 20.35 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007971/0.3148, allocations: 0.6766 MB / 467.5 MB, free: 19.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3149, allocations: 2.219 kB / 467.5 MB, free: 19.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003724/0.3152, allocations: 315.4 kB / 467.8 MB, free: 19.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004428/0.3157, allocations: 59.16 kB / 467.9 MB, free: 19.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.3173, allocations: 1.338 MB / 469.2 MB, free: 18.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.3175, allocations: 0.8385 MB / 470.1 MB, free: 18.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001063/0.3177, allocations: 31.88 kB / 470.1 MB, free: 18.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3177, allocations: 1 kB / 470.1 MB, free: 18.07 MB / 350.1 MB Notification: Performance of Templates: time 0.01085/0.3285, allocations: 7.566 MB / 477.7 MB, free: 17.23 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)