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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1105
RA = 186.228, Dec = 21.3814
tmin = 525744001, tmax = 526003201
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='602956', job_status='RUN', time_executed='2021-09-05 13:37:02.024858', time_epoch_executed='1630874222.02' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/602956

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/602956/ft1_4FGL_J1224.9+2122_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/602956/ft2_4FGL_J1224.9+2122_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/602956/ft1_4FGL_J1224.9+2122_daily_bin1105.fits outfile=/scratch/kocevski/602956/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1105.fits ra=186.228 dec=21.3814 rad=12.0 tmin=525744001.0 tmax=526003201.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 4.41
user 4.09
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/602956/ft2_4FGL_J1224.9+2122_daily_bin1105.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/602956/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1105.fits evtable="EVENTS" outfile="/scratch/kocevski/602956/ft1_filtered_4FGL_J1224.9+2122_daily_bin1105.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.57
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/602956/ft1_filtered_4FGL_J1224.9+2122_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/602956/ft2_4FGL_J1224.9+2122_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/602956/ltcube_525744001_526003201_4FGL_J1224.9+2122_daily_bin1105.fits outfile=/scratch/kocevski/602956/expmap_525744001_526003201_4FGL_J1224.9+2122_daily_bin1105.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/602956/ltcube_525744001_526003201_4FGL_J1224.9+2122_daily_bin1105.fits
.....................!
real 191.24
user 185.35
sys 4.66

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/602956/ft1_filtered_4FGL_J1224.9+2122_daily_bin1105.fits scfile=/scratch/kocevski/602956/ft2_4FGL_J1224.9+2122_daily_bin1105.fits outfile=/scratch/kocevski/602956/cmap_525744001_526003201_4FGL_J1224.9+2122_daily_bin1105.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.56
user 0.39
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.635       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5263       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4967       1.0000         .10000E-03   10000.    
     4 'norm      '    8.8989       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.487       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6171       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.527       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8296       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95858       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .34784       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4043       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13613E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4042       1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.307       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33300E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.500       1.0000         .10000E-03   10000.    
    22 'norm      '    6.6145       1.0000         .10000E-03   10000.    
    23 'norm      '    8.5667       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82526       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0826       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=   6362.303     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     2457 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.634        1.0149        .28550E-06   -.46845E-04
   2  Prefactor     2.5243        1.0445        .47670E-06    .13651E-03
   3  Prefactor     1.4966        1.3332        .36126E-06   -.37772E-03
   4  norm          8.8987        1.7868        .72098E-07   -.95861E-03
   5  Prefactor     35.485        1.0354       -.21021E-06    .55343E-03
   6  Prefactor     2.6170        3.2563       -.11543E-06   -.20771E-03
   7  Prefactor     .10000E-03    65.465       -.31575E-04** at limit **
   8  Prefactor     .10000E-03    1.6156       -.84554E-07** at limit **
   9  Prefactor     .10000E-03    3.3112        .97917E-06** at limit **
  10  norm          14.527        1.3023       -.28725E-06   -.13390E-02
  11  Prefactor     5.8295        2.4442        .12070E-06    .17126E-03
  12  Prefactor     .95841        1.1049       -.59743E-06    .33317E-03
  13  Prefactor     .10000E-03    7.5719       -.27682E-05** at limit **
  14  norm          .34781        .22464       -.24632E-06   -.33257E-03
  15  norm          5.4036        4.3284        .26371E-05    .27020E-03
  16  Prefactor     .10000E-03    21.958        .49455E-04** at limit **
  17  Prefactor     6.4039        1.0638       -.88127E-06   -.12010E-02
  18  Prefactor     51.301        1.3960       -.94821E-06    .38574E-02
  19  Prefactor     .10000E-03    20.723       -.48705E-04** at limit **
  20  Prefactor     .10000E-03    1.3374        .13370E-04** at limit **
  21  Prefactor     25.499        1.0172       -.13634E-06    .29324E-03
  22  norm          6.6159        1.3067       -.24798E-05   -.68473E-02
  23  norm          8.5672        1.0031       -.12977E-06   -.87583E-04
  24  Normalizat    .82536        .21325        .18700E-06    .42493E-04
  25  Prefactor     1.0826        .21934        .13056E-05    .80303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6336
  Prefactor  = 2.52432
  Prefactor  = 1.49659
  norm       = 8.89871
  Prefactor  = 35.4845
  Prefactor  = 2.61699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5266
  Prefactor  = 5.82952
  Prefactor  = 0.958407
  Prefactor  = 0.0001
  norm       = 0.347813
  norm       = 5.40362
  Prefactor  = 0.000100005
  Prefactor  = 6.40385
  Prefactor  = 51.3012
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 25.4987
  norm       = 6.61588
  norm       = 8.56716
  Normalizat = 0.825364
  Prefactor  = 1.08259
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.303     FROM HESSE     STATUS=OK           503 CALLS     2960 TOTAL
                     EDM=   .45E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.634        13.253        .30715E-02   -1.5056    
   2  Prefactor     2.5243        10.498        .64250E-02   -1.5390    
   3  Prefactor     1.4966        1.3488        .87542E-02   -1.5463    
   4  norm          8.8987        1.7982        .33590E-02   -1.5111    
   5  Prefactor     35.485        20.757        .16818E-02   -1.4516    
   6  Prefactor     2.6170        3.3381        .63031E-02   -1.5384    
   7  Prefactor     .10000E-03    65.565        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5432        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3344        .33091E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.527        3.9984        .26272E-02   -1.4946    
  11  Prefactor     5.8295        2.7915        .41584E-02   -1.5225    
  12  Prefactor     .95841        1.1308        .13018E-01   -1.5512    
  13  Prefactor     .10000E-03    7.4490        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .34781        .23176        .65154E-02   -1.5590    
  15  norm          5.4036        4.3721        .43215E-02   -1.5243    
  16  Prefactor     .10000E-03    22.396        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.4039        5.9003        .39650E-02   -1.5202    
  18  Prefactor     51.301        31.308        .13997E-02   -1.4274    
  19  Prefactor     .10000E-03    21.072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.1763        .69059E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.499        18.198        .19832E-02   -1.4698    
  22  norm          6.6159        4.6052        .39008E-02   -1.5193    
  23  norm          8.5672        15.807        .34239E-02   -1.5122    
  24  Normalizat    .82536        .18983        .64057E-01   -.99135    
  25  Prefactor     1.0826        .18481        .59634E-01   -.90025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46939e-08
