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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin870
RA = 185.627, Dec = 4.2389
tmin = 464832001, tmax = 465091201
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='538712', job_status='RUN', time_executed='2021-09-05 10:23:35.712857', time_epoch_executed='1630862615.71' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='870'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538712/ft1_4FGL_J1222.5+0414_daily_bin870.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538712/ft2_4FGL_J1222.5+0414_daily_bin870.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538712/ft1_4FGL_J1222.5+0414_daily_bin870.fits outfile=/scratch/kocevski/538712/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin870.fits ra=185.627 dec=4.2389 rad=12.0 tmin=464832001.0 tmax=465091201.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.37
user 3.13
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/538712/ft2_4FGL_J1222.5+0414_daily_bin870.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/538712/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin870.fits evtable="EVENTS" outfile="/scratch/kocevski/538712/ft1_filtered_4FGL_J1222.5+0414_daily_bin870.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.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538712/ft1_filtered_4FGL_J1222.5+0414_daily_bin870.fits" evtable="EVENTS" scfile=/scratch/kocevski/538712/ft2_4FGL_J1222.5+0414_daily_bin870.fits sctable="SC_DATA" outfile=/scratch/kocevski/538712/ltcube_464832001_465091201_4FGL_J1222.5+0414_daily_bin870.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/538712/ft2_4FGL_J1222.5+0414_daily_bin870.fits
.....................!
real 13.67
user 13.19
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538712/ft1_filtered_4FGL_J1222.5+0414_daily_bin870.fits evtable="EVENTS" scfile=/scratch/kocevski/538712/ft2_4FGL_J1222.5+0414_daily_bin870.fits sctable="SC_DATA" expcube=/scratch/kocevski/538712/ltcube_464832001_465091201_4FGL_J1222.5+0414_daily_bin870.fits outfile=/scratch/kocevski/538712/expmap_464832001_465091201_4FGL_J1222.5+0414_daily_bin870.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/538712/ltcube_464832001_465091201_4FGL_J1222.5+0414_daily_bin870.fits
.....................!
real 193.12
user 187.43
sys 5.33

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/538712/ft1_filtered_4FGL_J1222.5+0414_daily_bin870.fits scfile=/scratch/kocevski/538712/ft2_4FGL_J1222.5+0414_daily_bin870.fits outfile=/scratch/kocevski/538712/cmap_464832001_465091201_4FGL_J1222.5+0414_daily_bin870.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538712/ft1_filtered_4FGL_J1222.5+0414_daily_bin870.fits scfile=/scratch/kocevski/538712/ft2_4FGL_J1222.5+0414_daily_bin870.fits outfile=/scratch/kocevski/538712/cmap_HighResolution_464832001_465091201_4FGL_J1222.5+0414_daily_bin870.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.088       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.425       1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.954       1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.976       1.0000         .10000E-03   10000.    
     9 'Prefactor '    208.69       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.511       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0974       1.0000         .10000E-03   10000.    
    13 'norm      '    8.5412       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .73209       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.250       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1074       1.0000         .10000E-03   10000.    
    21 'norm      '    2.4579       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    36.729       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.3456       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1426       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2305       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=   6641.432     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3460 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.090        22.257        .16520E-06   -.11690E-04
   2  Prefactor     .10000E-03    36.215        .12355E-04** at limit **
   3  Prefactor     .10000E-03    3.9010        .46948E-06** at limit **
   4  Prefactor     .10000E-03    12.792        .21991E-05** at limit **
   5  Prefactor     .10000E-03    8.3226        .33493E-05** at limit **
   6  Prefactor     27.419        24.470       -.37853E-05    .49786E-05
   7  Prefactor     53.954        74.134       -.11127E-05   -.17585E-04
   8  Prefactor     62.973        47.040       -.32756E-05   -.17059E-04
   9  Prefactor     208.69        51.365        .15810E-05    .36339E-04
  10  Prefactor     14.509        40.138       -.39553E-05   -.14478E-04
  11  Prefactor     .10000E-03    7.8667       -.27301E-05** at limit **
  12  norm          3.0988        3.1372       -.16004E-06   -.37784E-04
  13  norm          8.5406        4.8805        .10282E-05   -.26897E-03
  14  Prefactor     .10000E-03    36.015        .12389E-04** at limit **
  15  norm          .10000E-03    15.165        .11184E-04** at limit **
  16  Prefactor     .10000E-03    56.363       -.18204E-04** at limit **
  17  norm          .73208        .58813       -.10374E-06   -.88649E-03
  18  Prefactor     32.249        14.950       -.11833E-06    .17949E-04
  19  Prefactor     .10000E-03    19.236       -.29155E-05** at limit **
  20  Prefactor     1.1078        18.974       -.48602E-05   -.53344E-03
  21  norm          2.4579        1.5864       -.35054E-07   -.15771E-03
  22  Prefactor     .10000E-03    3.4468        .64332E-06** at limit **
  23  Prefactor     .10000E-03    11.849       -.83554E-05** at limit **
  24  Prefactor     36.721        44.032       -.67400E-05    .42365E-06
  25  norm          .10000E-03    22.740       -.14114E-04** at limit **
  26  Prefactor     9.3353        17.581        .10261E-05   -.25129E-04
  27  Normalizat    1.1429        .24433        .10765E-05    .11025E-04
  28  Prefactor     1.2303        .19831        .23374E-06    .59253E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.4186
  Prefactor  = 53.9536
  Prefactor  = 62.9728
  Prefactor  = 208.69
  Prefactor  = 14.5091
  Prefactor  = 0.0001
  norm       = 3.09885
  norm       = 8.54064
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.732078
  Prefactor  = 32.2487
  Prefactor  = 0.0001
  Prefactor  = 1.10777
  norm       = 2.45785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.7213
  norm       = 0.0001
  Prefactor  = 9.33534
  Normalizat = 1.1429
  Prefactor  = 1.23027
 **********
 **   18 **HESSE 
 **********

 FCN=   6641.432     FROM HESSE     STATUS=OK           517 CALLS     3977 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.090        22.253        .94171E-04   -1.4857    
   2  Prefactor     .10000E-03    36.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.9108        .15717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.3412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.419        24.477        .76499E-04   -1.4660    
   7  Prefactor     53.954        74.203        .54606E-04   -1.4238    
   8  Prefactor     62.973        47.095        .50566E-04   -1.4119    
   9  Prefactor     208.69        51.269        .27983E-04   -1.2809    
  10  Prefactor     14.509        40.118        .10514E-03   -1.4946    
  11  Prefactor     .10000E-03    7.8819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0988        3.1243        .13711E-03   -1.5356    
  13  norm          8.5406        4.8354        .11902E-03   -1.5123    
  14  Prefactor     .10000E-03    36.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    56.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .73208        .55965        .50519E-03   -1.5537    
  18  Prefactor     32.249        14.966        .70558E-04   -1.4572    
  19  Prefactor     .10000E-03    19.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1078        20.342        .44966E-03   -1.5497    
  21  norm          2.4579        1.5789        .78761E-04   -1.5394    
  22  Prefactor     .10000E-03    3.4593        .14776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    11.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     36.721        43.912        .66130E-04   -1.4495    
  25  norm          .10000E-03    22.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.3353        17.588        .13109E-03   -1.5097    
  27  Normalizat    1.1429        .28899        .33358E-03   -.88386    
  28  Prefactor     1.2303        .23466        .27399E-03   -.85405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40821e-09
