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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin461
RA = 185.627, Dec = 4.2389
tmin = 358819201, tmax = 359078401
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='537029', job_status='RUN', time_executed='2021-09-05 10:18:00.924473', time_epoch_executed='1630862280.92' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='461'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537029

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537029/ft1_4FGL_J1222.5+0414_daily_bin461.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537029/ft2_4FGL_J1222.5+0414_daily_bin461.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537029/ft1_4FGL_J1222.5+0414_daily_bin461.fits outfile=/scratch/kocevski/537029/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin461.fits ra=185.627 dec=4.2389 rad=12.0 tmin=358819201.0 tmax=359078401.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.35
user 5.06
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537029/ft2_4FGL_J1222.5+0414_daily_bin461.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/537029/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin461.fits evtable="EVENTS" outfile="/scratch/kocevski/537029/ft1_filtered_4FGL_J1222.5+0414_daily_bin461.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/537029/ft1_filtered_4FGL_J1222.5+0414_daily_bin461.fits" evtable="EVENTS" scfile=/scratch/kocevski/537029/ft2_4FGL_J1222.5+0414_daily_bin461.fits sctable="SC_DATA" outfile=/scratch/kocevski/537029/ltcube_358819201_359078401_4FGL_J1222.5+0414_daily_bin461.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/537029/ft2_4FGL_J1222.5+0414_daily_bin461.fits
.....................!
real 13.38
user 13.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537029/ft1_filtered_4FGL_J1222.5+0414_daily_bin461.fits evtable="EVENTS" scfile=/scratch/kocevski/537029/ft2_4FGL_J1222.5+0414_daily_bin461.fits sctable="SC_DATA" expcube=/scratch/kocevski/537029/ltcube_358819201_359078401_4FGL_J1222.5+0414_daily_bin461.fits outfile=/scratch/kocevski/537029/expmap_358819201_359078401_4FGL_J1222.5+0414_daily_bin461.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/537029/ltcube_358819201_359078401_4FGL_J1222.5+0414_daily_bin461.fits
.....................!
real 190.50
user 184.89
sys 5.10

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/537029/ft1_filtered_4FGL_J1222.5+0414_daily_bin461.fits scfile=/scratch/kocevski/537029/ft2_4FGL_J1222.5+0414_daily_bin461.fits outfile=/scratch/kocevski/537029/cmap_358819201_359078401_4FGL_J1222.5+0414_daily_bin461.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.60
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537029/ft1_filtered_4FGL_J1222.5+0414_daily_bin461.fits scfile=/scratch/kocevski/537029/ft2_4FGL_J1222.5+0414_daily_bin461.fits outfile=/scratch/kocevski/537029/cmap_HighResolution_358819201_359078401_4FGL_J1222.5+0414_daily_bin461.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.76
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.9884       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3292       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8119       1.0000         .10000E-03   10000.    
    13 'norm      '    9.3937       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.053       1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2936       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.468       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.676       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0516       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.237       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.196       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0164       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84935       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=   5632.921     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3458 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4051       -.17427E-06** at limit **
   2  Prefactor     .10000E-03    98.790        .41749E-05** at limit **
   3  Prefactor     .10000E-03    5.6950        .44743E-07** at limit **
   4  Prefactor     9.9881        8.8511        .91815E-06   -.16119E-03
   5  Prefactor     15.542        21.058        .37471E-06   -.12973E-04
   6  Prefactor     .10000E-03    14.920       -.14550E-05** at limit **
   7  Prefactor     .10000E-03    56.516        .15915E-05** at limit **
   8  Prefactor     6.3264        45.463       -.11546E-05   -.15215E-04
   9  Prefactor     .10000E-03    8.0849        .76381E-06** at limit **
  10  Prefactor     .10000E-03    18.472       -.18464E-06** at limit **
  11  Prefactor     .10000E-03    12.293        .70772E-06** at limit **
  12  norm          2.8119        2.1878        .25814E-07   -.16967E-03
  13  norm          9.3937        4.6832        .28250E-06   -.40637E-03
  14  Prefactor     22.051        25.821       -.63990E-07   -.21638E-05
  15  norm          .10000E-03    20.556        .13735E-05** at limit **
  16  Prefactor     .10001E-03    126.38       -.65105E-05** at limit **
  17  norm          1.2936        .71490        .41789E-06   -.12431E-02
  18  Prefactor     17.467        13.057        .72695E-07   -.43796E-05
  19  Prefactor     12.673        31.680        .25495E-06   -.90951E-05
  20  Prefactor     .10000E-03    3.5187       -.26016E-07** at limit **
  21  norm          4.0516        2.1934       -.11294E-06   -.88822E-04
  22  Prefactor     13.237        8.2665       -.42230E-07   -.50907E-05
  23  Prefactor     .10000E-03    34.281       -.19842E-05** at limit **
  24  Prefactor     18.196        19.342        .19732E-07    .82799E-07
  25  norm          .10000E-03    8.6679       -.75220E-06** at limit **
  26  Prefactor     .10000E-03    2.8388        .11650E-07** at limit **
  27  Normalizat    1.0165        .21941       -.62928E-06   -.65407E-05
  28  Prefactor     .84930        .17361       -.45073E-06   -.58015E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 9.98806
  Prefactor  = 15.542
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.32642
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81185
  norm       = 9.39372
  Prefactor  = 22.0513
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 1.2936
  Prefactor  = 17.4674
  Prefactor  = 12.6728
  Prefactor  = 0.0001
  norm       = 4.0516
  Prefactor  = 13.2369
  Prefactor  = 0.000100001
  Prefactor  = 18.1961
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01651
  Prefactor  = 0.849304
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.921     FROM HESSE     STATUS=OK           517 CALLS     3975 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    100.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7206        .17489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.9881        8.8542        .63394E-03   -1.5076    
   5  Prefactor     15.542        21.144        .10160E-03   -1.4919    
   6  Prefactor     .10000E-03    15.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.3264        45.505        .15955E-03   -1.5205    
   9  Prefactor     .10000E-03    8.1521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8119        2.1808        .94405E-04   -1.5373    
  13  norm          9.3937        4.6833        .50554E-03   -1.5095    
  14  Prefactor     22.051        25.823        .85295E-04   -1.4768    
  15  norm          .10000E-03    20.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    130.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2936        .71904        .20951E-03   -1.5480    
  18  Prefactor     17.467        13.039        .95829E-04   -1.4872    
  19  Prefactor     12.673        31.656        .11251E-03   -1.4996    
  20  Prefactor     .10000E-03    3.5254        .13748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0516        2.1893        .76252E-04   -1.5305    
  22  Prefactor     13.237        8.2663        .11009E-03   -1.4980    
  23  Prefactor     .10000E-03    34.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     18.196        19.343        .93892E-04   -1.4855    
  25  norm          .10000E-03    8.7312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.8407        .12350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0165        .26017        .28436E-03   -.92479    
  28  Prefactor     .84930        .20501        .25293E-03   -.97936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08664e-10
