/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 134 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1224.9+2122_daily_bin63
RA = 186.228, Dec = 21.3814
tmin = 255657601, tmax = 255916801
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='597141', job_status='RUN', time_executed='2021-09-05 13:18:16.976814', time_epoch_executed='1630873096.98' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='63'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597141

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597141/ft1_4FGL_J1224.9+2122_daily_bin63.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597141/ft1_4FGL_J1224.9+2122_daily_bin63.fits outfile=/scratch/kocevski/597141/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin63.fits ra=186.228 dec=21.3814 rad=12.0 tmin=255657601.0 tmax=255916801.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 1.46
user 1.26
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.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/597141/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin63.fits evtable="EVENTS" outfile="/scratch/kocevski/597141/ft1_filtered_4FGL_J1224.9+2122_daily_bin63.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597141/ft1_filtered_4FGL_J1224.9+2122_daily_bin63.fits" evtable="EVENTS" scfile=/scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits sctable="SC_DATA" outfile=/scratch/kocevski/597141/ltcube_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.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/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits
.....................!
real 12.69
user 12.25
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597141/ft1_filtered_4FGL_J1224.9+2122_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits sctable="SC_DATA" expcube=/scratch/kocevski/597141/ltcube_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.fits outfile=/scratch/kocevski/597141/expmap_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.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/597141/ltcube_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.fits
.....................!
real 190.50
user 185.17
sys 4.75

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 187 point sources and 0 extended sources

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/597141/ft1_filtered_4FGL_J1224.9+2122_daily_bin63.fits scfile=/scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits outfile=/scratch/kocevski/597141/cmap_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.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=186.228 yref=21.3814 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597141/ft1_filtered_4FGL_J1224.9+2122_daily_bin63.fits scfile=/scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits outfile=/scratch/kocevski/597141/cmap_HighResolution_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.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=186.228 yref=21.3814 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/597141/ft1_filtered_4FGL_J1224.9+2122_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/597141/Model_4FGL_J1224.9+2122_daily_bin63.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/597141/ft1_filtered_4FGL_J1224.9+2122_daily_bin63.fits.....................!
real 72.50
user 71.09
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/597141/ft1_filtered_4FGL_J1224.9+2122_daily_bin63.fits', '/scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits', expMap='/scratch/kocevski/597141/expmap_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.fits', expCube='/scratch/kocevski/597141/ltcube_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/597141/Model_4FGL_J1224.9+2122_daily_bin63.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/597141/ft1_filtered_4FGL_J1224.9+2122_daily_bin63.fits
Spacecraft file(s): /scratch/kocevski/597141/ft2_4FGL_J1224.9+2122_daily_bin63.fits
Exposure map: /scratch/kocevski/597141/expmap_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.fits
Exposure cube: /scratch/kocevski/597141/ltcube_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/597141/Model_4FGL_J1224.9+2122_daily_bin63.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) = 8388.5768104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14543E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .48721       1.0000         .10000E-03   10000.    
     7 'Prefactor '    144.47       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.7156       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3723       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2481       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0677       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1552       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0899       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.8663       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .27406E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.2959       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1322       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    34.929       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5223       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .44747       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8388.552     FROM MIGRAD    STATUS=CONVERGED     76 CALLS     2433 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.727       -.39766E-05** at limit **
   2  Prefactor     .10000E-03    5.0820       -.15827E-05** at limit **
   3  Prefactor     .10000E-03    .46615       -.16906E-06** at limit **
   4  norm          2.3782        1.1172       -.64677E-07    .32013E-05
   5  Prefactor     .10013E-03    4.5409        .33969E-06** at limit **
   6  Prefactor     .46941        4.7872        .40844E-05    .77967E-03
   7  Prefactor     144.47        1.0130       -.19814E-07    .27665E-02
   8  Prefactor     2.7160        1.9257       -.57530E-06   -.24314E-02
   9  Prefactor     1.3716        2.0391       -.12304E-05    .87027E-03
  10  norm          1.2484        1.6642        .11597E-05    .53011E-03
  11  Prefactor     2.0677        1.4855       -.75831E-06   -.56954E-03
  12  Prefactor     7.1548        1.0588        .21101E-06   -.19171E-03
  13  Prefactor     .10000E-03    1.2326       -.52354E-06** at limit **
  14  norm          .10000E-03    .21052        .12161E-06** at limit **
  15  norm          3.0898        2.4313       -.18500E-05   -.30635E-02
  16  Prefactor     .10000E-03    2.2978       -.85806E-06** at limit **
  17  Prefactor     2.8657        1.0349       -.12028E-06    .55116E-05
  18  Prefactor     .10008E-03    7.5350       -.71018E-06** at limit **
  19  Prefactor     .18208E-03    1.5957       -.32525E-05** at limit **
  20  Prefactor     9.2957        1.0246       -.54546E-07   -.10680E-04
  21  Prefactor     5.1325        1.0084       -.21296E-07   -.42735E-04
  22  norm          .10000E-03    .87192       -.41716E-06** at limit **
  23  norm          34.929        1.0239       -.51988E-07    .16395E-02
  24  Normalizat    1.5226        .17354       -.14306E-05    .12552E-03
  25  Prefactor     .44719        .16386        .58343E-05    .70159E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.37821
  Prefactor  = 0.00010013
  Prefactor  = 0.469414
  Prefactor  = 144.468
  Prefactor  = 2.71602
  Prefactor  = 1.37157
  norm       = 1.24836
  Prefactor  = 2.06767
  Prefactor  = 7.15477
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.08985
  Prefactor  = 0.0001
  Prefactor  = 2.86566
  Prefactor  = 0.000100076
  Prefactor  = 0.000182077
  Prefactor  = 9.29575
  Prefactor  = 5.13252
  norm       = 0.0001
  norm       = 34.9287
  Normalizat = 1.52262
  Prefactor  = 0.447191
 **********
 **   18 **HESSE 
 **********

 FCN=   8388.552     FROM HESSE     STATUS=OK           485 CALLS     2918 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.325        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.0705        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .46117        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3782        1.1204        .66409E-02   -1.5400    
   5  Prefactor     .10013E-03    11.464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .46941        1.8160        .61117E-01   -1.5571    
   7  Prefactor     144.47        89.146        .83806E-03   -1.3298    
   8  Prefactor     2.7160        2.6489        .61788E-02   -1.5378    
   9  Prefactor     1.3716        3.0796        .93019E-02   -1.5474    
  10  norm          1.2484        1.7038        .10014E-01   -1.5485    
  11  Prefactor     2.0677        1.4806        .71828E-02   -1.5420    
  12  Prefactor     7.1548        2.2034        .37490E-02   -1.5173    
  13  Prefactor     .10000E-03    1.2300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .20791        .90712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0898        2.5692        .57680E-02   -1.5356    
  16  Prefactor     .10000E-03    2.2936        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.8657        5.5651        .60026E-02   -1.5369    
  18  Prefactor     .10008E-03    9.7237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .18208E-03    162.50        .10714E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.2957        6.2624        .32862E-02   -1.5098    
  21  Prefactor     5.1325        7.4464        .44366E-02   -1.5255    
  22  norm          .10000E-03    .86745        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          34.929        21.673        .16952E-02   -1.4525    
  24  Normalizat    1.5226        .15611        .46717E-01   -.77145    
  25  Prefactor     .44719        .14677        .78767E-01   -1.1446    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83372e-07
