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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin743
RA = 185.627, Dec = 4.2389
tmin = 431913601, tmax = 432172801
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='538470', job_status='RUN', time_executed='2021-09-05 10:24:31.352671', time_epoch_executed='1630862671.35' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='743'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538470

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538470/ft1_4FGL_J1222.5+0414_daily_bin743.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538470/ft2_4FGL_J1222.5+0414_daily_bin743.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538470/ft1_4FGL_J1222.5+0414_daily_bin743.fits outfile=/scratch/kocevski/538470/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin743.fits ra=185.627 dec=4.2389 rad=12.0 tmin=431913601.0 tmax=432172801.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 5.23
user 4.95
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538470/ft1_filtered_4FGL_J1222.5+0414_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/538470/ft2_4FGL_J1222.5+0414_daily_bin743.fits sctable="SC_DATA" expcube=/scratch/kocevski/538470/ltcube_431913601_432172801_4FGL_J1222.5+0414_daily_bin743.fits outfile=/scratch/kocevski/538470/expmap_431913601_432172801_4FGL_J1222.5+0414_daily_bin743.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/538470/ltcube_431913601_432172801_4FGL_J1222.5+0414_daily_bin743.fits
.....................!
real 191.84
user 186.13
sys 5.38

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/538470/ft1_filtered_4FGL_J1222.5+0414_daily_bin743.fits scfile=/scratch/kocevski/538470/ft2_4FGL_J1222.5+0414_daily_bin743.fits outfile=/scratch/kocevski/538470/cmap_431913601_432172801_4FGL_J1222.5+0414_daily_bin743.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538470/ft1_filtered_4FGL_J1222.5+0414_daily_bin743.fits scfile=/scratch/kocevski/538470/ft2_4FGL_J1222.5+0414_daily_bin743.fits outfile=/scratch/kocevski/538470/cmap_HighResolution_431913601_432172801_4FGL_J1222.5+0414_daily_bin743.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/538470/ft1_filtered_4FGL_J1222.5+0414_daily_bin743.fits evtable="EVENTS" scfile=/scratch/kocevski/538470/ft2_4FGL_J1222.5+0414_daily_bin743.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/538470/Model_4FGL_J1222.5+0414_daily_bin743.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/538470/ft1_filtered_4FGL_J1222.5+0414_daily_bin743.fits.....................!
real 48.22
user 46.84
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.441       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9365       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.951       1.0000         .10000E-03   10000.    
     7 'Prefactor '    114.72       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .14636E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    100.22       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.8316       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.519       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.2848       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.941       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    7.3703       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.062       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1584       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86098       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=   5158.042     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     3510 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2816       -.20346E-07** at limit **
   2  Prefactor     40.385        114.72       -.40821E-05   -.66869E-04
   3  Prefactor     5.9377        13.573        .52282E-05   -.15146E-03
   4  Prefactor     .10000E-03    3.0591        .70958E-08** at limit **
   5  Prefactor     .10000E-03    8.8676       -.54011E-06** at limit **
   6  Prefactor     51.939        25.316        .54102E-06   -.12266E-03
   7  Prefactor     114.66        126.16       -.48774E-05   -.89549E-04
   8  Prefactor     .10000E-03    27.644       -.43138E-06** at limit **
   9  Prefactor     .10000E-03    85.722        .35654E-05** at limit **
  10  Prefactor     .10000E-03    18.589        .25386E-06** at limit **
  11  Prefactor     .10000E-03    17.330        .22548E-06** at limit **
  12  norm          .10000E-03    1.8571        .14756E-06** at limit **
  13  norm          .10012E-03    3.6519        .41838E-05** at limit **
  14  Prefactor     .10000E-03    31.689       -.44503E-07** at limit **
  15  norm          100.31        65.376       -.42288E-05   -.35381E-03
  16  Prefactor     .10000E-03    102.86        .34625E-06** at limit **
  17  norm          4.8348        1.0667       -.37509E-06   -.87072E-02
  18  Prefactor     .10000E-03    9.1361        .25528E-06** at limit **
  19  Prefactor     45.523        46.137        .22353E-06   -.39333E-04
  20  Prefactor     .10000E-03    22.151        .79998E-06** at limit **
  21  norm          7.2865        2.8603       -.21329E-06   -.16772E-02
  22  Prefactor     .10000E-03    3.5793        .38111E-07** at limit **
  23  Prefactor     15.928        40.973        .96367E-06   -.56259E-04
  24  Prefactor     .10001E-03    124.35       -.13261E-05** at limit **
  25  norm          7.3688        13.584        .17840E-06   -.69581E-05
  26  Prefactor     15.058        17.527       -.84310E-06   -.85998E-05
  27  Normalizat    1.1588        .26042       -.67919E-06   -.74176E-03
  28  Prefactor     .86092        .19853       -.11515E-05   -.56455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 40.3848
  Prefactor  = 5.93775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.9393
  Prefactor  = 114.661
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100116
  Prefactor  = 0.0001
  norm       = 100.307
  Prefactor  = 0.0001
  norm       = 4.83484
  Prefactor  = 0.0001
  Prefactor  = 45.5232
  Prefactor  = 0.000100001
  norm       = 7.28651
  Prefactor  = 0.0001
  Prefactor  = 15.9283
  Prefactor  = 0.000100006
  norm       = 7.36877
  Prefactor  = 15.0578
  Normalizat = 1.15881
  Prefactor  = 0.860916
 **********
 **   18 **HESSE 
 **********

 FCN=   5158.042     FROM HESSE     STATUS=OK           503 CALLS     4013 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.385        114.77        .63032E-04   -1.4436    
   3  Prefactor     5.9377        13.309        .82405E-03   -1.5221    
   4  Prefactor     .10000E-03    3.0635        .12267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.939        25.373        .55643E-04   -1.4265    
   7  Prefactor     114.66        125.44        .18781E-03   -1.3562    
   8  Prefactor     .10000E-03    27.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    87.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9072        .19107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10012E-03    11.509        .22427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    31.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          100.31        65.465        .20079E-03   -1.3702    
  16  Prefactor     .10000E-03    102.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.8348        1.0833        .18301E-04   -1.5268    
  18  Prefactor     .10000E-03    9.1558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     45.523        46.299        .59426E-04   -1.4358    
  20  Prefactor     .10000E-03    22.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.2865        2.8603        .71297E-04   -1.5168    
  22  Prefactor     .10000E-03    3.5858        .13269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.928        40.976        .10031E-03   -1.4910    
  24  Prefactor     .10001E-03    124.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          7.3688        13.579        .14774E-03   -1.5165    
  26  Prefactor     15.058        17.531        .10320E-03   -1.4932    
  27  Normalizat    1.1588        .30717        .30259E-03   -.87885    
  28  Prefactor     .86092        .23156        .27682E-03   -.97520    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22127e-08