Minuit parameter uncertainties:
  1  1.50497e-05
  2  0.00123377
  3  1.74464e-06
  4  8.85531
  5  21.1543
  6  0.000153529
  7  0.00034971
  8  33.9707
  9  6.13112e-05
  10  2.83014e-05
  11  3.94515e-05
  12  2.1809
  13  4.68347
  14  25.8358
  15  0.000170255
  16  0.00222204
  17  0.719045
  18  13.041
  19  31.6982
  20  3.31471e-06
  21  2.18937
  22  8.26704
  23  0.000349864
  24  19.3499
  25  6.54467e-05
  26  5.19578e-07
  27  0.260491
  28  0.205193
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  9.394e+00  4.683e+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.493e-01  2.052e-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.017e+00  2.605e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.59
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 1.45e-07 +/- 7.20e-08
Energy Flux (Fixed Index): 3.34e-05 +/- 1.66e-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) = 5632.71573229
delta logL = 0.204850400861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5632.69756403
delta logL = 0.223018658235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4633       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2375       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81763       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=   5632.698     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4586        4.4071        .34449E-02    .16272E-03
   2  alpha         2.2370        .46281        .35379       -.36413E-04
   3  Normalizat    1.0705        .21261        .62951E-01    .25729E-04
   4  Prefactor     .81768        .17269        .43946E-01   -.22799E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.45856
  alpha      = 2.23699
  Normalizat = 1.07053
  Prefactor  = 0.817677
 **********
 **   18 **HESSE 
 **********

 FCN=   5632.698     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4586        5.3479        .10794E-03   -1.5126    
   2  alpha         2.2370        .65177        .13452E-01   -.10540    
   3  Normalizat    1.0705        .25982        .27844E-03   -.90704    
   4  Prefactor     .81768        .20620        .25731E-03   -.99080    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89377e-12
Minuit parameter uncertainties:
  1  5.34819
  2  0.659476
  3  0.260126
  4  0.206392
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537029': 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) = 5632.69756352
delta logL = 0.223019171435

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  8.459e+00  5.348e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.237e+00  6.595e-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:  8.177e-01  2.064e-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.071e+00  2.601e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.10
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.24 +/- 0.66
Photon Flux (Free Index): 1.01e-07 +/- 8.53e-08
Energy Flux (Free Index): 3.33e-05 +/- 1.73e-05

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/537029/cmap_HighResolution_358819201_359078401_4FGL_J1222.5+0414_daily_bin461.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.45e-07', energy_flux2='3.33e-05', photon_flux_error='7.20e-08', dlogl='2.23e-01', energy_flux='3.34e-05', photon_flux2='1.01e-07', job_status='DONE', time_completed='2021-09-05 10:29:14.311845', photon_index_error2='0.66', photon_index2='2.24', ts='8.59', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', energy_flux_error2='1.73e-05', EG='1.02', time_epoch_completed='1630862954.31', return_code='0', job_id='537029', GAL2='0.82', EG2='1.07', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='8.53e-08', ts2='9.10', photon_index='2.69' WHERE bin_id='461' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:29:14 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin461 185.627 4.2389 358819201 359078401 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 :                                   667.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             289.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            815 sec.

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

