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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1018
RA = 186.228, Dec = 21.3814
tmin = 503193601, tmax = 503452801
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='601668', job_status='RUN', time_executed='2021-09-05 13:33:45.839624', time_epoch_executed='1630874025.84' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1018'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601668

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601668/ft1_4FGL_J1224.9+2122_daily_bin1018.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601668/ft2_4FGL_J1224.9+2122_daily_bin1018.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601668/ft1_4FGL_J1224.9+2122_daily_bin1018.fits outfile=/scratch/kocevski/601668/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1018.fits ra=186.228 dec=21.3814 rad=12.0 tmin=503193601.0 tmax=503452801.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.22
user 4.79
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601668/ft2_4FGL_J1224.9+2122_daily_bin1018.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/601668/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1018.fits evtable="EVENTS" outfile="/scratch/kocevski/601668/ft1_filtered_4FGL_J1224.9+2122_daily_bin1018.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.60
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601668/ft1_filtered_4FGL_J1224.9+2122_daily_bin1018.fits" evtable="EVENTS" scfile=/scratch/kocevski/601668/ft2_4FGL_J1224.9+2122_daily_bin1018.fits sctable="SC_DATA" outfile=/scratch/kocevski/601668/ltcube_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.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/601668/ft2_4FGL_J1224.9+2122_daily_bin1018.fits
.....................!
real 11.54
user 11.14
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601668/ft1_filtered_4FGL_J1224.9+2122_daily_bin1018.fits evtable="EVENTS" scfile=/scratch/kocevski/601668/ft2_4FGL_J1224.9+2122_daily_bin1018.fits sctable="SC_DATA" expcube=/scratch/kocevski/601668/ltcube_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.fits outfile=/scratch/kocevski/601668/expmap_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.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/601668/ltcube_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.fits
.....................!
real 196.55
user 191.51
sys 4.67

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/601668/ft1_filtered_4FGL_J1224.9+2122_daily_bin1018.fits scfile=/scratch/kocevski/601668/ft2_4FGL_J1224.9+2122_daily_bin1018.fits outfile=/scratch/kocevski/601668/cmap_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.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.62
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601668/ft1_filtered_4FGL_J1224.9+2122_daily_bin1018.fits scfile=/scratch/kocevski/601668/ft2_4FGL_J1224.9+2122_daily_bin1018.fits outfile=/scratch/kocevski/601668/cmap_HighResolution_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.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.70
user 0.37
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/601668/ft1_filtered_4FGL_J1224.9+2122_daily_bin1018.fits', '/scratch/kocevski/601668/ft2_4FGL_J1224.9+2122_daily_bin1018.fits', expMap='/scratch/kocevski/601668/expmap_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.fits', expCube='/scratch/kocevski/601668/ltcube_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/601668/Model_4FGL_J1224.9+2122_daily_bin1018.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/601668/ft1_filtered_4FGL_J1224.9+2122_daily_bin1018.fits
Spacecraft file(s): /scratch/kocevski/601668/ft2_4FGL_J1224.9+2122_daily_bin1018.fits
Exposure map: /scratch/kocevski/601668/expmap_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.fits
Exposure cube: /scratch/kocevski/601668/ltcube_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/601668/Model_4FGL_J1224.9+2122_daily_bin1018.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) = 6284.04931173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.124       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10799E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7355       1.0000         .10000E-03   10000.    
     4 'norm      '    6.6635       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1850       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.7408       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    9.6428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7421       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .93997       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .21013       1.0000         .10000E-03   10000.    
    15 'norm      '    8.1643       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.0301       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6861       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4568       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.066       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5949       1.0000         .10000E-03   10000.    
    23 'norm      '    25.289       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .56540       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3796       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6284.036     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2902 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.126        23.440       -.24530E-06   -.17434E-04
   2  Prefactor     .10000E-03    4.6171        .34047E-06** at limit **
   3  Prefactor     4.7354        2.3908        .16092E-07   -.11510E-03
   4  norm          6.6636        1.7077       -.13266E-07   -.18961E-03
   5  Prefactor     .10000E-03    6.4244        .25949E-06** at limit **
   6  Prefactor     4.1853        4.3435        .13088E-06   -.81717E-04
   7  Prefactor     .10000E-03    41.162        .30228E-06** at limit **
   8  Prefactor     6.7404        3.4708       -.72284E-07   -.25297E-03
   9  Prefactor     .10000E-03    2.0162        .39172E-06** at limit **
  10  norm          9.6430        4.0238       -.27721E-07   -.11679E-03
  11  Prefactor     6.7422        3.1945       -.35283E-07   -.11048E-03
  12  Prefactor     .93942        1.8697        .57843E-06    .18555E-03
  13  Prefactor     .10000E-03    1.3173        .41389E-07** at limit **
  14  norm          .21002        .20192        .11577E-06    .86292E-03
  15  norm          8.1647        4.1748       -.98097E-07   -.10279E-03
  16  Prefactor     2.0259        7.8762        .19506E-05    .48549E-04
  17  Prefactor     9.6870        8.0445       -.12765E-06   -.48237E-04
  18  Prefactor     .10000E-03    10.105        .24625E-06** at limit **
  19  Prefactor     39.053        80.345       -.10316E-05   -.28018E-04
  20  Prefactor     4.4567        4.8438        .65106E-08   -.25744E-04
  21  Prefactor     13.065        14.350        .16587E-06   -.18316E-04
  22  norm          4.5953        3.6335        .43775E-08   -.30194E-04
  23  norm          25.279        28.395        .14471E-06   -.10755E-04
  24  Normalizat    .56528        .21986        .33457E-05   -.18185E-03
  25  Prefactor     1.3798        .22266       -.33564E-05   -.70160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1255
  Prefactor  = 0.0001
  Prefactor  = 4.73541
  norm       = 6.66356
  Prefactor  = 0.0001
  Prefactor  = 4.1853
  Prefactor  = 0.0001
  Prefactor  = 6.74042
  Prefactor  = 0.0001
  norm       = 9.64304
  Prefactor  = 6.74224
  Prefactor  = 0.939415
  Prefactor  = 0.0001
  norm       = 0.210021
  norm       = 8.1647
  Prefactor  = 2.0259
  Prefactor  = 9.68696
  Prefactor  = 0.0001
  Prefactor  = 39.0535
  Prefactor  = 4.45666
  Prefactor  = 13.065
  norm       = 4.59528
  norm       = 25.2787
  Normalizat = 0.565284
  Prefactor  = 1.37983
 **********
 **   18 **HESSE 
 **********

 FCN=   6284.036     FROM HESSE     STATUS=OK           439 CALLS     3341 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.126        23.407        .10658E-03   -1.4956    
   2  Prefactor     .10000E-03    14.344        .32870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7354        2.3844        .78532E-04   -1.5273    
   4  norm          6.6636        1.7066        .49467E-04   -1.5192    
   5  Prefactor     .10000E-03    6.4396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1853        4.3175        .15461E-03   -1.5299    
   7  Prefactor     .10000E-03    41.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.7404        3.4598        .97499E-04   -1.5189    
   9  Prefactor     .10000E-03    2.0681        .10998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          9.6430        4.0266        .91467E-04   -1.5087    
  11  Prefactor     6.7422        3.1999        .87365E-04   -1.5189    
  12  Prefactor     .93942        1.8430        .14502E-03   -1.5514    
  13  Prefactor     .10000E-03    1.3178        .88840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .21002        .19497        .33549E-03   -1.5616    
  15  norm          8.1647        4.1733        .11174E-03   -1.5136    
  16  Prefactor     2.0259        7.8876        .29035E-03   -1.5423    
  17  Prefactor     9.6870        8.0327        .12876E-03   -1.5085    
  18  Prefactor     .10000E-03    10.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.053        80.561        .31999E-03   -1.4457    
  20  Prefactor     4.4567        4.8416        .17618E-03   -1.5286    
  21  Prefactor     13.065        14.350        .11081E-03   -1.4985    
  22  norm          4.5953        3.6312        .12905E-03   -1.5279    
  23  norm          25.279        28.389        .79658E-04   -1.4702    
  24  Normalizat    .56528        .22718        .34098E-03   -1.0948    
  25  Prefactor     1.3798        .22916        .24250E-03   -.80963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76392e-10
