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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1259
RA = 186.228, Dec = 21.3814
tmin = 565660801, tmax = 565920001
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='603190', job_status='RUN', time_executed='2021-09-05 13:36:01.622222', time_epoch_executed='1630874161.62' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1259'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603190

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603190/ft1_4FGL_J1224.9+2122_daily_bin1259.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603190/ft2_4FGL_J1224.9+2122_daily_bin1259.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603190/ft1_4FGL_J1224.9+2122_daily_bin1259.fits outfile=/scratch/kocevski/603190/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1259.fits ra=186.228 dec=21.3814 rad=12.0 tmin=565660801.0 tmax=565920001.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.52
user 3.25
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603190/ft1_filtered_4FGL_J1224.9+2122_daily_bin1259.fits" evtable="EVENTS" scfile=/scratch/kocevski/603190/ft2_4FGL_J1224.9+2122_daily_bin1259.fits sctable="SC_DATA" outfile=/scratch/kocevski/603190/ltcube_565660801_565920001_4FGL_J1224.9+2122_daily_bin1259.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/603190/ft2_4FGL_J1224.9+2122_daily_bin1259.fits
.....................!
real 12.18
user 11.45
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603190/ft1_filtered_4FGL_J1224.9+2122_daily_bin1259.fits evtable="EVENTS" scfile=/scratch/kocevski/603190/ft2_4FGL_J1224.9+2122_daily_bin1259.fits sctable="SC_DATA" expcube=/scratch/kocevski/603190/ltcube_565660801_565920001_4FGL_J1224.9+2122_daily_bin1259.fits outfile=/scratch/kocevski/603190/expmap_565660801_565920001_4FGL_J1224.9+2122_daily_bin1259.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/603190/ltcube_565660801_565920001_4FGL_J1224.9+2122_daily_bin1259.fits
.....................!
real 191.46
user 185.71
sys 4.73

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/603190/ft1_filtered_4FGL_J1224.9+2122_daily_bin1259.fits scfile=/scratch/kocevski/603190/ft2_4FGL_J1224.9+2122_daily_bin1259.fits outfile=/scratch/kocevski/603190/cmap_565660801_565920001_4FGL_J1224.9+2122_daily_bin1259.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603190/ft1_filtered_4FGL_J1224.9+2122_daily_bin1259.fits scfile=/scratch/kocevski/603190/ft2_4FGL_J1224.9+2122_daily_bin1259.fits outfile=/scratch/kocevski/603190/cmap_HighResolution_565660801_565920001_4FGL_J1224.9+2122_daily_bin1259.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.69
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40179       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3436       1.0000         .10000E-03   10000.    
     4 'norm      '    12.303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8419       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11335E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24510       1.0000         .10000E-03   10000.    
    10 'norm      '    6.6532       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1436       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.572       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45086       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.920       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4161       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.8502       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.3660       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3283       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66341       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=   6331.049     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     2949 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35701        9.6139        .17966E-05   -.43610E-03
   2  Prefactor     .10000E-03    4.9474        .52628E-07** at limit **
   3  Prefactor     1.3441        1.1720       -.22033E-07   -.34688E-03
   4  norm          12.303        2.0121       -.47012E-08   -.50317E-03
   5  Prefactor     .10000E-03    10.472        .27661E-07** at limit **
   6  Prefactor     1.8416        2.1867       -.39961E-08   -.87040E-04
   7  Prefactor     .10000E-03    183.10       -.15950E-05** at limit **
   8  Prefactor     .10000E-03    1.7317       -.22323E-06** at limit **
   9  Prefactor     .24495        2.4334        .21347E-05   -.11163E-03
  10  norm          6.6532        3.1665       -.31072E-08   -.47709E-04
  11  Prefactor     1.5949        1.8286        .35431E-07   -.20377E-04
  12  Prefactor     1.6391        1.4008       -.80664E-08   -.70006E-04
  13  Prefactor     .10000E-03    3.1747        .21136E-07** at limit **
  14  norm          .10000E-03    .71391E-01    .12351E-07** at limit **
  15  norm          4.1446        3.9871        .69381E-07   -.55752E-04
  16  Prefactor     10.571        12.676       -.54857E-06   -.27096E-03
  17  Prefactor     .48344        6.1115        .15037E-06   -.61752E-04
  18  Prefactor     20.919        31.996       -.27625E-06   -.10586E-03
  19  Prefactor     .10000E-03    36.010       -.27067E-06** at limit **
  20  Prefactor     8.4164        6.1534        .45299E-06    .35352E-03
  21  Prefactor     2.8505        9.4801       -.15817E-05   -.28975E-03
  22  norm          .10000E-03    .80723        .23574E-07** at limit **
  23  norm          9.3661        11.378       -.95413E-07   -.29731E-04
  24  Normalizat    1.3284        .17681       -.29754E-06   -.26018E-03
  25  Prefactor     .66320        .17726       -.52307E-06   -.16665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.35701
  Prefactor  = 0.0001
  Prefactor  = 1.34405
  norm       = 12.3032
  Prefactor  = 0.0001
  Prefactor  = 1.84162
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.244948
  norm       = 6.65316
  Prefactor  = 1.59493
  Prefactor  = 1.6391
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.14463
  Prefactor  = 10.5713
  Prefactor  = 0.48344
  Prefactor  = 20.919
  Prefactor  = 0.0001
  Prefactor  = 8.41637
  Prefactor  = 2.85052
  norm       = 0.0001
  norm       = 9.36609
  Normalizat = 1.32843
  Prefactor  = 0.6632
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.049     FROM HESSE     STATUS=OK           439 CALLS     3388 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35701        105.25        .43894E-02   -1.5588    
   2  Prefactor     .10000E-03    4.9719        .17282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3441        1.1903        .77220E-04   -1.5476    
   4  norm          12.303        2.0131        .43841E-04   -1.5006    
   5  Prefactor     .10000E-03    10.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8416        2.1793        .12398E-03   -1.5437    
   7  Prefactor     .10000E-03    184.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8236        .20480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .24495        2.5994        .24169E-03   -1.5609    
  10  norm          6.6532        3.1688        .89607E-04   -1.5192    
  11  Prefactor     1.5949        1.8180        .10612E-03   -1.5455    
  12  Prefactor     1.6391        1.3894        .83768E-04   -1.5452    
  13  Prefactor     .10000E-03    3.2042        .13832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .10614        .41205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1446        3.9787        .14943E-03   -1.5301    
  16  Prefactor     10.571        12.749        .12323E-03   -1.5058    
  17  Prefactor     .48344        21.180        .37689E-02   -1.5569    
  18  Prefactor     20.919        31.988        .87572E-04   -1.4793    
  19  Prefactor     .10000E-03    36.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.4164        6.2054        .13818E-03   -1.5128    
  21  Prefactor     2.8505        10.006        .24083E-03   -1.5370    
  22  norm          .10000E-03    .80831        .69812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.3661        11.379        .13095E-03   -1.5096    
  24  Normalizat    1.3284        .20939        .22365E-03   -.82722    
  25  Prefactor     .66320        .20871        .31182E-03   -1.0499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.80672e-08