Minuit parameter uncertainties:
  1  22.2635
  2  7.92216e-09
  3  9.53042e-07
  4  1.79978e-05
  5  4.46808e-06
  6  24.4857
  7  74.3304
  8  47.1229
  9  51.2796
  10  40.1931
  11  1.90237e-06
  12  3.12444
  13  4.83558
  14  9.42081e-05
  15  2.28448e-05
  16  1.71735e-05
  17  0.559657
  18  14.9682
  19  3.03911e-06
  20  9.49748
  21  1.5789
  22  6.20707e-06
  23  1.56486e-06
  24  43.9507
  25  2.83934e-05
  26  17.5977
  27  0.289396
  28  0.234859
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  8.541e+00  4.836e+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.230e+00  2.349e-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.143e+00  2.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.57
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 7.43e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 1.72e-05

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) = 6641.18349676
delta logL = 0.248289859474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6641.18173274
delta logL = 0.25005387982

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2831       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5451       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0656       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2836       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=   6641.182     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      267 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2923        50.014        .40035E-02    .31579E-03
   2  alpha         3.5435        3.4474        .46997        .48200E-04
   3  Normalizat    1.0661        .10050        .77573E-01    .23236E-04
   4  Prefactor     1.2831        .85715E-01    .60904E-01   -.25359E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.29228
  alpha      = 3.5435
  Normalizat = 1.06606
  Prefactor  = 1.28306
 **********
 **   18 **HESSE 
 **********

 FCN=   6641.182     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2923        18.454        .92793E-04   -1.5206    
   2  alpha         3.5435        4.2392        .21104E-01    .43058    
   3  Normalizat    1.0661        .33913        .34335E-03   -.90849    
   4  Prefactor     1.2831        .29006        .26934E-03   -.83812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77466e-10
Minuit parameter uncertainties:
  1  18.4706
  2  4.02741
  3  0.339824
  4  0.290421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538712': 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) = 6641.18173003
delta logL = 0.250056587697

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  6.292e+00  1.847e+01  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  3.543e+00  4.027e+00  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.283e+00  2.904e-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.066e+00  3.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.35
Ra Dec: 185.627 4.239
Photon Index (Free Index): 3.54 +/- 4.03
Photon Flux (Free Index): 1.84e-07 +/- 1.23e-07
Energy Flux (Free Index): 3.06e-05 +/- 2.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/538712/cmap_HighResolution_464832001_465091201_4FGL_J1222.5+0414_daily_bin870.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='3.06e-05', photon_flux_error='7.43e-08', dlogl='2.50e-01', energy_flux='3.04e-05', photon_flux2='1.84e-07', job_status='DONE', time_completed='2021-09-05 10:36:06.131328', photon_index_error2='4.03', photon_index2='3.54', ts='5.57', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='1.14', time_epoch_completed='1630863366.13', return_code='0', job_id='538712', GAL2='1.28', EG2='1.07', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='1.23e-07', ts2='6.35', photon_index='2.69' WHERE bin_id='870' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:36:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 538712: <4FGL_J1222.5+0414_daily_bin870> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin870> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:20:51 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:20:53 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:53 2021
Terminated at Sun Sep  5 10:36:06 2021
Results reported at Sun Sep  5 10:36:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin870 185.627 4.2389 464832001 465091201 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 :                                   747.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

