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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin998
RA = 185.627, Dec = 4.2389
tmin = 498009601, tmax = 498268801
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='540370', job_status='RUN', time_executed='2021-09-05 10:28:29.010272', time_epoch_executed='1630862909.01' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='998'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540370

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540370/ft1_4FGL_J1222.5+0414_daily_bin998.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540370/ft2_4FGL_J1222.5+0414_daily_bin998.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540370/ft1_4FGL_J1222.5+0414_daily_bin998.fits outfile=/scratch/kocevski/540370/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin998.fits ra=185.627 dec=4.2389 rad=12.0 tmin=498009601.0 tmax=498268801.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 7.96
user 7.59
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540370/ft2_4FGL_J1222.5+0414_daily_bin998.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/540370/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin998.fits evtable="EVENTS" outfile="/scratch/kocevski/540370/ft1_filtered_4FGL_J1222.5+0414_daily_bin998.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540370/ft1_filtered_4FGL_J1222.5+0414_daily_bin998.fits" evtable="EVENTS" scfile=/scratch/kocevski/540370/ft2_4FGL_J1222.5+0414_daily_bin998.fits sctable="SC_DATA" outfile=/scratch/kocevski/540370/ltcube_498009601_498268801_4FGL_J1222.5+0414_daily_bin998.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/540370/ft2_4FGL_J1222.5+0414_daily_bin998.fits
.....................!
real 11.90
user 11.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540370/ft1_filtered_4FGL_J1222.5+0414_daily_bin998.fits evtable="EVENTS" scfile=/scratch/kocevski/540370/ft2_4FGL_J1222.5+0414_daily_bin998.fits sctable="SC_DATA" expcube=/scratch/kocevski/540370/ltcube_498009601_498268801_4FGL_J1222.5+0414_daily_bin998.fits outfile=/scratch/kocevski/540370/expmap_498009601_498268801_4FGL_J1222.5+0414_daily_bin998.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/540370/ltcube_498009601_498268801_4FGL_J1222.5+0414_daily_bin998.fits
.....................!
real 189.48
user 184.84
sys 3.98

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/540370/ft1_filtered_4FGL_J1222.5+0414_daily_bin998.fits scfile=/scratch/kocevski/540370/ft2_4FGL_J1222.5+0414_daily_bin998.fits outfile=/scratch/kocevski/540370/cmap_498009601_498268801_4FGL_J1222.5+0414_daily_bin998.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.57
user 0.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540370/ft1_filtered_4FGL_J1222.5+0414_daily_bin998.fits scfile=/scratch/kocevski/540370/ft2_4FGL_J1222.5+0414_daily_bin998.fits outfile=/scratch/kocevski/540370/cmap_HighResolution_498009601_498268801_4FGL_J1222.5+0414_daily_bin998.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.89
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2410       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .42404E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.057       1.0000         .10000E-03   10000.    
     6 'Prefactor '    25.331       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.4385       1.0000         .10000E-03   10000.    
    13 'norm      '    .15598E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10519E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5723       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .69494E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .60031       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9785       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    16.896       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1480       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3800       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0577       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=   5043.878     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3547 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2415        73.375        .24603E-04    .63261E-04
   2  Prefactor     .10000E-03    42.193        .38033E-06** at limit **
   3  Prefactor     .10000E-03    5.2490       -.26144E-07** at limit **
   4  Prefactor     .10000E-03    6.2852       -.55701E-06** at limit **
   5  Prefactor     14.061        13.758        .25142E-07    .20901E-04
   6  Prefactor     25.342        25.552        .11681E-07    .82199E-04
   7  Prefactor     .10000E-03    26.052       -.12444E-06** at limit **
   8  Prefactor     .10000E-03    16.950        .69242E-07** at limit **
   9  Prefactor     .10000E-03    38.051       -.33168E-06** at limit **
  10  Prefactor     .10000E-03    104.33       -.60916E-06** at limit **
  11  Prefactor     .10000E-03    19.286       -.50641E-06** at limit **
  12  norm          9.4377        4.7086        .39313E-06    .93971E-03
  13  norm          .10010E-03    2.7717       -.24219E-05** at limit **
  14  Prefactor     .10000E-03    21.166        .38472E-06** at limit **
  15  norm          .10001E-03    141.04        .19863E-05** at limit **
  16  Prefactor     .10000E-03    57.067        .12547E-05** at limit **
  17  norm          3.5720        .92091       -.30860E-07    .88285E-03
  18  Prefactor     .10000E-03    8.8524        .42237E-06** at limit **
  19  Prefactor     .10000E-03    79.054       -.31189E-06** at limit **
  20  Prefactor     .10004E-03    16.260        .24744E-05** at limit **
  21  norm          .60190        1.9766        .27399E-06    .14119E-03
  22  Prefactor     7.9752        12.626        .26758E-06    .51819E-04
  23  Prefactor     .10000E-03    80.666       -.67441E-06** at limit **
  24  Prefactor     .10000E-03    27.401       -.57890E-06** at limit **
  25  norm          16.901        24.815        .66864E-07    .13986E-04
  26  Prefactor     2.1574        22.412        .10375E-05    .59412E-04
  27  Normalizat    1.3793        .25497        .50889E-06    .40652E-03
  28  Prefactor     1.0579        .21100       -.65572E-06    .39138E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.24147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0607
  Prefactor  = 25.3416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 9.43772
  norm       = 0.000100102
  Prefactor  = 0.0001
  norm       = 0.000100009
  Prefactor  = 0.000100001
  norm       = 3.57201
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.000100036
  norm       = 0.601901
  Prefactor  = 7.97519
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 16.9005
  Prefactor  = 2.15742
  Normalizat = 1.37927
  Prefactor  = 1.05792
 **********
 **   18 **HESSE 
 **********

 FCN=   5043.878     FROM HESSE     STATUS=OK           517 CALLS     4064 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2415        75.540        .20125E-02   -1.5485    
   2  Prefactor     .10000E-03    42.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2874        .15891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.605        .34525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.061        13.769        .10683E-03   -1.4958    
   6  Prefactor     25.342        25.569        .79593E-04   -1.4701    
   7  Prefactor     .10000E-03    26.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    105.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.4377        4.7086        .52120E-03   -1.5093    
  13  norm          .10010E-03    23.731        .19048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    142.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    57.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5720        .90338        .31789E-04   -1.5330    
  18  Prefactor     .10000E-03    95.084        .40184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    80.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    113.19        .51552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .60190        1.9813        .16700E-03   -1.5553    
  22  Prefactor     7.9752        12.357        .14195E-03   -1.5143    
  23  Prefactor     .10000E-03    81.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          16.901        24.807        .97436E-04   -1.4886    
  26  Prefactor     2.1574        22.507        .28116E-03   -1.5414    
  27  Normalizat    1.3793        .30183        .28764E-03   -.81230    
  28  Prefactor     1.0579        .24978        .27438E-03   -.90823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14831e-09