Minuit parameter uncertainties:
  1  12.2801
  2  2.37328e-06
  3  1.19031
  4  2.01316
  5  2.08861e-06
  6  2.17941
  7  0.000895432
  8  1.66832e-05
  9  1.59566
  10  3.16887
  11  1.8181
  12  1.38943
  13  8.35427e-07
  14  1.52644e-07
  15  3.97894
  16  12.7528
  17  6.40148
  18  32.0141
  19  6.93852e-05
  20  6.20585
  21  10.0114
  22  2.03453e-07
  23  11.3818
  24  0.20952
  25  0.208957
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.526e-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:  6.632e-01  2.090e-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.328e+00  2.095e-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: 5.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603190/likelihoodResults_565660801_565920001_4FGL_J1224.9+2122_daily_bin1259.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) = 6331.04959514
delta logL = -0.000694263378136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6331.04640383
delta logL = 0.00249704569342

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19592E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4427       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3253       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66519       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=   6331.046     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      342 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18568E-02    19.337        .23848E-03** at limit **
   2  alpha         4.4747        2.5042        .20000        .24926E-06
   3  Normalizat    1.3253        .10348        .22389E-03    .19973E-03
   4  Prefactor     .66515        .86054E-01    .31141E-03    .58047E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00185685
  alpha      = 4.47474
  Normalizat = 1.32525
  Prefactor  = 0.665147
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.046     FROM HESSE     STATUS=OK            27 CALLS      369 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18568E-02    .28703        .95394E-05   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         4.4747        3.5678        .80000E-02    .91064    
   3  Normalizat    1.3253        .20888        .44777E-04   -.82816    
   4  Prefactor     .66515        .20985        .12456E-04   -1.0491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48588e-10
Minuit parameter uncertainties:
  1  0.0449123
  2  15.7466
  3  0.209018
  4  0.210094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603190': 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) = 6331.04639995
delta logL = 0.00250092762417

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.857e-03  4.491e-02  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.475e+00  1.575e+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:  6.651e-01  2.101e-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.325e+00  2.090e-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/603190/cmap_HighResolution_565660801_565920001_4FGL_J1224.9+2122_daily_bin1259.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.90e-05', job_status='DONE', photon_flux_upper_limit='5.46e-08', time_completed='2021-09-05 13:48:43.162278', job_id='603190', GAL2='0.67', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1630874923.16', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.50e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1259' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:48:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 603190: <4FGL_J1224.9+2122_daily_bin1259> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1259 186.228 21.3814 565660801 565920001 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 :                                   754.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            775 sec.

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

