/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 176 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 = 7492
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1222.5+0414_daily_bin755
RA = 185.627, Dec = 4.2389
tmin = 435024001, tmax = 435283201
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='538489', job_status='RUN', time_executed='2021-09-05 10:23:47.762302', time_epoch_executed='1630862627.76' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538489

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538489/ft1_4FGL_J1222.5+0414_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538489/ft1_4FGL_J1222.5+0414_daily_bin755.fits outfile=/scratch/kocevski/538489/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin755.fits ra=185.627 dec=4.2389 rad=12.0 tmin=435024001.0 tmax=435283201.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 3.76
user 3.53
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.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/538489/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin755.fits evtable="EVENTS" outfile="/scratch/kocevski/538489/ft1_filtered_4FGL_J1222.5+0414_daily_bin755.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.44
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538489/ft1_filtered_4FGL_J1222.5+0414_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/538489/ltcube_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.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/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits
.....................!
real 8.79
user 8.50
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538489/ft1_filtered_4FGL_J1222.5+0414_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/538489/ltcube_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.fits outfile=/scratch/kocevski/538489/expmap_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.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/538489/ltcube_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.fits
.....................!
real 140.28
user 136.86
sys 3.21

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

Setting source of interest to:
4FGL J1222.5+0414 @ 185.627 4.2389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/538489/ft1_filtered_4FGL_J1222.5+0414_daily_bin755.fits scfile=/scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits outfile=/scratch/kocevski/538489/cmap_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.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.627 yref=4.2389 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.44
user 0.31
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538489/ft1_filtered_4FGL_J1222.5+0414_daily_bin755.fits scfile=/scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits outfile=/scratch/kocevski/538489/cmap_HighResolution_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.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.627 yref=4.2389 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.45
user 0.30
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/538489/ft1_filtered_4FGL_J1222.5+0414_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538489/Model_4FGL_J1222.5+0414_daily_bin755.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/538489/ft1_filtered_4FGL_J1222.5+0414_daily_bin755.fits.....................!
real 37.57
user 36.38
sys 0.99

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/538489/ft1_filtered_4FGL_J1222.5+0414_daily_bin755.fits', '/scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits', expMap='/scratch/kocevski/538489/expmap_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.fits', expCube='/scratch/kocevski/538489/ltcube_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/538489/Model_4FGL_J1222.5+0414_daily_bin755.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1222.5+0414'

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.414e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/538489/ft1_filtered_4FGL_J1222.5+0414_daily_bin755.fits
Spacecraft file(s): /scratch/kocevski/538489/ft2_4FGL_J1222.5+0414_daily_bin755.fits
Exposure map: /scratch/kocevski/538489/expmap_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.fits
Exposure cube: /scratch/kocevski/538489/ltcube_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/538489/Model_4FGL_J1222.5+0414_daily_bin755.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) = 5492.38540681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0301       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.521       1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4504       1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.954       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4572       1.0000         .10000E-03   10000.    
    12 'norm      '    1.4473       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.942       1.0000         .10000E-03   10000.    
    15 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10591E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2836       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.269       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5204       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .23682       1.0000         .10000E-03   10000.    
    23 'Prefactor '    61.222       1.0000         .10000E-03   10000.    
    24 'Prefactor '    56.608       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.8984       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .75016       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4150       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5492.375     FROM MIGRAD    STATUS=CONVERGED    675 CALLS     3513 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.771       -.45145E-06** at limit **
   2  Prefactor     .10000E-03    52.597       -.26012E-06** at limit **
   3  Prefactor     3.0319        8.9680        .11556E-04   -.13656E-03
   4  Prefactor     .10000E-03    6.0837        .56381E-06** at limit **
   5  Prefactor     .10000E-03    32.096       -.36351E-05** at limit **
   6  Prefactor     23.528        18.461        .10744E-06   -.32664E-04
   7  Prefactor     69.473        120.34       -.21813E-04   -.14443E-03
   8  Prefactor     6.4725        101.74        .95043E-05    .31848E-04
   9  Prefactor     50.961        32.582        .82782E-06    .23478E-04
  10  Prefactor     .10000E-03    37.446       -.20916E-05** at limit **
  11  Prefactor     4.4570        9.7638        .31048E-06   -.34247E-04
  12  norm          1.4474        1.7904        .44828E-07   -.51963E-04
  13  norm          .10000E-03    3.9970        .12876E-06** at limit **
  14  Prefactor     28.933        31.774       -.23714E-06   -.27903E-04
  15  norm          .10000E-03    29.076        .19533E-05** at limit **
  16  Prefactor     .10000E-03    83.875        .23198E-05** at limit **
  17  norm          2.2834        .81725        .82215E-08   -.58001E-03
  18  Prefactor     17.273        14.054       -.76547E-07   -.40117E-04
  19  Prefactor     .10000E-03    15.661        .10431E-06** at limit **
  20  Prefactor     .10000E-03    5.6646       -.97596E-08** at limit **
  21  norm          3.5211        2.6734        .15654E-06   -.14887E-03
  22  Prefactor     .34218        8.3957        .10681E-05   -.11653E-03
  23  Prefactor     61.196        49.183       -.30380E-05   -.18203E-03
  24  Prefactor     56.768        111.85       -.14468E-05    .15093E-03
  25  norm          .10000E-03    10.434        .35444E-07** at limit **
  26  Prefactor     2.8788        55.861        .10394E-04   -.38816E-04
  27  Normalizat    .75012        .26780        .16162E-05   -.19199E-03
  28  Prefactor     1.4148        .21053       -.30131E-05   -.54575E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.03194
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 23.5283
  Prefactor  = 69.473
  Prefactor  = 6.47248
  Prefactor  = 50.9613
  Prefactor  = 0.0001
  Prefactor  = 4.457
  norm       = 1.44743
  norm       = 0.0001
  Prefactor  = 28.9327
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.28341
  Prefactor  = 17.2734
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.52114
  Prefactor  = 0.34218
  Prefactor  = 61.1961
  Prefactor  = 56.7679
  norm       = 0.0001
  Prefactor  = 2.87881
  Normalizat = 0.750125
  Prefactor  = 1.41483
 **********
 **   18 **HESSE 
 **********

 FCN=   5492.375     FROM HESSE     STATUS=OK           519 CALLS     4032 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.0319        9.0152        .11656E-02   -1.5360    
   4  Prefactor     .10000E-03    6.0973        .17831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.528        18.466        .82593E-04   -1.4737    
   7  Prefactor     69.473        121.48        .24061E-03   -1.4039    
   8  Prefactor     6.4725        102.05        .15803E-03   -1.5199    
   9  Prefactor     50.961        32.550        .56183E-04   -1.4279    
  10  Prefactor     .10000E-03    37.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.4570        9.7341        .19073E-03   -1.5286    
  12  norm          1.4474        1.7773        .10446E-03   -1.5467    
  13  norm          .10000E-03    4.1173        .28813E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     28.933        31.776        .37236E-03   -1.4632    
  15  norm          .10000E-03    29.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    83.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2834        .81423        .36264E-04   -1.5406    
  18  Prefactor     17.273        14.053        .96381E-04   -1.4877    
  19  Prefactor     .10000E-03    15.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6827        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5211        2.6603        .96223E-04   -1.5333    
  22  Prefactor     .34218        64.309        .40426E-02   -1.5591    
  23  Prefactor     61.196        49.272        .51281E-04   -1.4142    
  24  Prefactor     56.768        110.63        .26659E-03   -1.4200    
  25  norm          .10000E-03    10.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.8788        53.557        .23868E-03   -1.5369    
  27  Normalizat    .75012        .30621        .37149E-03   -1.0195    
  28  Prefactor     1.4148        .24419        .23914E-03   -.79954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66585e-09
