/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1414
RA = 186.228, Dec = 21.3814
tmin = 605836801, tmax = 606096001
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='603399', job_status='RUN', time_executed='2021-09-05 13:37:02.828281', time_epoch_executed='1630874222.83' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603399

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603399/ft1_4FGL_J1224.9+2122_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603399/ft2_4FGL_J1224.9+2122_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603399/ft1_4FGL_J1224.9+2122_daily_bin1414.fits outfile=/scratch/kocevski/603399/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1414.fits ra=186.228 dec=21.3814 rad=12.0 tmin=605836801.0 tmax=606096001.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.63
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603399/ft2_4FGL_J1224.9+2122_daily_bin1414.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/603399/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1414.fits evtable="EVENTS" outfile="/scratch/kocevski/603399/ft1_filtered_4FGL_J1224.9+2122_daily_bin1414.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.68
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603399/ft1_filtered_4FGL_J1224.9+2122_daily_bin1414.fits" evtable="EVENTS" scfile=/scratch/kocevski/603399/ft2_4FGL_J1224.9+2122_daily_bin1414.fits sctable="SC_DATA" outfile=/scratch/kocevski/603399/ltcube_605836801_606096001_4FGL_J1224.9+2122_daily_bin1414.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/603399/ft2_4FGL_J1224.9+2122_daily_bin1414.fits
.....................!
real 12.44
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603399/ft1_filtered_4FGL_J1224.9+2122_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/603399/ft2_4FGL_J1224.9+2122_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/603399/ltcube_605836801_606096001_4FGL_J1224.9+2122_daily_bin1414.fits outfile=/scratch/kocevski/603399/expmap_605836801_606096001_4FGL_J1224.9+2122_daily_bin1414.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/603399/ltcube_605836801_606096001_4FGL_J1224.9+2122_daily_bin1414.fits
.....................!
real 190.37
user 185.39
sys 4.28

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/603399/ft1_filtered_4FGL_J1224.9+2122_daily_bin1414.fits scfile=/scratch/kocevski/603399/ft2_4FGL_J1224.9+2122_daily_bin1414.fits outfile=/scratch/kocevski/603399/cmap_605836801_606096001_4FGL_J1224.9+2122_daily_bin1414.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.64
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603399/ft1_filtered_4FGL_J1224.9+2122_daily_bin1414.fits scfile=/scratch/kocevski/603399/ft2_4FGL_J1224.9+2122_daily_bin1414.fits outfile=/scratch/kocevski/603399/cmap_HighResolution_605836801_606096001_4FGL_J1224.9+2122_daily_bin1414.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.63
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.199       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3587       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8674       1.0000         .10000E-03   10000.    
    10 'norm      '    5.7290       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2156       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0090       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    9.2011       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0185       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.072       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.4176       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.915       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.5921       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .12237E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92086       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2270       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=   5994.253     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     2390 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.199        1.0016       -.13199E-06    .16371E-03
   2  Prefactor     .10000E-03    3.1971        .10174E-04** at limit **
   3  Prefactor     .10000E-03    .54823        .10922E-05** at limit **
   4  norm          1.3589        1.2368        .27786E-06   -.85173E-04
   5  Prefactor     .10000E-03    14.211       -.76286E-04** at limit **
   6  Prefactor     .10000E-03    1.9574       -.21714E-06** at limit **
   7  Prefactor     .10000E-03    56.661       -.86141E-04** at limit **
   8  Prefactor     .10000E-03    1.2684       -.25495E-06** at limit **
   9  Prefactor     2.8672        2.4895        .11026E-05   -.26856E-04
  10  norm          5.7291        1.2185        .91815E-07   -.24630E-03
  11  Prefactor     3.2157        2.2129        .71176E-06    .67384E-04
  12  Prefactor     2.0091        1.8561       -.14421E-06    .14171E-04
  13  Prefactor     .10000E-03    2.3607       -.16305E-05** at limit **
  14  norm          .10000E-03    .45175       -.31425E-06** at limit **
  15  norm          9.2009        1.0050       -.24025E-06   -.12087E-02
  16  Prefactor     1.0181        1.3052        .19704E-05    .47917E-03
  17  Prefactor     11.072        1.0020        .78596E-07   -.58554E-04
  18  Prefactor     8.4156        1.0326       -.97789E-06    .64377E-03
  19  Prefactor     11.915        1.0011        .69796E-07   -.78816E-04
  20  Prefactor     7.5947        1.0060        .28583E-06   -.39504E-04
  21  Prefactor     .10000E-03    18.345        .96050E-04** at limit **
  22  norm          .10000E-03    3.5984       -.11393E-04** at limit **
  23  norm          .10000E-03    6.3493        .73405E-05** at limit **
  24  Normalizat    .92082        .21080        .23629E-06   -.70039E-04
  25  Prefactor     1.2270        .21727       -.28993E-05   -.54054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.35892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.86721
  norm       = 5.72914
  Prefactor  = 3.21574
  Prefactor  = 2.00905
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.2009
  Prefactor  = 1.01815
  Prefactor  = 11.0722
  Prefactor  = 8.4156
  Prefactor  = 11.9149
  Prefactor  = 7.59467
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.92082
  Prefactor  = 1.22701
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.253     FROM HESSE     STATUS=OK           487 CALLS     2877 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.199        22.517        .22852E-02   -1.4831    
   2  Prefactor     .10000E-03    3.1914        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .54553        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3589        1.2769        .93699E-02   -1.5475    
   5  Prefactor     .10000E-03    14.115        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.632        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.2428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8672        2.4998        .60014E-02   -1.5369    
  10  norm          5.7291        3.7003        .41953E-02   -1.5229    
  11  Prefactor     3.2157        2.5552        .56480E-02   -1.5349    
  12  Prefactor     2.0091        1.8832        .73025E-02   -1.5424    
  13  Prefactor     .10000E-03    2.3414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .11181        .13932E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          9.2009        4.4231        .33031E-02   -1.5101    
  16  Prefactor     1.0181        9.1985        .12850E-01   -1.5506    
  17  Prefactor     11.072        9.2955        .30101E-02   -1.5042    
  18  Prefactor     8.4156        26.094        .34543E-02   -1.5128    
  19  Prefactor     11.915        143.43        .29014E-02   -1.5017    
  20  Prefactor     7.5947        8.5527        .36386E-02   -1.5157    
  21  Prefactor     .10000E-03    18.125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.8778        .40325E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    6.3489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .92082        .18970        .45168E-01   -.95732    
  25  Prefactor     1.2270        .18846        .55960E-01   -.85504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1165e-08