Minuit parameter uncertainties:
  1  1.68019e-05
  2  115.403
  3  13.3155
  4  9.98656e-07
  5  9.73451e-06
  6  25.3781
  7  125.731
  8  8.20782e-05
  9  0.00132102
  10  1.68176e-05
  11  1.97941e-06
  12  6.91351e-06
  13  0.00231166
  14  9.14442e-05
  15  65.5121
  16  7.95267e-05
  17  1.08328
  18  3.33193e-05
  19  46.3355
  20  0.000256428
  21  2.86037
  22  5.94072e-06
  23  41.0484
  24  0.00174384
  25  13.585
  26  17.5371
  27  0.307644
  28  0.231829
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.001e-04  2.312e-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:  8.609e-01  2.318e-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.159e+00  3.076e-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.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/538470/likelihoodResults_431913601_432172801_4FGL_J1222.5+0414_daily_bin743.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) = 5158.04251601
delta logL = -0.000414074796936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5158.04210234
delta logL = -4.07985680795e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5158.026     FROM MIGRAD    STATUS=FAILED       184 CALLS      354 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39922        4.9366        .22525E-02   -.69048E-02
   2  alpha         4.1857        4.5714        .16549        .56916E-04
   3  Normalizat    1.1401        .29930        .30259E-03    .96559E-05
   4  Prefactor     .87028        .23403        .27682E-03    .10719E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5158.026     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      423 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39922        4.9366        .15317E-03   -1.5834    
   2  alpha         4.1857        4.5714        .10952E-01    .74000    
   3  Normalizat    1.1401        .29930        .37324E-03   -.88474    
   4  Prefactor     .87028        .23403        .33291E-03   -.97188    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5158.026     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      455 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39922        4.5287        .45051E-03   -.27310E-03
   2  alpha         4.1857        4.5927        .33098E-01    .21591E-05
   3  Normalizat    1.1401        .30216        .12104E-04    .95807E-05
   4  Prefactor     .87028        .23507        .11073E-04    .10678E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.399218
  alpha      = 4.18572
  Normalizat = 1.14012
  Prefactor  = 0.870279
 **********
 **   18 **HESSE 
 **********

 FCN=   5158.026     FROM HESSE     STATUS=OK            27 CALLS      482 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39922        4.4398        .90101E-04   -1.5834    
   2  alpha         4.1857        4.5927        .66196E-02    .74000    
   3  Normalizat    1.1401        .30255        .24207E-05   -.88474    
   4  Prefactor     .87028        .23514        .22145E-05   -.97188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13025e-13
Minuit parameter uncertainties:
  1  2.66257
  2  4.23967
  3  0.303008
  4  0.235409
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538470': 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) = 5158.02613339
delta logL = 0.0159685437584

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.992e-01  2.663e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  4.186e+00  4.240e+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:  8.703e-01  2.354e-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.140e+00  3.030e-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/538470/cmap_HighResolution_431913601_432172801_4FGL_J1222.5+0414_daily_bin743.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-05', job_status='DONE', photon_flux_upper_limit='1.78e-07', time_completed='2021-09-05 10:36:48.938645', job_id='538470', GAL2='0.87', fit_tolerance='1e-08', EG2='1.14', EG='1.16', time_epoch_completed='1630863408.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.60e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='743' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:36:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 538470: <4FGL_J1222.5+0414_daily_bin743> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin743 185.627 4.2389 431913601 432172801 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 :                                   737.00 sec.
    Max Memory :                                 1062 MB
    Average Memory :                             259.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            973 sec.

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

