/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 112 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 = 73220
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1220.1+7105_monthly_bin9
RA = 185.044, Dec = 71.092
tmin = 260323201, tmax = 262915201
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='791848', job_status='RUN', time_executed='2021-10-23 13:02:42.006380', time_epoch_executed='1635019362.01' WHERE source_name='4FGL J1220.1+7105' and cadence='monthly' and bin_id='9'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/791848

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/791848/ft1_4FGL_J1220.1+7105_monthly_bin9.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/791848/ft1_4FGL_J1220.1+7105_monthly_bin9.fits outfile=/scratch/kocevski/791848/ft1_filteredMKT_4FGL_J1220.1+7105_monthly_bin9.fits ra=185.044 dec=71.092 rad=12.0 tmin=260323201.0 tmax=262915201.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 10.19
user 9.83
sys 0.34

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.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/791848/ft1_filteredMKT_4FGL_J1220.1+7105_monthly_bin9.fits evtable="EVENTS" outfile="/scratch/kocevski/791848/ft1_filtered_4FGL_J1220.1+7105_monthly_bin9.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.83
user 0.63
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/791848/ft1_filtered_4FGL_J1220.1+7105_monthly_bin9.fits" evtable="EVENTS" scfile=/scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits sctable="SC_DATA" outfile=/scratch/kocevski/791848/ltcube_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.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/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits
.....................!
real 130.53
user 129.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/791848/ft1_filtered_4FGL_J1220.1+7105_monthly_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits sctable="SC_DATA" expcube=/scratch/kocevski/791848/ltcube_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.fits outfile=/scratch/kocevski/791848/expmap_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.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/791848/ltcube_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.fits
.....................!
real 193.35
user 187.28
sys 5.69

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 235 point sources and 0 extended sources

