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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin874
RA = 185.627, Dec = 4.2389
tmin = 465868801, tmax = 466128001
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='540130', job_status='RUN', time_executed='2021-09-05 10:25:55.541402', time_epoch_executed='1630862755.54' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='874'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540130/ft1_4FGL_J1222.5+0414_daily_bin874.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540130/ft2_4FGL_J1222.5+0414_daily_bin874.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540130/ft1_4FGL_J1222.5+0414_daily_bin874.fits outfile=/scratch/kocevski/540130/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin874.fits ra=185.627 dec=4.2389 rad=12.0 tmin=465868801.0 tmax=466128001.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.97
user 3.70
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540130/ft2_4FGL_J1222.5+0414_daily_bin874.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/540130/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin874.fits evtable="EVENTS" outfile="/scratch/kocevski/540130/ft1_filtered_4FGL_J1222.5+0414_daily_bin874.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.51
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540130/ft1_filtered_4FGL_J1222.5+0414_daily_bin874.fits" evtable="EVENTS" scfile=/scratch/kocevski/540130/ft2_4FGL_J1222.5+0414_daily_bin874.fits sctable="SC_DATA" outfile=/scratch/kocevski/540130/ltcube_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.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/540130/ft2_4FGL_J1222.5+0414_daily_bin874.fits
.....................!
real 12.38
user 11.88
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540130/ft1_filtered_4FGL_J1222.5+0414_daily_bin874.fits evtable="EVENTS" scfile=/scratch/kocevski/540130/ft2_4FGL_J1222.5+0414_daily_bin874.fits sctable="SC_DATA" expcube=/scratch/kocevski/540130/ltcube_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.fits outfile=/scratch/kocevski/540130/expmap_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.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/540130/ltcube_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.fits
.....................!
real 190.62
user 184.89
sys 5.13

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/540130/ft1_filtered_4FGL_J1222.5+0414_daily_bin874.fits scfile=/scratch/kocevski/540130/ft2_4FGL_J1222.5+0414_daily_bin874.fits outfile=/scratch/kocevski/540130/cmap_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.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.53
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540130/ft1_filtered_4FGL_J1222.5+0414_daily_bin874.fits scfile=/scratch/kocevski/540130/ft2_4FGL_J1222.5+0414_daily_bin874.fits outfile=/scratch/kocevski/540130/cmap_HighResolution_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.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.56
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/540130/ft1_filtered_4FGL_J1222.5+0414_daily_bin874.fits', '/scratch/kocevski/540130/ft2_4FGL_J1222.5+0414_daily_bin874.fits', expMap='/scratch/kocevski/540130/expmap_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.fits', expCube='/scratch/kocevski/540130/ltcube_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/540130/Model_4FGL_J1222.5+0414_daily_bin874.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/540130/ft1_filtered_4FGL_J1222.5+0414_daily_bin874.fits
Spacecraft file(s): /scratch/kocevski/540130/ft2_4FGL_J1222.5+0414_daily_bin874.fits
Exposure map: /scratch/kocevski/540130/expmap_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.fits
Exposure cube: /scratch/kocevski/540130/ltcube_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/540130/Model_4FGL_J1222.5+0414_daily_bin874.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) = 5808.87715204

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1629       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12326E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.011       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.247       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.1109       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5917       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    90.086       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.5508       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.436       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5178       1.0000         .10000E-03   10000.    
    21 'norm      '    .49286       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4561       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.6732       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.9326       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .96143       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1884       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=   5808.858     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     3492 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.739       -.16191E-06** at limit **
   2  Prefactor     .10000E-03    35.841        .38932E-05** at limit **
   3  Prefactor     .10000E-03    4.2626       -.15480E-07** at limit **
   4  Prefactor     .10000E-03    14.573       -.78118E-06** at limit **
   5  Prefactor     6.1213        18.913       -.44571E-06   -.21568E-04
   6  Prefactor     .10000E-03    15.525        .90534E-08** at limit **
   7  Prefactor     .10000E-03    144.14        .52981E-05** at limit **
   8  Prefactor     .10000E-03    13.046        .45934E-06** at limit **
   9  Prefactor     26.003        27.683        .63502E-06    .50643E-04
  10  Prefactor     18.240        38.211       -.86506E-06   -.17210E-05
  11  Prefactor     .10000E-03    25.826       -.16406E-05** at limit **
  12  norm          1.1148        2.5985       -.77748E-07   -.14236E-03
  13  norm          5.5927        6.0843        .15231E-05    .32342E-04
  14  Prefactor     .10000E-03    19.959        .17406E-05** at limit **
  15  norm          90.085        59.627       -.13963E-05    .74777E-05
  16  Prefactor     .10000E-03    57.929        .11053E-05** at limit **
  17  norm          4.5504        1.0099       -.49661E-07    .45956E-03
  18  Prefactor     13.439        10.757        .12415E-06    .25548E-04
  19  Prefactor     .10000E-03    26.955       -.18508E-05** at limit **
  20  Prefactor     6.5178        8.0146        .45648E-06    .24110E-04
  21  norm          .49323        1.7486        .26238E-06   -.24821E-05
  22  Prefactor     6.4556        9.0947        .44397E-06   -.18402E-04
  23  Prefactor     .10000E-03    71.017       -.54379E-05** at limit **
  24  Prefactor     .10000E-03    21.455        .31916E-06** at limit **
  25  norm          2.6429        135.31        .59746E-05    .12646E-05
  26  Prefactor     7.9321        13.465        .16392E-06    .32338E-06
  27  Normalizat    .96144        .24003       -.14646E-05    .61002E-04
  28  Prefactor     1.1883        .19263        .67522E-06    .44611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.12128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.0032
  Prefactor  = 18.2401
  Prefactor  = 0.0001
  norm       = 1.11478
  norm       = 5.59267
  Prefactor  = 0.0001
  norm       = 90.0847
  Prefactor  = 0.0001
  norm       = 4.55036
  Prefactor  = 13.4395
  Prefactor  = 0.0001
  Prefactor  = 6.51779
  norm       = 0.493226
  Prefactor  = 6.45557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.64288
  Prefactor  = 7.9321
  Normalizat = 0.961438
  Prefactor  = 1.18831
 **********
 **   18 **HESSE 
 **********

 FCN=   5808.858     FROM HESSE     STATUS=OK           521 CALLS     4013 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2686        .15366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1213        18.970        .16171E-03   -1.5213    
   6  Prefactor     .10000E-03    15.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    144.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.003        27.462        .78546E-04   -1.4688    
  10  Prefactor     18.240        38.179        .93762E-04   -1.4854    
  11  Prefactor     .10000E-03    25.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.1148        2.1777        .17659E-02   -1.5497    
  13  norm          5.5927        6.0888        .76404E-03   -1.5235    
  14  Prefactor     .10000E-03    19.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          90.085        59.724        .42335E-04   -1.3807    
  16  Prefactor     .10000E-03    57.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.5504        1.0108        .31366E-04   -1.5281    
  18  Prefactor     13.439        10.757        .10927E-03   -1.4975    
  19  Prefactor     .10000E-03    27.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5178        8.0029        .78598E-03   -1.5197    
  21  norm          .49323        1.7331        .17349E-03   -1.5568    
  22  Prefactor     6.4556        9.0478        .78977E-03   -1.5200    
  23  Prefactor     .10000E-03    71.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    21.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.6429        134.98        .24925E-03   -1.5383    
  26  Prefactor     7.9321        13.505        .14236E-03   -1.5145    
  27  Normalizat    .96144        .28229        .32036E-03   -.94334    
  28  Prefactor     1.1883        .22853        .24946E-03   -.86692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83045e-09
