/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 48 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 27232
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1051.6+2109_monthly_bin118
RA = 162.913, Dec = 21.1651
tmin = 542851201, tmax = 545443201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='287273', job_status='RUN', time_executed='2021-10-22 05:01:26.163393', time_epoch_executed='1634904086.16' WHERE source_name='4FGL J1051.6+2109' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287273

Creating custom pfile directory:
/scratch/kocevski/287273/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=542851201.0 && nMetStart<545443201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=542851201.0 && nMetStart<545443201.0' /Data/Flight/Level1/LPA

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287273/ft1_4FGL_J1051.6+2109_monthly_bin118.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=542851201.0 && nMetStart<545443201.0' /Data/Flight/Level1/LPA

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287273/ft1_4FGL_J1051.6+2109_monthly_bin118.fits outfile=/scratch/kocevski/287273/ft1_filteredMKT_4FGL_J1051.6+2109_monthly_bin118.fits ra=162.913 dec=21.1651 rad=12.0 tmin=542851201.0 tmax=545443201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 18.42
user 17.85
sys 0.52

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/287273/ft1_filteredMKT_4FGL_J1051.6+2109_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/287273/ft1_filtered_4FGL_J1051.6+2109_monthly_bin118.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.60
user 0.44
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287273/ft1_filtered_4FGL_J1051.6+2109_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/287273/ltcube_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits
.....................!
real 39.68
user 39.24
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287273/ft1_filtered_4FGL_J1051.6+2109_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/287273/ltcube_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits outfile=/scratch/kocevski/287273/expmap_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/287273/ltcube_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits
.....................!
real 192.02
user 186.76
sys 4.88

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 184 point sources and 0 extended sources

Setting source of interest to:
4FGL J1051.6+2109 @ 162.913 21.1651

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/287273/ft1_filtered_4FGL_J1051.6+2109_monthly_bin118.fits scfile=/scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits outfile=/scratch/kocevski/287273/cmap_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=162.913 yref=21.1651 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.61
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287273/ft1_filtered_4FGL_J1051.6+2109_monthly_bin118.fits scfile=/scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits outfile=/scratch/kocevski/287273/cmap_HighResolution_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=162.913 yref=21.1651 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.61
user 0.45
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287273/ft1_filtered_4FGL_J1051.6+2109_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287273/Model_4FGL_J1051.6+2109_monthly_bin118.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/287273/ft1_filtered_4FGL_J1051.6+2109_monthly_bin118.fits.....................!
real 79.73
user 78.27
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/287273/ft1_filtered_4FGL_J1051.6+2109_monthly_bin118.fits', '/scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits', expMap='/scratch/kocevski/287273/expmap_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits', expCube='/scratch/kocevski/287273/ltcube_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/287273/Model_4FGL_J1051.6+2109_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1051.6+2109'

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.594e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/287273/ft1_filtered_4FGL_J1051.6+2109_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/287273/ft2_4FGL_J1051.6+2109_monthly_bin118.fits
Exposure map: /scratch/kocevski/287273/expmap_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits
Exposure cube: /scratch/kocevski/287273/ltcube_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/287273/Model_4FGL_J1051.6+2109_monthly_bin118.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9310.78724063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9310.77751386

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .30012E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16366E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1574       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0140       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.045       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9418       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3686       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3712       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.6371       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.681       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.706       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84232       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0978       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9310.777     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     2038 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.3814        .94836E-06** at limit **
   2  Prefactor     .10007E-03    216.85       -.19478E-03** at limit **
   3  Prefactor     .10000E-03    116.80        .49219E-04** at limit **
   4  Prefactor     .10000E-03    6.3759        .65878E-06** at limit **
   5  Prefactor     2.1579        2.6823        .23738E-06   -.56083E-03
   6  Prefactor     6.0163        4.5050       -.11818E-05   -.21937E-03
   7  Prefactor     11.052        8.7513       -.37695E-05    .14756E-03
   8  Prefactor     .10000E-03    18.842       -.23534E-06** at limit **
   9  Prefactor     .10000E-03    3.1314        .10783E-06** at limit **
  10  Prefactor     .10000E-03    8.4635       -.14116E-05** at limit **
  11  Prefactor     3.9428        10.986       -.52036E-05   -.89572E-04
  12  norm          1.3695        .86410       -.14573E-06   -.80739E-03
  13  Prefactor     1.3727        3.1050       -.16612E-05   -.12988E-02
  14  Prefactor     .10000E-03    3.0107        .17695E-06** at limit **
  15  norm          .10000E-03    4.8366       -.76229E-07** at limit **
  16  norm          5.6546        11.793        .65857E-05   -.60796E-04
  17  Prefactor     11.680        6.9387       -.40778E-06   -.24344E-04
  18  Prefactor     26.724        25.440        .56587E-06    .11329E-04
  19  Normalizat    .84219        .15260        .23366E-05    .98254E-03
  20  Prefactor     1.0976        .14336        .26532E-06    .12964E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.15789
  Prefactor  = 6.01628
  Prefactor  = 11.0521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.94275
  norm       = 1.36952
  Prefactor  = 1.37273
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.65463
  Prefactor  = 11.6795
  Prefactor  = 26.7241
  Normalizat = 0.842188
  Prefactor  = 1.09757
 **********
 **   18 **HESSE 
 **********

 FCN=   9310.777     FROM HESSE     STATUS=OK           289 CALLS     2327 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.5045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10007E-03    216.25        .39656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    116.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.4591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1579        2.6581        .16479E-03   -1.5414    
   6  Prefactor     6.0163        4.5147        .16373E-03   -1.5217    
   7  Prefactor     11.052        8.6985        .12055E-03   -1.5043    
   8  Prefactor     .10000E-03    18.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1374        .16665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9428        10.921        .20318E-03   -1.5311    
  12  norm          1.3695        .85118        .65897E-04   -1.5474    
  13  Prefactor     1.3727        3.0756        .24519E-03   -1.5474    
  14  Prefactor     .10000E-03    3.1432        .32674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.9711        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.6546        11.763        .16919E-03   -1.5232    
  17  Prefactor     11.680        6.9412        .11721E-03   -1.5024    
  18  Prefactor     26.724        25.457        .77520E-04   -1.4674    
  19  Normalizat    .84219        .17624        .26351E-03   -.98522    
  20  Prefactor     1.0976        .16579        .23681E-03   -.89544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91985e-09
