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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin978
RA = 185.627, Dec = 4.2389
tmin = 492825601, tmax = 493084801
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='540337', job_status='RUN', time_executed='2021-09-05 10:26:02.360345', time_epoch_executed='1630862762.36' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='978'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540337

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540337/ft1_4FGL_J1222.5+0414_daily_bin978.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540337/ft2_4FGL_J1222.5+0414_daily_bin978.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540337/ft1_4FGL_J1222.5+0414_daily_bin978.fits outfile=/scratch/kocevski/540337/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin978.fits ra=185.627 dec=4.2389 rad=12.0 tmin=492825601.0 tmax=493084801.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.70
user 3.48
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540337/ft1_filtered_4FGL_J1222.5+0414_daily_bin978.fits evtable="EVENTS" scfile=/scratch/kocevski/540337/ft2_4FGL_J1222.5+0414_daily_bin978.fits sctable="SC_DATA" expcube=/scratch/kocevski/540337/ltcube_492825601_493084801_4FGL_J1222.5+0414_daily_bin978.fits outfile=/scratch/kocevski/540337/expmap_492825601_493084801_4FGL_J1222.5+0414_daily_bin978.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/540337/ltcube_492825601_493084801_4FGL_J1222.5+0414_daily_bin978.fits
.....................!
real 189.61
user 185.26
sys 3.85

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/540337/ft1_filtered_4FGL_J1222.5+0414_daily_bin978.fits scfile=/scratch/kocevski/540337/ft2_4FGL_J1222.5+0414_daily_bin978.fits outfile=/scratch/kocevski/540337/cmap_492825601_493084801_4FGL_J1222.5+0414_daily_bin978.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.56
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540337/ft1_filtered_4FGL_J1222.5+0414_daily_bin978.fits scfile=/scratch/kocevski/540337/ft2_4FGL_J1222.5+0414_daily_bin978.fits outfile=/scratch/kocevski/540337/cmap_HighResolution_492825601_493084801_4FGL_J1222.5+0414_daily_bin978.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.138       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7795       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10451E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.018       1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.6367       1.0000         .10000E-03   10000.    
    13 'norm      '    3.0003       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.020       1.0000         .10000E-03   10000.    
    15 'norm      '    15.590       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.833       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.810       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1868       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.6840       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    28.118       1.0000         .10000E-03   10000.    
    25 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .27928E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.8645       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .45488       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=   5670.038     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3524 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5571        .18515E-07** at limit **
   2  Prefactor     .10000E-03    50.051       -.78253E-07** at limit **
   3  Prefactor     20.134        14.378       -.19442E-06    .37645E-04
   4  Prefactor     4.7788        8.4986        .14442E-05    .22926E-04
   5  Prefactor     .10000E-03    24.628        .20898E-05** at limit **
   6  Prefactor     13.016        20.997       -.37749E-06   -.74449E-05
   7  Prefactor     69.636        103.81        .13237E-05    .16557E-03
   8  Prefactor     .10000E-03    13.284        .38783E-06** at limit **
   9  Prefactor     .10000E-03    13.952       -.32743E-06** at limit **
  10  Prefactor     .10000E-03    19.091        .50442E-06** at limit **
  11  Prefactor     .10000E-03    17.120       -.45356E-06** at limit **
  12  norm          1.6369        1.9350       -.67618E-07   -.12609E-03
  13  norm          3.0002        3.2978        .98780E-08    .17007E-03
  14  Prefactor     10.025        25.711        .32563E-06    .37797E-04
  15  norm          15.591        43.467        .49591E-06    .20800E-04
  16  Prefactor     .10001E-03    95.984        .10058E-05** at limit **
  17  norm          1.7130        .71020       -.68317E-07    .43261E-03
  18  Prefactor     12.832        10.695        .41629E-06    .28110E-03
  19  Prefactor     .10000E-03    11.534       -.84209E-07** at limit **
  20  Prefactor     12.811        10.558       -.79738E-06   -.58315E-05
  21  norm          5.1865        2.1222        .13548E-07    .74205E-03
  22  Prefactor     1.6853        12.702        .13035E-04    .44549E-05
  23  Prefactor     .10000E-03    26.613       -.32546E-06** at limit **
  24  Prefactor     28.040        44.149        .86532E-05    .25333E-03
  25  norm          .10000E-03    25.543        .42729E-06** at limit **
  26  Prefactor     .10015E-03    8.6489       -.68877E-05** at limit **
  27  Normalizat    1.8646        .24137        .29651E-05    .11767E-02
  28  Prefactor     .45471        .19030       -.42890E-05    .63586E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1339
  Prefactor  = 4.77878
  Prefactor  = 0.000100004
  Prefactor  = 13.0163
  Prefactor  = 69.6361
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 1.63686
  norm       = 3.00015
  Prefactor  = 10.0249
  norm       = 15.5907
  Prefactor  = 0.000100007
  norm       = 1.71297
  Prefactor  = 12.8316
  Prefactor  = 0.0001
  Prefactor  = 12.811
  norm       = 5.18648
  Prefactor  = 1.68525
  Prefactor  = 0.000100001
  Prefactor  = 28.0404
  norm       = 0.0001
  Prefactor  = 0.000100148
  Normalizat = 1.86462
  Prefactor  = 0.454709
 **********
 **   18 **HESSE 
 **********

 FCN=   5670.038     FROM HESSE     STATUS=OK           519 CALLS     4043 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.134        14.420        .89253E-04   -1.4810    
   4  Prefactor     4.7788        8.5187        .92016E-03   -1.5271    
   5  Prefactor     .10000E-03    24.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.016        21.082        .11102E-03   -1.4986    
   7  Prefactor     69.636        103.88        .48112E-04   -1.4037    
   8  Prefactor     .10000E-03    13.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.6369        1.9199        .11028E-03   -1.5452    
  13  norm          3.0002        3.2781        .12913E-03   -1.5362    
  14  Prefactor     10.025        25.699        .12659E-03   -1.5075    
  15  norm          15.591        43.537        .10144E-03   -1.4918    
  16  Prefactor     .10001E-03    96.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7130        .70914        .36711E-04   -1.5446    
  18  Prefactor     12.832        10.705        .55907E-03   -1.4991    
  19  Prefactor     .10000E-03    11.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.811        10.556        .55958E-03   -1.4992    
  21  norm          5.1865        2.1240        .66452E-04   -1.5252    
  22  Prefactor     1.6853        13.119        .16227E-02   -1.5448    
  23  Prefactor     .10000E-03    26.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     28.040        45.036        .75552E-04   -1.4648    
  25  norm          .10000E-03    25.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10015E-03    34.035        .36873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.8646        .27672        .24184E-03   -.67989    
  28  Prefactor     .45471        .21090        .36178E-03   -1.1410    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.85492e-09
