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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin586
RA = 185.627, Dec = 4.2389
tmin = 391219201, tmax = 391478401
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='537220', job_status='RUN', time_executed='2021-09-05 10:18:07.504878', time_epoch_executed='1630862287.5' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537220/ft1_4FGL_J1222.5+0414_daily_bin586.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537220/ft2_4FGL_J1222.5+0414_daily_bin586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537220/ft1_4FGL_J1222.5+0414_daily_bin586.fits outfile=/scratch/kocevski/537220/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin586.fits ra=185.627 dec=4.2389 rad=12.0 tmin=391219201.0 tmax=391478401.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.31
user 3.09
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537220/ft1_filtered_4FGL_J1222.5+0414_daily_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/537220/ft2_4FGL_J1222.5+0414_daily_bin586.fits sctable="SC_DATA" expcube=/scratch/kocevski/537220/ltcube_391219201_391478401_4FGL_J1222.5+0414_daily_bin586.fits outfile=/scratch/kocevski/537220/expmap_391219201_391478401_4FGL_J1222.5+0414_daily_bin586.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/537220/ltcube_391219201_391478401_4FGL_J1222.5+0414_daily_bin586.fits
.....................!
real 190.89
user 185.45
sys 5.06

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/537220/ft1_filtered_4FGL_J1222.5+0414_daily_bin586.fits scfile=/scratch/kocevski/537220/ft2_4FGL_J1222.5+0414_daily_bin586.fits outfile=/scratch/kocevski/537220/cmap_391219201_391478401_4FGL_J1222.5+0414_daily_bin586.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.66
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537220/ft1_filtered_4FGL_J1222.5+0414_daily_bin586.fits scfile=/scratch/kocevski/537220/ft2_4FGL_J1222.5+0414_daily_bin586.fits outfile=/scratch/kocevski/537220/cmap_HighResolution_391219201_391478401_4FGL_J1222.5+0414_daily_bin586.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.79
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.832       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.003       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5633       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15044E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .64826E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.2545       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.121       1.0000         .10000E-03   10000.    
    15 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2112       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7518       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.573       1.0000         .10000E-03   10000.    
    21 'norm      '    2.9476       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.738       1.0000         .10000E-03   10000.    
    24 'Prefactor '    123.74       1.0000         .10000E-03   10000.    
    25 'norm      '    8.0269       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9513       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .98267       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0235       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.

 FCN=   6758.836     FROM MIGRAD    STATUS=CONVERGED   1227 CALLS     4069 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.837        26.465        .87756E-04   -.26428E-04
   2  Prefactor     53.997        82.445        .54581E-04    .13081E-04
   3  Prefactor     .10000E-03    4.3236        .16631E-02** at limit **
   4  Prefactor     .10000E-03    4.2929        .16540E-02** at limit **
   5  Prefactor     .10000E-03    8.8759        .18142E-02** at limit **
   6  Prefactor     4.5635        15.571        .94222E-03   -.27426E-04
   7  Prefactor     .10000E-03    314.83        .18142E-02** at limit **
   8  Prefactor     .10000E-03    16.798        .18142E-02** at limit **
   9  Prefactor     .10000E-03    9.7127        .18142E-02** at limit **
  10  Prefactor     .10000E-03    9.8631        .18142E-02** at limit **
  11  Prefactor     .10000E-03    11.437        .64746E-01** at limit **
  12  norm          .10000E-03    .70535        .67247E-03** at limit **
  13  norm          7.2547        3.6084        .50281E-03    .15974E-03
  14  Prefactor     15.120        20.498        .10300E-03    .12472E-04
  15  norm          .10000E-03    51.107        .18142E-02** at limit **
  16  Prefactor     .10000E-03    38.346        .18142E-02** at limit **
  17  norm          1.2114        .57020        .38735E-04   -.48779E-03
  18  Prefactor     8.7533        7.9013        .13549E-03   -.44470E-05
  19  Prefactor     .10000E-03    13.224        .18142E-02** at limit **
  20  Prefactor     12.574        9.4040        .11297E-03   -.92687E-04
  21  norm          2.9476        1.5223        .69569E-04    .31212E-04
  22  Prefactor     .10000E-03    6.2256        .36285E-03** at limit **
  23  Prefactor     16.736        29.788        .97896E-04   -.13587E-04
  24  Prefactor     123.71        63.938        .18092E-03   -.71132E-04
  25  norm          8.0246        18.027        .14152E-03   -.26832E-04
  26  Prefactor     3.9595        14.859        .20293E-03    .67116E-04
  27  Normalizat    .98257        .23173        .29005E-03   -.11555E-03
  28  Prefactor     1.0237        .19067        .24243E-03    .27706E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8366
  Prefactor  = 53.9973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.56353
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 7.25465
  Prefactor  = 15.1201
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21142
  Prefactor  = 8.7533
  Prefactor  = 0.0001
  Prefactor  = 12.5742
  norm       = 2.94756
  Prefactor  = 0.0001
  Prefactor  = 16.7365
  Prefactor  = 123.706
  norm       = 8.02457
  Prefactor  = 3.95955
  Normalizat = 0.982568
  Prefactor  = 1.02366
 **********
 **   18 **HESSE 
 **********

 FCN=   6758.836     FROM HESSE     STATUS=OK           503 CALLS     4572 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.837        26.466        .35102E-05   -1.4795    
   2  Prefactor     53.997        82.445        .10916E-04   -1.4237    
   3  Prefactor     .10000E-03    4.3247        .33263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2944        .33080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8767        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5635        15.563        .37689E-04   -1.5281    
   7  Prefactor     .10000E-03    314.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.7133        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.7841        .71993E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .70536        .13449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.2547        3.6077        .20112E-04   -1.5169    
  14  Prefactor     15.120        20.498        .41200E-05   -1.4930    
  15  norm          .10000E-03    51.124        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    38.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2114        .57023        .15494E-05   -1.5488    
  18  Prefactor     8.7533        7.9011        .54197E-05   -1.5116    
  19  Prefactor     .10000E-03    13.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.574        9.4045        .45187E-05   -1.4999    
  21  norm          2.9476        1.5222        .27828E-05   -1.5365    
  22  Prefactor     .10000E-03    6.2259        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.736        29.785        .39158E-05   -1.4890    
  24  Prefactor     123.71        63.902        .72369E-05   -1.3479    
  25  norm          8.0246        18.028        .56607E-05   -1.5141    
  26  Prefactor     3.9595        14.849        .81171E-05   -1.5310    
  27  Normalizat    .98257        .23193        .11602E-04   -.93617    
  28  Prefactor     1.0237        .19081        .48487E-04   -.91945    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95802e-10