Setting source of interest to:
4FGL J1220.1+7105 @ 185.044 71.092

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/791848/ft1_filtered_4FGL_J1220.1+7105_monthly_bin9.fits scfile=/scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits outfile=/scratch/kocevski/791848/cmap_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.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=185.044 yref=71.092 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 1.75
user 0.60
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/791848/ft1_filtered_4FGL_J1220.1+7105_monthly_bin9.fits scfile=/scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits outfile=/scratch/kocevski/791848/cmap_HighResolution_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.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=185.044 yref=71.092 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.77
user 0.59
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/791848/ft1_filtered_4FGL_J1220.1+7105_monthly_bin9.fits evtable="EVENTS" scfile=/scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/791848/Model_4FGL_J1220.1+7105_monthly_bin9.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/791848/ft1_filtered_4FGL_J1220.1+7105_monthly_bin9.fits.....................!
real 596.39
user 594.10
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/791848/ft1_filtered_4FGL_J1220.1+7105_monthly_bin9.fits', '/scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits', expMap='/scratch/kocevski/791848/expmap_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.fits', expCube='/scratch/kocevski/791848/ltcube_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/791848/Model_4FGL_J1220.1+7105_monthly_bin9.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1220.1+7105'

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  6.062e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.189e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/791848/ft1_filtered_4FGL_J1220.1+7105_monthly_bin9.fits
Spacecraft file(s): /scratch/kocevski/791848/ft2_4FGL_J1220.1+7105_monthly_bin9.fits
Exposure map: /scratch/kocevski/791848/expmap_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.fits
Exposure cube: /scratch/kocevski/791848/ltcube_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/791848/Model_4FGL_J1220.1+7105_monthly_bin9.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) = 65587.2230572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4212       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.678       1.0000         .10000E-03   10000.    
     4 'norm      '    .88115       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7504       1.0000         .10000E-03   10000.    
     7 'norm      '    .90220       1.0000         .10000E-03   10000.    
     8 'norm      '    .72668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5036       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0419       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0519       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3986       1.0000         .10000E-03   10000.    
    15 'norm      '    4.1379       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9075       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .77010       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16623E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.4561       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2972       1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.629       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .40584E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.8405       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.1841       1.0000         .10000E-03   10000.    
    28 'Prefactor '    2.2056       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11149       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .46302E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    2.0849       1.0000         .10000E-03   10000.    
    32 'Prefactor '    9.1387       1.0000         .10000E-03   10000.    
    33 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.0825       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .91297       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   65587.11     FROM MIGRAD    STATUS=CONVERGED    997 CALLS     4497 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4206        2.2891         .0000        .38822E-01
   2  Prefactor     .10000E-03    3.6216         .0000    ** at limit **
   3  Prefactor     32.676        12.884         .0000       -.56052E-04
   4  norm          .88112        1.1515         .0000        .12607E-01
   5  Prefactor     .10000E-03    8.5691         .0000    ** at limit **
   6  Prefactor     1.7506        1.3043         .0000        .63631E-02
   7  norm          .90220        .21128         .0000        .33499E-02
   8  norm          .72662        .52678         .0000        .76365E-02
   9  Prefactor     .10000E-03    1.1630         .0000    ** at limit **
  10  Prefactor     .10000E-03    .28031         .0000    ** at limit **
  11  Prefactor     3.5035        3.0692         .0000        .69392E-03
  12  Prefactor     2.0419        .83208         .0000        .12826E-02
  13  norm          2.0519        1.6264         .0000       -.12863E-02
  14  Prefactor     3.3985        2.9662         .0000        .47719E-02
  15  norm          4.1378        1.6598         .0000        .96414E-01
  16  Prefactor     4.9076        2.2779         .0000        .17188E-02
  17  Prefactor     .76823        2.1666         .0000        .31999E-02
  18  Prefactor     .10001E-03    8.8753         .0000    ** at limit **
  19  Prefactor     .10000E-03    .96438         .0000    ** at limit **
  20  Prefactor     .10000E-03    21.337         .0000    ** at limit **
  21  norm          .10000E-03    .22992         .0000    ** at limit **
  22  norm          1.4562        .79701         .0000        .44224E-02
  23  Prefactor     3.2971        4.2865         .0000        .17801E-03
  24  Prefactor     16.626        15.840         .0000        .35240E-03
  25  Prefactor     .10001E-03    3.0402         .0000    ** at limit **
  26  Prefactor     5.8406        5.1800         .0000       -.51827E-03
  27  Prefactor     3.1826        1.6931         .0000        .54634E-02
  28  Prefactor     2.2062        2.9195         .0000       -.21798E-02
  29  Prefactor     .11499        .82318         .0000        .17885E-02
  30  Prefactor     .10004E-03    .60280         .0000    ** at limit **
  31  Prefactor     2.0876        4.2432         .0000        .33596E-01
  32  Prefactor     9.1366        10.203         .0000       -.25454E-03
  33  Prefactor     .10000E-03    4.0519         .0000    ** at limit **
  34  Normalizat    1.0825        .51287E-01     .0000       -.11467E-03
  35  Prefactor     .91298        .49682E-01     .0000       -.11841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.42064
  Prefactor  = 0.0001
  Prefactor  = 32.6761
  norm       = 0.881118
  Prefactor  = 0.000100003
  Prefactor  = 1.7506
  norm       = 0.902201
  norm       = 0.726623
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.5035
  Prefactor  = 2.04188
  norm       = 2.05189
  Prefactor  = 3.39852
  norm       = 4.1378
  Prefactor  = 4.90759
  Prefactor  = 0.768233
  Prefactor  = 0.000100009
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 1.45619
  Prefactor  = 3.29705
  Prefactor  = 16.6264
  Prefactor  = 0.000100006
  Prefactor  = 5.84065
  Prefactor  = 3.18264
  Prefactor  = 2.2062
  Prefactor  = 0.114993
  Prefactor  = 0.000100041
  Prefactor  = 2.08757
  Prefactor  = 9.13661
  Prefactor  = 0.000100001
  Normalizat = 1.08255
  Prefactor  = 0.912978
 **********
 **   18 **HESSE 
 **********

 FCN=   65587.11     FROM HESSE     STATUS=OK           818 CALLS     5315 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4206        2.2746        .13152E-02   -1.5397    
   2  Prefactor     .10000E-03    3.6554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.676        12.701        .70096E-04   -1.4564    
   4  norm          .88112        1.1232        .29292E-03   -1.5520    
   5  Prefactor     .10000E-03    8.5720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.7506        1.2686        .20584E-03   -1.5443    
   7  norm          .90220        .20411        .47764E-04   -1.5518    
   8  norm          .72662        .45407        .13129E-03   -1.5537    
   9  Prefactor     .10000E-03    1.1757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .91092        .22801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5035        3.0709        .21600E-03   -1.5334    
  12  Prefactor     2.0419        .83053        .14478E-03   -1.5422    
  13  norm          2.0519        1.6259        .14167E-02   -1.5421    
  14  Prefactor     3.3985        2.8914        .21946E-03   -1.5339    
  15  norm          4.1378        1.6417        .93894E-03   -1.5301    
  16  Prefactor     4.9076        2.2935        .18156E-03   -1.5265    
  17  Prefactor     .76823        7.9382        .56913E-02   -1.5533    
  18  Prefactor     .10001E-03    8.9588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8217        .47852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .23403        .11988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4562        .78166        .15500E-03   -1.5467    
  23  Prefactor     3.2971        4.2798        .22297E-03   -1.5345    
  24  Prefactor     16.626        15.818        .98216E-04   -1.4892    
  25  Prefactor     .10001E-03    3.1548        .14515       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.8406        5.1697        .16618E-03   -1.5225    
  27  Prefactor     3.1826        1.8279        .18866E-03   -1.5351    
  28  Prefactor     2.2062        2.8974        .27701E-03   -1.5411    
  29  Prefactor     .11499        1.6748        .62555E-01   -1.5640    
  30  Prefactor     .10004E-03    .65375        .61307E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.0876        4.2275        .14298E-02   -1.5419    
  32  Prefactor     9.1366        10.209        .13258E-03   -1.5103    
  33  Prefactor     .10000E-03    4.0578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0825        .57577E-01    .22575E-03   -.90314    
  35  Prefactor     .91298        .56686E-01    .24382E-03   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8168e-08