Minuit parameter uncertainties:
  1  0.000333875
  2  0.000156128
  3  4.50118e-07
  4  1.12039
  5  0.0024432
  6  1.81624
  7  89.2292
  8  2.64905
  9  3.07993
  10  1.70386
  11  1.48064
  12  2.2034
  13  4.99886e-06
  14  2.93398e-07
  15  2.56929
  16  1.24947e-05
  17  5.5661
  18  0.00171971
  19  0.231607
  20  6.26283
  21  7.44776
  22  1.32165e-06
  23  21.6781
  24  0.156164
  25  0.146894
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  2.934e-07  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  4.472e-01  1.469e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.523e+00  1.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 6.03e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.10e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/597141/likelihoodResults_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.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) = 8388.4612863
delta logL = 0.0902223625217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8388.45989693
delta logL = 0.0916117356101

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11197E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.7491       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4993       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46108       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8388.460     FROM MIGRAD    STATUS=FAILED       103 CALLS      414 TOTAL
                     EDM=   .87E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11150E-01    .12179        .18201E-03    .42453E-01
   2  alpha         4.7555        2.5072        .50000       -.14374E-02
   3  Normalizat    1.4991        .18589        .20786E-03   -.10018E-03
   4  Prefactor     .46127        .16973        .34394E-03   -.28427E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8388.460     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      489 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11150E-01    .12179        .28234E-04   -1.5687    
   2  alpha         4.7555        2.5072        .24194E-01    1.1249    
   3  Normalizat    1.4991        .18589        .15109E-03   -.77804    
   4  Prefactor     .46127        .16973        .25149E-03   -1.1379    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8388.460     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      533 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11149E-01    .47385E-01     .0000       -.51468E-03
   2  alpha         4.7555        4.0284         .0000       -.14348E-02
   3  Normalizat    1.4991        .17840         .0000       -.10173E-04
   4  Prefactor     .46127        .16744         .0000        .11239E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0111495
  alpha      = 4.75553
  Normalizat = 1.49908
  Prefactor  = 0.46127
 **********
 **   18 **HESSE 
 **********

 FCN=   8388.460     FROM HESSE     STATUS=OK            29 CALLS      562 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11149E-01    .43075E-01    .14561E-05   -1.5687    
   2  alpha         4.7555        4.2861        .50000        1.1249    
   3  Normalizat    1.4991        .17785        .83145E-05   -.77804    
   4  Prefactor     .46127        .16726        .27515E-05   -1.1379    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83441e-05
Minuit parameter uncertainties:
  1  0.0430755
  2  4.00219
  3  0.177928
  4  0.167441
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597141': 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) = 8388.45989501
delta logL = 0.0916136595133

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.115e-02  4.308e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.756e+00  4.002e+00  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  4.613e-01  1.674e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.499e+00  1.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.228 21.381

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/597141/cmap_HighResolution_255657601_255916801_4FGL_J1224.9+2122_daily_bin63.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', job_status='DONE', photon_flux_upper_limit='6.03e-08', time_completed='2021-09-05 13:32:12.862192', job_id='597141', GAL2='0.46', fit_tolerance='1e-08', EG2='1.50', EG='1.52', time_epoch_completed='1630873932.86', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='9.16e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='63' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:32:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 597141: <4FGL_J1224.9+2122_daily_bin63> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin63> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:52 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:15:54 2021
Terminated at Sun Sep  5 13:32:13 2021
Results reported at Sun Sep  5 13:32:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin63 186.228 21.3814 255657601 255916801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   834.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             309.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

