/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 7545
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1222.5+0414_daily_bin630
RA = 185.627, Dec = 4.2389
tmin = 402624001, tmax = 402883201
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='538294', job_status='RUN', time_executed='2021-09-05 10:21:07.886926', time_epoch_executed='1630862467.89' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538294

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538294/ft1_4FGL_J1222.5+0414_daily_bin630.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538294/ft2_4FGL_J1222.5+0414_daily_bin630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538294/ft1_4FGL_J1222.5+0414_daily_bin630.fits outfile=/scratch/kocevski/538294/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin630.fits ra=185.627 dec=4.2389 rad=12.0 tmin=402624001.0 tmax=402883201.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.62
user 3.37
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538294/ft1_filtered_4FGL_J1222.5+0414_daily_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/538294/ft2_4FGL_J1222.5+0414_daily_bin630.fits sctable="SC_DATA" expcube=/scratch/kocevski/538294/ltcube_402624001_402883201_4FGL_J1222.5+0414_daily_bin630.fits outfile=/scratch/kocevski/538294/expmap_402624001_402883201_4FGL_J1222.5+0414_daily_bin630.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/538294/ltcube_402624001_402883201_4FGL_J1222.5+0414_daily_bin630.fits
.....................!
real 190.84
user 186.10
sys 3.83

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/538294/ft1_filtered_4FGL_J1222.5+0414_daily_bin630.fits scfile=/scratch/kocevski/538294/ft2_4FGL_J1222.5+0414_daily_bin630.fits outfile=/scratch/kocevski/538294/cmap_402624001_402883201_4FGL_J1222.5+0414_daily_bin630.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538294/ft1_filtered_4FGL_J1222.5+0414_daily_bin630.fits scfile=/scratch/kocevski/538294/ft2_4FGL_J1222.5+0414_daily_bin630.fits outfile=/scratch/kocevski/538294/cmap_HighResolution_402624001_402883201_4FGL_J1222.5+0414_daily_bin630.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.155       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3765       1.0000         .10000E-03   10000.    
    13 'norm      '    4.5595       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    31.264       1.0000         .10000E-03   10000.    
    16 'Prefactor '    74.290       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1878       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.520       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .41036E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    9.4748       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.803       1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.580       1.0000         .10000E-03   10000.    
    24 'Prefactor '    44.858       1.0000         .10000E-03   10000.    
    25 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .66964       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4189       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=   7264.084     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3445 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.609        .29201E-06** at limit **
   2  Prefactor     30.049        101.29       -.76121E-06   -.10656E-04
   3  Prefactor     .10000E-03    4.0413       -.28130E-06** at limit **
   4  Prefactor     .10000E-03    2.0649        .70395E-07** at limit **
   5  Prefactor     .10000E-03    11.716        .54896E-06** at limit **
   6  Prefactor     .10000E-03    16.829        .12171E-05** at limit **
   7  Prefactor     .10000E-03    25.552        .75248E-07** at limit **
   8  Prefactor     .10000E-03    9.8367       -.12842E-06** at limit **
   9  Prefactor     .10000E-03    16.557        .76759E-06** at limit **
  10  Prefactor     .10000E-03    25.387       -.15314E-05** at limit **
  11  Prefactor     .10000E-03    4.7070        .27300E-06** at limit **
  12  norm          2.3769        2.0942       -.26984E-07   -.81617E-04
  13  norm          4.5591        3.9463        .18930E-05    .36533E-04
  14  Prefactor     .10000E-03    10.616       -.12266E-05** at limit **
  15  norm          31.268        38.326       -.16174E-05   -.13311E-04
  16  Prefactor     73.938        151.25       -.32061E-05   -.25627E-04
  17  norm          2.1879        .70042       -.12306E-06   -.58096E-03
  18  Prefactor     .10000E-03    3.5422       -.11630E-06** at limit **
  19  Prefactor     14.509        35.343        .36873E-06   -.28290E-05
  20  Prefactor     .10004E-03    5.6081        .67781E-06** at limit **
  21  norm          9.4749        2.3565       -.20460E-07   -.99834E-04
  22  Prefactor     13.804        11.372       -.25621E-06   -.10160E-03
  23  Prefactor     33.578        33.138        .47063E-07   -.11386E-04
  24  Prefactor     44.843        40.943        .94757E-07   -.81788E-05
  25  norm          .10000E-03    17.166        .16976E-06** at limit **
  26  Prefactor     .10000E-03    8.2980        .79087E-07** at limit **
  27  Normalizat    .66953        .22282       -.21695E-05   -.58662E-04
  28  Prefactor     1.4190        .17931        .53322E-06   -.18596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.0489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.37688
  norm       = 4.55908
  Prefactor  = 0.0001
  norm       = 31.268
  Prefactor  = 73.9381
  norm       = 2.18789
  Prefactor  = 0.0001
  Prefactor  = 14.5091
  Prefactor  = 0.000100042
  norm       = 9.47487
  Prefactor  = 13.8037
  Prefactor  = 33.5782
  Prefactor  = 44.8428
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.669531
  Prefactor  = 1.419
 **********
 **   18 **HESSE 
 **********

 FCN=   7264.084     FROM HESSE     STATUS=OK           513 CALLS     3958 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.049        101.64        .72962E-04   -1.4611    
   3  Prefactor     .10000E-03    4.0482        .16727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0668        .11960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.8414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7201        .18055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3769        2.0982        .11173E-03   -1.5400    
  13  norm          4.5591        3.9486        .70080E-03   -1.5281    
  14  Prefactor     .10000E-03    10.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          31.268        38.383        .71659E-04   -1.4589    
  16  Prefactor     73.938        151.87        .23291E-03   -1.3986    
  17  norm          2.1879        .69781        .36635E-04   -1.5412    
  18  Prefactor     .10000E-03    3.5442        .15660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.509        35.361        .10511E-03   -1.4946    
  20  Prefactor     .10004E-03    63.126        .37864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.4749        2.3552        .61519E-04   -1.5092    
  22  Prefactor     13.804        11.211        .10781E-03   -1.4965    
  23  Prefactor     33.578        33.130        .69151E-04   -1.4548    
  24  Prefactor     44.843        40.937        .59861E-04   -1.4368    
  25  norm          .10000E-03    17.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8.3282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .66953        .25105        .38848E-03   -1.0511    
  28  Prefactor     1.4190        .20547        .23644E-03   -.79834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82564e-10