Minuit parameter uncertainties:
  1  8.47815e-06
  2  0.00787914
  3  9.70182e-05
  4  5.87026e-05
  5  2.65827
  6  4.51497
  7  8.69948
  8  2.22074e-06
  9  4.34536e-05
  10  1.20819e-05
  11  10.9266
  12  0.851191
  13  3.07594
  14  2.70661e-06
  15  2.57353e-05
  16  11.768
  17  6.94171
  18  25.4673
  19  0.176365
  20  0.16587
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 9310.777498

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  1.105e+01  8.699e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  2.771e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.098e+00  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.422e-01  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.72
Ra Dec: 162.913 21.165
Photon Index (Fixed Index): 2.77 +/- 0.00
Photon Flux (Fixed Index): 5.60e-08 +/- 4.40e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.01e-05

TS (Fixed Index): 2.72
Ra Dec: 162.913 21.165
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287273/likelihoodResults_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9310.72904474
delta logL = 0.0484532585597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9310.71639
delta logL = 0.0611079977243

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.7019       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0164       1.0000          .0000       10.000    
     3 'Normalizat'    .83234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9310.716     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      281 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7079        9.1786        .64327E-03    .14477E-03
   2  Index         3.0178        .78894        .93035E-02    .35163E-03
   3  Normalizat    .83231        .16777        .26492E-03   -.23174E-05
   4  Prefactor     1.1053        .16722        .23621E-03   -.22140E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.70791
  Index      = 3.01782
  Normalizat = 0.832305
  Prefactor  = 1.10529
 **********
 **   18 **HESSE 
 **********

 FCN=   9310.716     FROM HESSE     STATUS=OK            27 CALLS      308 TOTAL
                     EDM=   .50E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7079        8.6821        .12865E-03   -1.5085    
   2  Index         3.0178        .74603        .18607E-02   -.40763    
   3  Normalizat    .83231        .16798        .10597E-04   -.98881    
   4  Prefactor     1.1053        .16732        .94483E-05   -.89298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97671e-12
Minuit parameter uncertainties:
  1  8.68324
  2  0.749357
  3  0.168085
  4  0.167396
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287273': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9310.71638559
delta logL = 0.0611124133593

Extracting fit parameters...

4FGL J1051.6+2109
   Spectrum: PowerLaw
244    Prefactor:  9.708e+00  8.683e+00  1.000e-04  1.000e+04 ( 1.000e-12)
245        Index:  3.018e+00  7.494e-01  0.000e+00  1.000e+01 (-1.000e+00)
246        Scale:  5.065e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.105e+00  1.674e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  8.323e-01  1.681e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.87
Ra Dec: 162.913 21.165
Photon Index (Free Index): 3.02 +/- 0.75
Photon Flux (Free Index): 6.44e-08 +/- 5.00e-08
Energy Flux (Free Index): 1.27e-05 +/- 9.13e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/287273/cmap_HighResolution_542851201_545443201_4FGL_J1051.6+2109_monthly_bin118.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/287273

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='5.60e-08', energy_flux2='1.27e-05', photon_flux_error='4.40e-08', dlogl='6.11e-02', energy_flux='1.28e-05', photon_flux2='6.44e-08', job_status='DONE', time_completed='2021-10-22 05:16:15.222553', photon_index_error2='0.75', photon_index2='3.02', ts='2.72', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='9.13e-06', EG='0.84', time_epoch_completed='1634904975.22', return_code='0', job_id='287273', GAL2='1.11', EG2='0.83', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='5.00e-08', ts2='2.87', photon_index='2.77' WHERE bin_id='118' AND source_name='4FGL J1051.6+2109' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 05:16:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 287273: <4FGL_J1051.6+2109_monthly_bin118> in cluster <slac> Done

Job <4FGL_J1051.6+2109_monthly_bin118> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Oct 22 05:00:26 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct 22 05:00:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct 22 05:00:28 2021
Terminated at Fri Oct 22 05:16:15 2021
Results reported at Fri Oct 22 05:16:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1051.6+2109_monthly_bin118 162.913 21.1651 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1051.6+2109 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   866.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             299.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

The output (if any) is above this job summary.