Minuit parameter uncertainties:
  1  19.393
  2  0.000141966
  3  3.4905e-06
  4  0.000137965
  5  13.7722
  6  25.5805
  7  2.38297e-05
  8  2.27752e-05
  9  0.00012368
  10  0.00107941
  11  0.000108854
  12  4.70874
  13  0.00311385
  14  0.000114081
  15  0.00221844
  16  0.000481217
  17  0.903383
  18  0.000777465
  19  0.000680508
  20  0.00402658
  21  1.98151
  22  12.3606
  23  0.000534884
  24  0.000127719
  25  24.8225
  26  13.943
  27  0.30222
  28  0.250055
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.001e-04  3.114e-03  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.058e+00  2.501e-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.379e+00  3.022e-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.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/540370/likelihoodResults_498009601_498268801_4FGL_J1222.5+0414_daily_bin998.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) = 5043.87803761
delta logL = -0.000200962409508

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5043.68715595
delta logL = 0.190680696478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5220       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7248       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0414       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=   5043.687     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      284 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5207        2.9367        .86568E-02    .57532E-03
   2  alpha         1.7241        .68533        .43983       -.27406E-04
   3  Normalizat    1.3857        .24280        .64866E-01    .97360E-05
   4  Prefactor     1.0415        .20818        .62409E-01    .19293E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5207
  alpha      = 1.72407
  Normalizat = 1.38574
  Prefactor  = 1.04148
 **********
 **   18 **HESSE 
 **********

 FCN=   5043.687     FROM HESSE     STATUS=OK            33 CALLS      317 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5207        2.9677        .15645E-03   -1.5461    
   2  alpha         1.7241        .90128        .19415E-01   -.31559    
   3  Normalizat    1.3857        .28854        .28692E-03   -.81042    
   4  Prefactor     1.0415        .24702        .27602E-03   -.91359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98793e-09
Minuit parameter uncertainties:
  1  2.96801
  2  0.924414
  3  0.288881
  4  0.247286
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540370': 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) = 5043.68715563
delta logL = 0.190681016216

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.521e+00  2.968e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  1.724e+00  9.244e-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:  1.041e+00  2.473e-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.386e+00  2.889e-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/540370/cmap_HighResolution_498009601_498268801_4FGL_J1222.5+0414_daily_bin998.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', job_status='DONE', photon_flux_upper_limit='1.35e-07', time_completed='2021-09-05 10:41:06.471644', job_id='540370', GAL2='1.04', fit_tolerance='1e-08', EG2='1.39', EG='1.38', time_epoch_completed='1630863666.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='1.91e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='998' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:41:06 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin998 185.627 4.2389 498009601 498268801 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 :                                   750.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