Minuit parameter uncertainties:
  1  4.1683e-07
  2  0.000135815
  3  14.422
  4  8.52084
  5  0.00059525
  6  21.094
  7  104.15
  8  0.000221177
  9  0.000215064
  10  0.000339767
  11  0.000286446
  12  1.91994
  13  3.27826
  14  25.7277
  15  43.6256
  16  0.00163314
  17  0.709139
  18  10.7067
  19  4.14277e-05
  20  10.5572
  21  2.12406
  22  9.40662
  23  0.000370843
  24  45.091
  25  4.3847e-05
  26  0.00449439
  27  0.276952
  28  0.211262
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.000e+00  3.278e+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:  4.547e-01  2.113e-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:  1.865e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.61
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 1.07e-05 +/- 1.17e-05

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

Saving results to:
/scratch/kocevski/540337/likelihoodResults_492825601_493084801_4FGL_J1222.5+0414_daily_bin978.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) = 5669.38853657
delta logL = 0.649265414636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5669.31064944
delta logL = 0.727152541242

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6163       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5450       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .43542       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=   5669.311     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      223 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6157        1.7310        .83256E-02   -.78536E-04
   2  alpha         1.5447        .48355        .39633       -.36322E-04
   3  Normalizat    1.9003        .23248        .54333E-01   -.34343E-05
   4  Prefactor     .43548        .18608        .83283E-01    .39715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.61566
  alpha      = 1.54475
  Normalizat = 1.90034
  Prefactor  = 0.435476
 **********
 **   18 **HESSE 
 **********

 FCN=   5669.311     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .53E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6157        2.7727        .95946E-04   -1.5454    
   2  alpha         1.5447        .89309        .14891E-01   -.39207    
   3  Normalizat    1.9003        .25841        .24019E-03   -.67072    
   4  Prefactor     .43548        .20579        .36899E-03   -1.1503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.26072e-12
Minuit parameter uncertainties:
  1  2.77294
  2  0.916975
  3  0.258601
  4  0.206144
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540337': 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) = 5669.31064938
delta logL = 0.727152610059

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.616e+00  2.773e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  1.545e+00  9.170e-01  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:  4.355e-01  2.061e-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:  1.900e+00  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 185.627 4.239
Photon Index (Free Index): 1.54 +/- 0.92
Photon Flux (Free Index): 1.67e-08 +/- 2.74e-08
Energy Flux (Free Index): 1.64e-05 +/- 2.07e-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/540337/cmap_HighResolution_492825601_493084801_4FGL_J1222.5+0414_daily_bin978.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-05', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='1.64e-05', photon_flux_error='5.04e-08', dlogl='7.27e-01', energy_flux='1.07e-05', photon_flux2='1.67e-08', job_status='DONE', time_completed='2021-09-05 10:39:09.832336', photon_index_error2='0.92', photon_index2='1.54', ts='1.61', fit_tolerance='1e-08', GAL='0.45', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='2.07e-05', EG='1.86', time_epoch_completed='1630863549.83', return_code='0', job_id='540337', GAL2='0.44', EG2='1.90', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.74e-08', ts2='3.04', photon_index='2.69' WHERE bin_id='978' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:39:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 540337: <4FGL_J1222.5+0414_daily_bin978> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin978 185.627 4.2389 492825601 493084801 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 :                                   782.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

