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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin856
RA = 185.627, Dec = 4.2389
tmin = 461203201, tmax = 461462401
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='538684', job_status='RUN', time_executed='2021-09-05 10:24:27.647399', time_epoch_executed='1630862667.65' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='856'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/538684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/538684/ft1_4FGL_J1222.5+0414_daily_bin856.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/538684/ft2_4FGL_J1222.5+0414_daily_bin856.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/538684/ft1_4FGL_J1222.5+0414_daily_bin856.fits outfile=/scratch/kocevski/538684/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin856.fits ra=185.627 dec=4.2389 rad=12.0 tmin=461203201.0 tmax=461462401.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.76
user 3.20
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/538684/ft1_filtered_4FGL_J1222.5+0414_daily_bin856.fits" evtable="EVENTS" scfile=/scratch/kocevski/538684/ft2_4FGL_J1222.5+0414_daily_bin856.fits sctable="SC_DATA" outfile=/scratch/kocevski/538684/ltcube_461203201_461462401_4FGL_J1222.5+0414_daily_bin856.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/538684/ft2_4FGL_J1222.5+0414_daily_bin856.fits
.....................!
real 11.99
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/538684/ft1_filtered_4FGL_J1222.5+0414_daily_bin856.fits evtable="EVENTS" scfile=/scratch/kocevski/538684/ft2_4FGL_J1222.5+0414_daily_bin856.fits sctable="SC_DATA" expcube=/scratch/kocevski/538684/ltcube_461203201_461462401_4FGL_J1222.5+0414_daily_bin856.fits outfile=/scratch/kocevski/538684/expmap_461203201_461462401_4FGL_J1222.5+0414_daily_bin856.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/538684/ltcube_461203201_461462401_4FGL_J1222.5+0414_daily_bin856.fits
.....................!
real 192.33
user 187.19
sys 4.77

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/538684/ft1_filtered_4FGL_J1222.5+0414_daily_bin856.fits scfile=/scratch/kocevski/538684/ft2_4FGL_J1222.5+0414_daily_bin856.fits outfile=/scratch/kocevski/538684/cmap_461203201_461462401_4FGL_J1222.5+0414_daily_bin856.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.58
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/538684/ft1_filtered_4FGL_J1222.5+0414_daily_bin856.fits scfile=/scratch/kocevski/538684/ft2_4FGL_J1222.5+0414_daily_bin856.fits outfile=/scratch/kocevski/538684/cmap_HighResolution_461203201_461462401_4FGL_J1222.5+0414_daily_bin856.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.58
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.5407       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.688       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.201       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    44.468       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.3252       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.737       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.532       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5360       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.049       1.0000         .10000E-03   10000.    
    24 'Prefactor '    35.282       1.0000         .10000E-03   10000.    
    25 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11041E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1116       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83468       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=   5396.230     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3424 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3143       -.64538E-06** at limit **
   2  Prefactor     .10000E-03    85.080       -.20568E-05** at limit **
   3  Prefactor     .10000E-03    4.7233        .78345E-08** at limit **
   4  Prefactor     .10000E-03    2.4980        .49901E-06** at limit **
   5  Prefactor     8.5363        16.354       -.45097E-05   -.94508E-03
   6  Prefactor     .10000E-03    12.719       -.45728E-05** at limit **
   7  Prefactor     .10000E-03    34.810       -.46567E-05** at limit **
   8  Prefactor     .10000E-03    34.060       -.73377E-05** at limit **
   9  Prefactor     35.689        24.082       -.59296E-06    .42450E-04
  10  Prefactor     .10000E-03    13.926        .64647E-05** at limit **
  11  Prefactor     27.202        13.512       -.37858E-06    .66478E-04
  12  norm          .10000E-03    1.0244       -.11054E-06** at limit **
  13  norm          2.2116        3.8571       -.11591E-05   -.68456E-03
  14  Prefactor     .10000E-03    8.8985        .11047E-05** at limit **
  15  norm          44.469        42.820        .15254E-05    .83511E-05
  16  Prefactor     .10000E-03    37.775        .92742E-05** at limit **
  17  norm          1.3252        .59131       -.12217E-06    .19630E-03
  18  Prefactor     10.737        9.5140       -.55039E-07    .28698E-04
  19  Prefactor     .10000E-03    22.149       -.63744E-06** at limit **
  20  Prefactor     11.530        11.435       -.52652E-06   -.25538E-04
  21  norm          1.5359        1.7934        .61500E-07   -.42541E-03
  22  Prefactor     .10000E-03    4.0277        .67354E-06** at limit **
  23  Prefactor     19.043        41.689       -.87246E-05    .50090E-05
  24  Prefactor     35.245        44.546       -.37236E-04   -.44553E-05
  25  norm          .10000E-03    6.7635       -.85221E-08** at limit **
  26  Prefactor     .10000E-03    4.3400        .12397E-05** at limit **
  27  Normalizat    1.1116        .21048        .41410E-05   -.12343E-04
  28  Prefactor     .83472        .17116        .15651E-05    .14417E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.53627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6892
  Prefactor  = 0.0001
  Prefactor  = 27.202
  norm       = 0.0001
  norm       = 2.21158
  Prefactor  = 0.0001
  norm       = 44.4693
  Prefactor  = 0.0001
  norm       = 1.32525
  Prefactor  = 10.7372
  Prefactor  = 0.0001
  Prefactor  = 11.5304
  norm       = 1.53594
  Prefactor  = 0.0001
  Prefactor  = 19.0435
  Prefactor  = 35.2446
  norm       = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.11157
  Prefactor  = 0.83472
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.230     FROM HESSE     STATUS=OK           515 CALLS     3939 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    85.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.7374        .15589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.5003        .11337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.5363        16.785        .68584E-03   -1.5124    
   6  Prefactor     .10000E-03    12.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    34.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.689        24.093        .67084E-04   -1.4512    
  10  Prefactor     .10000E-03    13.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     27.202        13.486        .76813E-04   -1.4664    
  12  norm          .10000E-03    1.0275        .72457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2116        3.8148        .15659E-03   -1.5411    
  14  Prefactor     .10000E-03    8.9001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          44.469        42.611        .60122E-04   -1.4373    
  16  Prefactor     .10000E-03    37.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3252        .58428        .34234E-04   -1.5478    
  18  Prefactor     10.737        9.5174        .12227E-03   -1.5052    
  19  Prefactor     .10000E-03    22.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.530        11.431        .11797E-03   -1.5029    
  21  norm          1.5359        1.7688        .98349E-04   -1.5460    
  22  Prefactor     .10000E-03    4.0504        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.043        41.630        .91766E-04   -1.4835    
  24  Prefactor     35.245        44.249        .67468E-04   -1.4520    
  25  norm          .10000E-03    6.7642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.3660        .14970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1116        .24806        .26081E-03   -.89381    
  28  Prefactor     .83472        .20075        .25071E-03   -.98461    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73339e-09