Minuit parameter uncertainties:
  1  13.257
  2  10.2988
  3  1.34884
  4  1.79825
  5  20.7609
  6  3.3383
  7  0.00017471
  8  7.88099e-06
  9  1.23726e-06
  10  3.99847
  11  2.79155
  12  1.1308
  13  4.69415e-05
  14  0.231756
  15  4.37236
  16  0.000658019
  17  5.90087
  18  31.3179
  19  0.000504313
  20  0.000358765
  21  18.2017
  22  4.60544
  23  15.8147
  24  0.189984
  25  0.184921
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.478e-01  2.318e-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.083e+00  1.849e-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.254e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.90
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.88e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.36e-05

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

Saving results to:
/scratch/kocevski/602956/likelihoodResults_525744001_526003201_4FGL_J1224.9+2122_daily_bin1105.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) = 6362.16358432
delta logL = 0.139052860201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6362.16132226
delta logL = 0.141314920053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .34419       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5743       1.0000          .0000       5.0000    
     3 'Normalizat'    .80820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0945       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=   6362.161     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      211 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .34420        5.2908        .61120E-02    .40517E-03
   2  alpha         2.5743        3.2830        .38577        .47581E-04
   3  Normalizat    .80820        .84938E-01    .64673E-01   -.25022E-04
   4  Prefactor     1.0945        .10701        .59348E-01    .67552E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.344195
  alpha      = 2.57431
  Normalizat = 0.808202
  Prefactor  = 1.09451
 **********
 **   18 **HESSE 
 **********

 FCN=   6362.161     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .34420        .21911        .27600E-04   -1.5591    
   2  alpha         2.5743        .57665        .15284E-01    .29727E-01
   3  Normalizat    .80820        .21125        .28610E-03   -.99765    
   4  Prefactor     1.0945        .22031        .26245E-03   -.89642    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97743e-10
Minuit parameter uncertainties:
  1  0.219108
  2  0.581899
  3  0.211466
  4  0.220496
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/602956': 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) = 6362.16132226
delta logL = 0.141314920187

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  3.442e-01  2.191e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.574e+00  5.819e-01  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.095e+00  2.205e-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.082e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.13
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.57 +/- 0.58
Photon Flux (Free Index): 7.08e-08 +/- 4.65e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.19e-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/602956/cmap_HighResolution_525744001_526003201_4FGL_J1224.9+2122_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-05', comment='SUCCESS', photon_flux='5.88e-08', energy_flux2='1.83e-05', photon_flux_error='3.91e-08', dlogl='1.41e-01', energy_flux='2.04e-05', photon_flux2='7.08e-08', job_status='DONE', time_completed='2021-09-05 13:49:25.614826', photon_index_error2='0.58', photon_index2='2.57', ts='3.90', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.19e-05', EG='0.83', time_epoch_completed='1630874965.61', return_code='0', job_id='602956', GAL2='1.09', EG2='0.81', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.65e-08', ts2='4.13', photon_index='2.28' WHERE bin_id='1105' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:49:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 602956: <4FGL_J1224.9+2122_daily_bin1105> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin1105> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:35:29 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:35:31 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:35:31 2021
Terminated at Sun Sep  5 13:49:27 2021
Results reported at Sun Sep  5 13:49:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1105 186.228 21.3814 525744001 526003201 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 :                                   723.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