Minuit parameter uncertainties:
  1  2.72e-07
  2  7.90685e-07
  3  9.01714e-07
  4  1.04279e-05
  5  18.9884
  6  7.55552e-07
  7  0.000107009
  8  1.82932e-06
  9  27.4755
  10  38.2304
  11  5.02436e-05
  12  2.17783
  13  6.08949
  14  7.46246e-06
  15  59.7642
  16  6.7579e-06
  17  1.01076
  18  10.7583
  19  1.07869e-05
  20  8.0042
  21  1.73329
  22  9.0497
  23  2.26363e-05
  24  1.61497e-07
  25  37.864
  26  13.5103
  27  0.282724
  28  0.228724
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  5.593e+00  6.089e+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

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  1.188e+00  2.287e-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:  9.614e-01  2.827e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 8.61e-08 +/- 9.36e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 2.16e-05

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

Saving results to:
/scratch/kocevski/540130/likelihoodResults_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.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) = 5807.8483967
delta logL = 1.00977683672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5807.804953
delta logL = 1.05322053295

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7117       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .83574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2673       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.

 FCN=   5807.805     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      313 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7100        24.586        .80319E-02    .68533E-03
   2  alpha         5.0000        3.5623        .46271    ** at limit **
   3  Normalizat    .83591        .15268        .76833E-01    .17573E-04
   4  Prefactor     1.2673        .12340        .54905E-01    .36904E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.71001
  alpha      = 5
  Normalizat = 0.835915
  Prefactor  = 1.26732
 **********
 **   18 **HESSE 
 **********

 FCN=   5807.805     FROM HESSE     STATUS=OK            35 CALLS      348 TOTAL
                     EDM=   .66E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7100        1.3971        .53272E-04   -1.5446    
   2  alpha         5.0000        3.5922        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .83591        .28124        .34008E-03   -.98750    
   4  Prefactor     1.2673        .23245        .24275E-03   -.84284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5641e-11
Minuit parameter uncertainties:
  1  1.39717
  2  0.000195639
  3  0.28173
  4  0.232641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540130': 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) = 5807.80494524
delta logL = 1.05322828869

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.710e+00  1.397e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  5.000e+00  1.956e-04  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.267e+00  2.326e-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:  8.359e-01  2.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.09
Ra Dec: 185.627 4.239
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.91e-07 +/- 1.55e-07
Energy Flux (Free Index): 2.56e-05 +/- 2.09e-05

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/540130/cmap_HighResolution_465868801_466128001_4FGL_J1222.5+0414_daily_bin874.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-05', comment='SUCCESS', photon_flux='8.61e-08', energy_flux2='2.56e-05', photon_flux_error='9.36e-08', dlogl='1.05e+00', energy_flux='1.99e-05', photon_flux2='1.91e-07', job_status='DONE', time_completed='2021-09-05 10:39:08.909333', photon_index_error2='0.00', photon_index2='5.00', ts='1.43', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='2.38e-07', energy_flux_error2='2.09e-05', EG='0.96', time_epoch_completed='1630863548.91', return_code='0', job_id='540130', GAL2='1.27', EG2='0.84', return_code2='0', energy_flux_error='2.16e-05', photon_flux_error2='1.55e-07', ts2='4.09', photon_index='2.69' WHERE bin_id='874' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:39:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 540130: <4FGL_J1222.5+0414_daily_bin874> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin874> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:25:32 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:25:33 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:25:33 2021
Terminated at Sun Sep  5 10:39:09 2021
Results reported at Sun Sep  5 10:39:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin874 185.627 4.2389 465868801 466128001 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            817 sec.

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