Minuit parameter uncertainties:
  1  23.4221
  2  0.000136284
  3  2.38442
  4  1.70665
  5  8.71489e-06
  6  4.31785
  7  2.77062e-05
  8  3.45992
  9  8.14623e-06
  10  4.02673
  11  3.2
  12  1.84315
  13  2.2408e-07
  14  0.194972
  15  4.17343
  16  7.89163
  17  8.03358
  18  5.26584e-06
  19  80.7868
  20  4.84207
  21  14.3539
  22  3.63134
  23  28.4039
  24  0.22756
  25  0.229329
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.100e-01  1.950e-01  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:  1.380e+00  2.293e-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:  5.653e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.03
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 3.55e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.15e-05

TS (Fixed Index): 2.03
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601668/likelihoodResults_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.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) = 6284.00900622
delta logL = 0.0269835560975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6284.00519583
delta logL = 0.0307939528575

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22025       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6434       1.0000          .0000       5.0000    
     3 'Normalizat'    .54559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3940       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6284.005     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      250 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22021        .20847        .31874E-03   -.41463E-02
   2  alpha         2.6434        1.5842        .28991E-01   -.38444E-04
   3  Normalizat    .54559        .22932        .34679E-03    .12982E-04
   4  Prefactor     1.3940        .23603        .24150E-03   -.10208E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.220214
  alpha      = 2.64342
  Normalizat = 0.54559
  Prefactor  = 1.39399
 **********
 **   18 **HESSE 
 **********

 FCN=   6284.005     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22021        .19917        .12750E-04   -1.5614    
   2  alpha         2.6434        1.5227        .11596E-02    .57398E-01
   3  Normalizat    .54559        .22893        .13872E-04   -1.1035    
   4  Prefactor     1.3940        .23534        .48301E-04   -.80554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54491e-10
