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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1397
RA = 186.228, Dec = 21.3814
tmin = 601430401, tmax = 601689601
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='603372', job_status='RUN', time_executed='2021-09-05 13:37:50.825472', time_epoch_executed='1630874270.83' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603372/ft1_4FGL_J1224.9+2122_daily_bin1397.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603372/ft2_4FGL_J1224.9+2122_daily_bin1397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603372/ft1_4FGL_J1224.9+2122_daily_bin1397.fits outfile=/scratch/kocevski/603372/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1397.fits ra=186.228 dec=21.3814 rad=12.0 tmin=601430401.0 tmax=601689601.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.70
user 3.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603372/ft2_4FGL_J1224.9+2122_daily_bin1397.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/603372/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1397.fits evtable="EVENTS" outfile="/scratch/kocevski/603372/ft1_filtered_4FGL_J1224.9+2122_daily_bin1397.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.55
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603372/ft1_filtered_4FGL_J1224.9+2122_daily_bin1397.fits" evtable="EVENTS" scfile=/scratch/kocevski/603372/ft2_4FGL_J1224.9+2122_daily_bin1397.fits sctable="SC_DATA" outfile=/scratch/kocevski/603372/ltcube_601430401_601689601_4FGL_J1224.9+2122_daily_bin1397.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/603372/ft2_4FGL_J1224.9+2122_daily_bin1397.fits
.....................!
real 12.04
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603372/ft1_filtered_4FGL_J1224.9+2122_daily_bin1397.fits evtable="EVENTS" scfile=/scratch/kocevski/603372/ft2_4FGL_J1224.9+2122_daily_bin1397.fits sctable="SC_DATA" expcube=/scratch/kocevski/603372/ltcube_601430401_601689601_4FGL_J1224.9+2122_daily_bin1397.fits outfile=/scratch/kocevski/603372/expmap_601430401_601689601_4FGL_J1224.9+2122_daily_bin1397.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/603372/ltcube_601430401_601689601_4FGL_J1224.9+2122_daily_bin1397.fits
.....................!
real 189.62
user 185.22
sys 4.03

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/603372/ft1_filtered_4FGL_J1224.9+2122_daily_bin1397.fits scfile=/scratch/kocevski/603372/ft2_4FGL_J1224.9+2122_daily_bin1397.fits outfile=/scratch/kocevski/603372/cmap_601430401_601689601_4FGL_J1224.9+2122_daily_bin1397.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.87
user 0.35
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603372/ft1_filtered_4FGL_J1224.9+2122_daily_bin1397.fits scfile=/scratch/kocevski/603372/ft2_4FGL_J1224.9+2122_daily_bin1397.fits outfile=/scratch/kocevski/603372/cmap_HighResolution_601430401_601689601_4FGL_J1224.9+2122_daily_bin1397.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 1.06
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21226E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13930E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0990       1.0000         .10000E-03   10000.    
     4 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16174E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29866E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    10.612       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4334       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11286E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .29169       1.0000         .10000E-03   10000.    
    15 'norm      '    5.9845       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11449E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.8119       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14969E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24636E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.681       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4483       1.0000         .10000E-03   10000.    
    23 'norm      '    33.714       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1364       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74076       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=   5718.034     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     2543 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.6969       -.54650E-08** at limit **
   2  Prefactor     .10000E-03    2.9351        .38118E-07** at limit **
   3  Prefactor     1.0987        1.4819       -.23938E-06   -.66289E-03
   4  norm          .10000E-03    .43949       -.45595E-07** at limit **
   5  Prefactor     .10000E-03    4.1705       -.31167E-07** at limit **
   6  Prefactor     .40500E-01    1.6409       -.22821E-06   -.95115E-04
   7  Prefactor     .10000E-03    38.440       -.33330E-05** at limit **
   8  Prefactor     .10000E-03    .61660       -.13334E-07** at limit **
   9  Prefactor     .10000E-03    .71448       -.12105E-07** at limit **
  10  norm          10.595        3.8975       -.79716E-06    .48764E-03
  11  Prefactor     5.4384        2.7285        .35299E-06   -.19002E-03
  12  Prefactor     .10000E-03    1.3915        .11527E-06** at limit **
  13  Prefactor     .10000E-03    1.6852        .26809E-07** at limit **
  14  norm          .29176        .21869       -.36549E-07   -.71724E-03
  15  norm          5.9934        4.5296       -.10231E-05    .10513E-03
  16  Prefactor     .10000E-03    17.072        .38645E-05** at limit **
  17  Prefactor     4.7836        4.9550       -.12547E-06    .15204E-03
  18  Prefactor     .10000E-03    69.640       -.56381E-05** at limit **
  19  Prefactor     .10000E-03    17.119       -.39373E-05** at limit **
  20  Prefactor     .10000E-03    3.2409        .14752E-06** at limit **
  21  Prefactor     15.812        19.789       -.41878E-05    .16018E-03
  22  norm          1.4528        3.4920       -.10339E-05   -.76228E-03
  23  norm          33.655        25.723       -.20296E-05    .13284E-03
  24  Normalizat    1.1362        .17761        .16941E-05    .28171E-04
  25  Prefactor     .74054        .16968        .10346E-06    .90287E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.09874
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0405003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5949
  Prefactor  = 5.43838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.291757
  norm       = 5.99336
  Prefactor  = 0.000100001
  Prefactor  = 4.7836
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8122
  norm       = 1.45281
  norm       = 33.6548
  Normalizat = 1.13616
  Prefactor  = 0.740539
 **********
 **   18 **HESSE 
 **********

 FCN=   5718.034     FROM HESSE     STATUS=OK           427 CALLS     2970 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.7468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.9400        .12651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0987        1.4546        .10340E-03   -1.5498    
   4  norm          .10000E-03    .63030        .97079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.1740        .15082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .40500E-01    60.059        .18462E-02   -1.5668    
   7  Prefactor     .10000E-03    38.413        .21392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .62072        .57966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .71916        .62405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.595        3.8651        .82643E-04   -1.5057    
  11  Prefactor     5.4384        2.7190        .81560E-04   -1.5242    
  12  Prefactor     .10000E-03    2.3008        .16934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.6877        .95843E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .29176        .21348        .28868E-04   -1.5600    
  15  norm          5.9934        4.5400        .13434E-03   -1.5218    
  16  Prefactor     .10000E-03    17.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7836        4.9470        .16639E-03   -1.5271    
  18  Prefactor     .10000E-03    72.240        .40945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.2583        .13292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.812        19.809        .10114E-03   -1.4912    
  22  norm          1.4528        3.6472        .21752E-03   -1.5467    
  23  norm          33.655        25.429        .69014E-04   -1.4547    
  24  Normalizat    1.1362        .20170        .21922E-03   -.88599    
  25  Prefactor     .74054        .19474        .26713E-03   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06604e-09