Minuit parameter uncertainties:
  1  26.4811
  2  82.6196
  3  1.26842e-05
  4  1.36277e-05
  5  3.16729e-05
  6  15.5764
  7  0.00150061
  8  1.71619e-05
  9  6.40296e-06
  10  1.71147e-05
  11  0.000219937
  12  1.6818e-06
  13  3.6078
  14  20.5079
  15  0.000181318
  16  4.46181e-05
  17  0.57023
  18  7.90204
  19  1.27201e-05
  20  9.4056
  21  1.52221
  22  1.85779e-05
  23  29.8111
  24  63.9377
  25  18.0398
  26  14.8632
  27  0.232165
  28  0.190935
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  7.255e+00  3.608e+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.024e+00  1.909e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  9.826e-01  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.23
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 5.55e-08
Energy Flux (Fixed Index): 2.58e-05 +/- 1.28e-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) = 6758.71182673
delta logL = 0.124361037716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6758.70913445
delta logL = 0.127053314164

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1841       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4274       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0127       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=   6758.709     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1841        3.9931        .37414E-02    .16433E-02
   2  alpha         2.4275        .50030        .35631       -.16532E-04
   3  Normalizat    1.0020        .19513        .46191E-01    .10890E-04
   4  Prefactor     1.0127        .16508        .42955E-01    .82321E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.1841
  alpha      = 2.42754
  Normalizat = 1.00203
  Prefactor  = 1.01265
 **********
 **   18 **HESSE 
 **********

 FCN=   6758.709     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1841        3.6413        .10463E-03   -1.5172    
   2  alpha         2.4275        .50263        .14272E-01   -.28990E-01
   3  Normalizat    1.0020        .22569        .28767E-03   -.92962    
   4  Prefactor     1.0127        .18943        .24361E-03   -.92309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.189e-10
Minuit parameter uncertainties:
  1  3.64142
  2  0.506079
  3  0.22591
  4  0.189557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537220': 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) = 6758.70913432
delta logL = 0.127053447742

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  7.184e+00  3.641e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.428e+00  5.061e-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.013e+00  1.896e-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.002e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.51
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.43 +/- 0.51
Photon Flux (Free Index): 9.48e-08 +/- 5.88e-08
Energy Flux (Free Index): 2.62e-05 +/- 1.31e-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/537220/cmap_HighResolution_391219201_391478401_4FGL_J1222.5+0414_daily_bin586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='2.62e-05', photon_flux_error='5.55e-08', dlogl='1.27e-01', energy_flux='2.58e-05', photon_flux2='9.48e-08', job_status='DONE', time_completed='2021-09-05 10:31:34.674312', photon_index_error2='0.51', photon_index2='2.43', ts='10.23', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.98', time_epoch_completed='1630863094.67', return_code='0', job_id='537220', GAL2='1.01', EG2='1.00', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='5.88e-08', ts2='10.51', photon_index='2.69' WHERE bin_id='586' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:31:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 537220: <4FGL_J1222.5+0414_daily_bin586> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin586 185.627 4.2389 391219201 391478401 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 :                                   797.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            941 sec.

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