Minuit parameter uncertainties:
  1  3.29337e-06
  2  102.238
  3  2.51201e-06
  4  8.76239e-08
  5  1.49929e-05
  6  1.49059e-05
  7  7.12253e-06
  8  1.11427e-05
  9  8.25268e-06
  10  7.30854e-05
  11  8.64093e-07
  12  2.09828
  13  3.94878
  14  2.4027e-06
  15  38.4129
  16  152.673
  17  0.697817
  18  7.85123e-07
  19  35.4124
  20  0.00324911
  21  2.35525
  22  11.2125
  23  33.1479
  24  40.9629
  25  5.64914e-06
  26  8.80263e-06
  27  0.251485
  28  0.205588
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  4.559e+00  3.949e+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.419e+00  2.056e-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:  6.695e-01  2.515e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 7.02e-08 +/- 6.07e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.40e-05

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

Saving results to:
/scratch/kocevski/538294/likelihoodResults_402624001_402883201_4FGL_J1222.5+0414_daily_bin630.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7263.85049851
delta logL = 0.233670706244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7263.78230875
delta logL = 0.30186046673

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8106       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9062       1.0000          .0000       5.0000    
     3 'Normalizat'    .71232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3985       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=   7263.782     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      221 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8084        2.7083        .60658E-02    .42161E-04
   2  alpha         1.9055        .52759        .42724       -.45273E-04
   3  Normalizat    .71249        .20627        .85284E-01    .15556E-04
   4  Prefactor     1.3984        .17576        .53834E-01    .97312E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.80842
  alpha      = 1.90547
  Normalizat = 0.712494
  Prefactor  = 1.39839
 **********
 **   18 **HESSE 
 **********

 FCN=   7263.782     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8084        4.1178        .12988E-03   -1.5373    
   2  alpha         1.9055        .96111        .17731E-01   -.24011    
   3  Normalizat    .71249        .23941        .37773E-03   -1.0340    
   4  Prefactor     1.3984        .20297        .23800E-03   -.80427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62515e-11
Minuit parameter uncertainties:
  1  4.11819
  2  0.988154
  3  0.239767
  4  0.203089
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538294': 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) = 7263.78230831
delta logL = 0.301860906005

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.808e+00  4.118e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  1.905e+00  9.882e-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.398e+00  2.031e-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:  7.125e-01  2.398e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.16
Ra Dec: 185.627 4.239
Photon Index (Free Index): 1.91 +/- 0.99
Photon Flux (Free Index): 2.99e-08 +/- 4.97e-08
Energy Flux (Free Index): 1.49e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/538294/cmap_HighResolution_402624001_402883201_4FGL_J1222.5+0414_daily_bin630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-05', comment='SUCCESS', photon_flux='7.02e-08', energy_flux2='1.49e-05', photon_flux_error='6.07e-08', dlogl='3.02e-01', energy_flux='1.62e-05', photon_flux2='2.99e-08', job_status='DONE', time_completed='2021-09-05 10:35:45.869536', photon_index_error2='0.99', photon_index2='1.91', ts='3.59', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='1.94e-07', energy_flux_error2='1.42e-05', EG='0.67', time_epoch_completed='1630863345.87', return_code='0', job_id='538294', GAL2='1.40', EG2='0.71', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='4.97e-08', ts2='4.16', photon_index='2.69' WHERE bin_id='630' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 538294: <4FGL_J1222.5+0414_daily_bin630> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin630 185.627 4.2389 402624001 402883201 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 :                                   872.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