Minuit parameter uncertainties:
  1  8.05191e-06
  2  3.81863e-06
  3  1.45469
  4  3.37001e-06
  5  2.16674e-06
  6  3.1185
  7  0.000200294
  8  8.8479e-07
  9  1.20259e-06
  10  3.86516
  11  2.7191
  12  1.74492e-05
  13  2.514e-06
  14  0.213479
  15  4.54027
  16  0.000225867
  17  4.94739
  18  0.000429476
  19  0.000170307
  20  1.52859e-06
  21  19.8168
  22  3.64773
  23  25.4373
  24  0.201834
  25  0.194923
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.918e-01  2.135e-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:  7.405e-01  1.949e-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.136e+00  2.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.15
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.93e-08 +/- 3.61e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/603372/likelihoodResults_601430401_601689601_4FGL_J1224.9+2122_daily_bin1397.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) = 5715.71790449
delta logL = 2.31626174463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5715.67871715
delta logL = 2.35544908813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .80605E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6825       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0257       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82626       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=   5715.679     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      273 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .80508E-01    .90192        .95008E-05   -.17937E-02
   2  alpha         4.6844        2.7624        .29309E-01   -.10969E-04
   3  Normalizat    1.0255        .19878        .22862E-03    .17205E-04
   4  Prefactor     .82655        .20265        .25444E-03    .56299E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0805084
  alpha      = 4.68436
  Normalizat = 1.02553
  Prefactor  = 0.82655
 **********
 **   18 **HESSE 
 **********

 FCN=   5715.679     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .80508E-01    .21342        .38003E-06   -1.5651    
   2  alpha         4.6844        4.5652        .11724E-02    1.0628    
   3  Normalizat    1.0255        .19917        .91450E-05   -.92180    
   4  Prefactor     .82655        .19912        .10178E-04   -.98757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57778e-11
Minuit parameter uncertainties:
  1  0.213422
  2  2.37718
  3  0.19931
  4  0.19929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603372': 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) = 5715.67871391
delta logL = 2.35545232758

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  8.051e-02  2.134e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.684e+00  2.377e+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:  8.266e-01  1.993e-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.026e+00  1.993e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.28
Ra Dec: 186.228 21.381
Photon Index (Free Index): 4.68 +/- 2.38
Photon Flux (Free Index): 1.25e-07 +/- 5.83e-08
Energy Flux (Free Index): 1.73e-05 +/- 9.24e-06

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/603372/cmap_HighResolution_601430401_601689601_4FGL_J1224.9+2122_daily_bin1397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', comment='SUCCESS', photon_flux='4.93e-08', energy_flux2='1.73e-05', photon_flux_error='3.61e-08', dlogl='2.36e+00', energy_flux='1.71e-05', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-05 13:49:18.732788', photon_index_error2='2.38', photon_index2='4.68', ts='3.15', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='9.24e-06', EG='1.14', time_epoch_completed='1630874958.73', return_code='0', job_id='603372', GAL2='0.83', EG2='1.03', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.83e-08', ts2='8.28', photon_index='2.28' WHERE bin_id='1397' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:49:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 603372: <4FGL_J1224.9+2122_daily_bin1397> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1397 186.228 21.3814 601430401 601689601 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 :                                   668.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             265.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            795 sec.

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