Minuit parameter uncertainties:
  1  3.47328e-05
  2  5.02789e-05
  3  9.01927
  4  2.62734e-05
  5  0.000526752
  6  18.4708
  7  121.912
  8  51.5064
  9  32.5611
  10  0.000245882
  11  9.73751
  12  1.77734
  13  1.31062e-05
  14  31.7949
  15  0.000165116
  16  0.000349071
  17  0.814234
  18  14.0559
  19  9.13113e-06
  20  6.85304e-06
  21  2.66041
  22  9.39081
  23  49.3047
  24  111.03
  25  7.39473e-06
  26  24.8592
  27  0.306908
  28  0.24439
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.000e-04  1.311e-05  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.415e+00  2.444e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  7.501e-01  3.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.627 4.239
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538489/likelihoodResults_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.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) = 5492.37627984
delta logL = -0.0011579319771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5492.24958441
delta logL = 0.12553749352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44787       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .69675       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4434       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+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=   5492.250     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      374 TOTAL
                     EDM=   .79E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44968        .98092        .92098E-04   -.44315E-04
   2  alpha         5.0000        4.6976        .50000    ** at limit **
   3  Normalizat    .69630        .29991        .38409E-03   -.51799E-05
   4  Prefactor     1.4438        .24764        .23702E-03   -.41729E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.449676
  alpha      = 5
  Normalizat = 0.696295
  Prefactor  = 1.44382
 **********
 **   18 **HESSE 
 **********

 FCN=   5492.250     FROM HESSE     STATUS=OK            29 CALLS      403 TOTAL
                     EDM=   .84E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44968        .97801        .36839E-05   -1.5574    
   2  alpha         5.0000        4.6925        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .69630        .30014        .15363E-04   -1.0404    
   4  Prefactor     1.4438        .24783        .94810E-05   -.79125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.35155e-13
Minuit parameter uncertainties:
  1  0.978044
  2  7.91872e-06
  3  0.300849
  4  0.248035
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538489': 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) = 5492.24958117
delta logL = 0.125540738394

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  4.497e-01  9.780e-01  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  5.000e+00  7.919e-06  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.444e+00  2.480e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  6.963e-01  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.627 4.239

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/538489/cmap_HighResolution_435024001_435283201_4FGL_J1222.5+0414_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-05', job_status='DONE', photon_flux_upper_limit='1.37e-07', time_completed='2021-09-05 10:33:21.402245', job_id='538489', GAL2='1.44', fit_tolerance='1e-08', EG2='0.70', EG='0.75', time_epoch_completed='1630863201.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.41', dlogl='1.26e-01', ts2='0.30', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='755' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:33:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 538489: <4FGL_J1222.5+0414_daily_bin755> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin755> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:20:37 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:20:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:20:38 2021
Terminated at Sun Sep  5 10:33:22 2021
Results reported at Sun Sep  5 10:33:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin755 185.627 4.2389 435024001 435283201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1222.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   573.62 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            765 sec.

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