Minuit parameter uncertainties:
  1  0.199166
  2  1.63772
  3  0.229327
  4  0.235519
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601668': 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) = 6284.00519581
delta logL = 0.0307939740524

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.202e-01  1.992e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.643e+00  1.638e+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:  1.394e+00  2.355e-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:  5.456e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.64 +/- 1.64
Photon Flux (Free Index): 4.77e-08 +/- 6.37e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.04e-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/601668/cmap_HighResolution_503193601_503452801_4FGL_J1224.9+2122_daily_bin1018.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-05', comment='SUCCESS', photon_flux='3.55e-08', energy_flux2='1.17e-05', photon_flux_error='3.29e-08', dlogl='3.08e-02', energy_flux='1.23e-05', photon_flux2='4.77e-08', job_status='DONE', time_completed='2021-09-05 13:46:10.499912', photon_index_error2='1.64', photon_index2='2.64', ts='2.03', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='1.04e-05', EG='0.57', time_epoch_completed='1630874770.5', return_code='0', job_id='601668', GAL2='1.39', EG2='0.55', return_code2='0', energy_flux_error='1.15e-05', photon_flux_error2='6.37e-08', ts2='2.10', photon_index='2.28' WHERE bin_id='1018' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 601668: <4FGL_J1224.9+2122_daily_bin1018> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1018> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep  5 13:31:04 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:31:06 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:31:06 2021
Terminated at Sun Sep  5 13:46:11 2021
Results reported at Sun Sep  5 13:46:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1018 186.228 21.3814 503193601 503452801 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 :                                   738.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