Minuit parameter uncertainties:
  1  8.37556e-06
  2  0.000181503
  3  9.10237e-06
  4  5.428e-06
  5  16.7944
  6  4.61886e-05
  7  3.93214e-05
  8  8.51183e-05
  9  24.0993
  10  1.1537e-05
  11  13.4879
  12  8.37947e-07
  13  3.81522
  14  4.90825e-06
  15  42.6401
  16  5.80202e-07
  17  0.584285
  18  9.51871
  19  1.71925e-05
  20  11.4334
  21  1.76889
  22  4.44006e-06
  23  41.6936
  24  44.2897
  25  5.42649e-07
  26  0.000166008
  27  0.248318
  28  0.200923
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.212e+00  3.815e+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:  8.347e-01  2.009e-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.112e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/538684/likelihoodResults_461203201_461462401_4FGL_J1222.5+0414_daily_bin856.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) = 5396.1959545
delta logL = 0.0342870881777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5396.1941731
delta logL = 0.0360684911493

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3411       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2814       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82813       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=   5396.194     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      202 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3412        4.1737        .66990E-02   -.32307E-02
   2  alpha         2.2812        1.1539        .41352       -.51731E-04
   3  Normalizat    1.1209        .20054        .58766E-01    .91741E-05
   4  Prefactor     .82814        .16993        .44082E-01    .11816E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.3412
  alpha      = 2.28123
  Normalizat = 1.12087
  Prefactor  = 0.828138
 **********
 **   18 **HESSE 
 **********

 FCN=   5396.194     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3412        3.3985        .15536E-03   -1.5402    
   2  alpha         2.2812        1.2471        .27788E-01   -.87618E-01
   3  Normalizat    1.1209        .23570        .25989E-03   -.89085    
   4  Prefactor     .82814        .19835        .25155E-03   -.98699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.66467e-09
Minuit parameter uncertainties:
  1  3.39881
  2  1.30614
  3  0.235923
  4  0.198519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/538684': 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) = 5396.19417308
delta logL = 0.0360685102642

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.341e+00  3.399e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.281e+00  1.306e+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.281e-01  1.985e-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.121e+00  2.359e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.54
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/538684/cmap_HighResolution_461203201_461462401_4FGL_J1222.5+0414_daily_bin856.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-05', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-05 10:36:48.803269', job_id='538684', GAL2='0.83', fit_tolerance='1e-08', EG2='1.12', EG='1.11', time_epoch_completed='1630863408.8', return_code2='0', ts='0.54', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='3.61e-02', ts2='0.61', photon_index_error='0.00', photon_index='2.69' WHERE bin_id='856' 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 <lsf@bullet0237>
Subject: Job 538684: <4FGL_J1222.5+0414_daily_bin856> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin856> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 10:20:50 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:20:52 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:52 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_bin856 185.627 4.2389 461203201 461462401 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 :                                   738.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