Minuit parameter uncertainties:
  1  2.27471
  2  3.3947e-05
  3  12.7025
  4  1.12327
  5  0.000305542
  6  1.26861
  7  0.204108
  8  0.454072
  9  5.77291e-07
  10  2.80825e-06
  11  3.07107
  12  0.830531
  13  1.62597
  14  2.89156
  15  1.64176
  16  2.29357
  17  4.93949
  18  0.000556308
  19  0.000229161
  20  0.000438204
  21  8.35763e-09
  22  0.78167
  23  4.28021
  24  15.8216
  25  0.000265644
  26  5.17011
  27  1.82791
  28  2.89763
  29  0.877348
  30  0.000327241
  31  4.22808
  32  10.2111
  33  0.000129201
  34  0.0575806
  35  0.0566892
Done.

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

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  1.000e-04  8.358e-09  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.189e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
403         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
751    Prefactor:  9.130e-01  5.669e-02  0.000e+00  1.000e+01 ( 1.000e+00)
752        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
753        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
750   Normalization:  1.083e+00  5.758e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.044 71.092
Photon Flux Upper Limit: 6.02e-09 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/791848/likelihoodResults_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.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): 102
logL (Free Index) = 65587.1146077
delta logL = -5.66273229197e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 65587.1146076
delta logL = -5.12052793056e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1846       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91300       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   65587.11     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      246 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .44267        .11992E-02** at limit **
   2  alpha         2.0610        2.8291        .16629       -.26252E-07
   3  Normalizat    1.0825        .54820E-01    .22575E-03    .12811E-03
   4  Prefactor     .91298        .55128E-01    .24382E-03    .35064E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.061
  Normalizat = 1.08255
  Prefactor  = 0.912978
 **********
 **   18 **HESSE 
 **********

 FCN=   65587.11     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .23535        .23983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0610        2.5564        .66517E-02   -.17652    
   3  Normalizat    1.0825        .54868E-01    .90300E-05   -.90314    
   4  Prefactor     .91298        .55176E-01    .97527E-05   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.69905e-11
Minuit parameter uncertainties:
  1  1.63406e-06
  2  84.2948
  3  0.0548712
  4  0.0551797
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/791848': 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) = 65587.114606
delta logL = 1.12407724373e-06

Extracting fit parameters...

4FGL J1220.1+7105
   Spectrum: LogParabola
401         norm:  1.000e-04  1.634e-06  1.000e-04  1.000e+04 ( 1.000e-12)
402        alpha:  2.061e+00  8.429e+01  0.000e+00  5.000e+00 ( 1.000e+00)
403         beta:  1.310e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
404           Eb:  7.210e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
751    Prefactor:  9.130e-01  5.518e-02  0.000e+00  1.000e+01 ( 1.000e+00)
752        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
753        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
750   Normalization:  1.083e+00  5.487e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.044 71.092

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/791848/cmap_HighResolution_260323201_262915201_4FGL_J1220.1+7105_monthly_bin9.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-06', job_status='DONE', photon_flux_upper_limit='6.02e-09', time_completed='2021-10-23 15:54:39.545240', job_id='791848', GAL2='0.91', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1635029679.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='9' AND source_name='4FGL J1220.1+7105' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Oct 23 15:54:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 791848: <4FGL_J1220.1+7105_monthly_bin9> in cluster <slac> Done

Job <4FGL_J1220.1+7105_monthly_bin9> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Oct 23 13:00:38 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct 23 13:00:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct 23 13:00:39 2021
Terminated at Sat Oct 23 15:54:49 2021
Results reported at Sat Oct 23 15:54:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1220.1+7105_monthly_bin9 185.044 71.092 260323201 262915201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1220.1+7105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9618.00 sec.
    Max Memory :                                 629 MB
    Average Memory :                             396.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   10441 sec.
    Turnaround time :                            10451 sec.

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