Minuit parameter uncertainties:
  1  22.5267
  2  3.82201e-06
  3  7.87774e-07
  4  1.27693
  5  1.60976e-06
  6  1.99635e-06
  7  9.1947e-05
  8  8.26344e-07
  9  2.49994
  10  3.7004
  11  2.5553
  12  1.8833
  13  1.15343e-06
  14  3.37675e-07
  15  4.42327
  16  6.12154
  17  9.29667
  18  26.1293
  19  82.9269
  20  8.55411
  21  2.01338e-05
  22  3.80064e-06
  23  5.72891e-07
  24  0.189838
  25  0.188567
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  3.377e-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:  1.227e+00  1.886e-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:  9.208e-01  1.898e-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: 8.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603399/likelihoodResults_605836801_606096001_4FGL_J1224.9+2122_daily_bin1414.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) = 5994.1830051
delta logL = 0.0701337513001

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5994.18239558
delta logL = 0.0707432744966

Fit tolerance = 1e-08

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

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

 FCN=   5994.182     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      328 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .47731E-01    2.5129        .92594E-02    .40627E-02
   2  alpha         3.4924        3.2451        .46257        .22023E-04
   3  Normalizat    .89800        .33442E-01    .44876E-01    .71251E-05
   4  Prefactor     1.2375        .34413E-01    .55756E-01    .20474E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.047731
  alpha      = 3.49238
  Normalizat = 0.898003
  Prefactor  = 1.23754
 **********
 **   18 **HESSE 
 **********

 FCN=   5994.182     FROM HESSE     STATUS=OK            35 CALLS      363 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .47731E-01    .21287        .36258E-03   -1.5664    
   2  alpha         3.4924        3.9213        .57248E-01    .40819    
   3  Normalizat    .89800        .21656        .27336E-03   -.96530    
   4  Prefactor     1.2375        .21876        .24654E-03   -.85184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10024e-08
Minuit parameter uncertainties:
  1  0.201386
  2  2.84837
  3  0.216768
  4  0.218923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603399': 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) = 5994.18239532
delta logL = 0.0707435301347

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.773e-02  2.014e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.492e+00  2.848e+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.238e+00  2.189e-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:  8.980e-01  2.168e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/603399/cmap_HighResolution_605836801_606096001_4FGL_J1224.9+2122_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-05', job_status='DONE', photon_flux_upper_limit='8.25e-08', time_completed='2021-09-05 13:48:23.692265', job_id='603399', GAL2='1.24', fit_tolerance='1e-08', EG2='0.90', EG='0.92', time_epoch_completed='1630874903.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='7.07e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1414' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:48:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 603399: <4FGL_J1224.9+2122_daily_bin1414> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1414> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:36:06 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:36:08 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:36:08 2021
Terminated at Sun Sep  5 13:48:24 2021
Results reported at Sun Sep  5 13:48:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1414 186.228 21.3814 605836801 606096001 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 :                                   665.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            738 sec.

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

