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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1349
RA = 186.228, Dec = 21.3814
tmin = 588988801, tmax = 589248001
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='603314', job_status='RUN', time_executed='2021-09-05 13:39:11.700151', time_epoch_executed='1630874351.7' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603314

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603314/ft1_4FGL_J1224.9+2122_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603314/ft2_4FGL_J1224.9+2122_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603314/ft1_4FGL_J1224.9+2122_daily_bin1349.fits outfile=/scratch/kocevski/603314/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1349.fits ra=186.228 dec=21.3814 rad=12.0 tmin=588988801.0 tmax=589248001.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.34
user 2.90
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603314/ft1_filtered_4FGL_J1224.9+2122_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/603314/ft2_4FGL_J1224.9+2122_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/603314/ltcube_588988801_589248001_4FGL_J1224.9+2122_daily_bin1349.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/603314/ft2_4FGL_J1224.9+2122_daily_bin1349.fits
.....................!
real 16.22
user 15.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603314/ft1_filtered_4FGL_J1224.9+2122_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/603314/ft2_4FGL_J1224.9+2122_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/603314/ltcube_588988801_589248001_4FGL_J1224.9+2122_daily_bin1349.fits outfile=/scratch/kocevski/603314/expmap_588988801_589248001_4FGL_J1224.9+2122_daily_bin1349.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/603314/ltcube_588988801_589248001_4FGL_J1224.9+2122_daily_bin1349.fits
.....................!
real 193.89
user 185.93
sys 4.72

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/603314/ft1_filtered_4FGL_J1224.9+2122_daily_bin1349.fits scfile=/scratch/kocevski/603314/ft2_4FGL_J1224.9+2122_daily_bin1349.fits outfile=/scratch/kocevski/603314/cmap_588988801_589248001_4FGL_J1224.9+2122_daily_bin1349.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603314/ft1_filtered_4FGL_J1224.9+2122_daily_bin1349.fits scfile=/scratch/kocevski/603314/ft2_4FGL_J1224.9+2122_daily_bin1349.fits outfile=/scratch/kocevski/603314/cmap_HighResolution_588988801_589248001_4FGL_J1224.9+2122_daily_bin1349.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.319       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2536       1.0000         .10000E-03   10000.    
     4 'norm      '    .76423       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.244       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    89.985       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .49754E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.4103       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7266       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10911E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .26019       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48610E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11399E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    80.586       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.438       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.660       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4159       1.0000         .10000E-03   10000.    
    23 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0146       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1215       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=   2464.573     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2995 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.298        76.688        .43964E-06    .93843E-04
   2  Prefactor     .10000E-03    29.773       -.27555E-06** at limit **
   3  Prefactor     1.2534        7.6918        .19306E-06    .40576E-04
   4  norm          .76373        3.0927       -.11783E-06   -.19949E-04
   5  Prefactor     20.252        40.115       -.74639E-07   -.58567E-04
   6  Prefactor     8.3298        14.834       -.51482E-06   -.65880E-04
   7  Prefactor     90.027        201.43       -.15979E-05   -.50288E-04
   8  Prefactor     .10001E-03    28.174        .10501E-04** at limit **
   9  Prefactor     .10000E-03    3.0600        .12053E-06** at limit **
  10  norm          7.4097        5.9450        .10041E-07    .74856E-05
  11  Prefactor     1.7251        3.9569       -.26813E-06   -.16136E-03
  12  Prefactor     .10000E-03    3.5166        .65628E-07** at limit **
  13  Prefactor     .10000E-03    5.9817        .11055E-06** at limit **
  14  norm          .26019        .36382        .11540E-07   -.29235E-03
  15  norm          .10000E-03    4.1441        .10634E-06** at limit **
  16  Prefactor     .10000E-03    43.905        .86186E-05** at limit **
  17  Prefactor     .10000E-03    26.089        .92438E-06** at limit **
  18  Prefactor     80.612        64.638       -.23534E-05   -.41241E-03
  19  Prefactor     25.368        85.152        .44911E-05    .14888E-03
  20  Prefactor     .10000E-03    3.9005        .15283E-06** at limit **
  21  Prefactor     14.660        24.185        .19073E-06   -.18993E-04
  22  norm          2.4156        4.6584       -.16421E-05    .32626E-03
  23  norm          .10000E-03    28.064        .57547E-06** at limit **
  24  Normalizat    1.0146        .30746       -.44568E-06   -.17955E-03
  25  Prefactor     1.1216        .29276       -.15063E-07   -.27710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.2977
  Prefactor  = 0.000100001
  Prefactor  = 1.25342
  norm       = 0.76373
  Prefactor  = 20.2522
  Prefactor  = 8.32979
  Prefactor  = 90.0273
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 7.40967
  Prefactor  = 1.72514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.26019
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 80.6117
  Prefactor  = 25.3685
  Prefactor  = 0.0001
  Prefactor  = 14.66
  norm       = 2.41558
  norm       = 0.000100001
  Normalizat = 1.01457
  Prefactor  = 1.12157
 **********
 **   18 **HESSE 
 **********

 FCN=   2464.573     FROM HESSE     STATUS=OK           427 CALLS     3422 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.298        76.291        .23133E-03   -1.3970    
   2  Prefactor     .10000E-03    29.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.2534        7.5025        .25280E-03   -1.5484    
   4  norm          .76373        3.0428        .16371E-03   -1.5533    
   5  Prefactor     20.252        40.107        .89019E-04   -1.4808    
   6  Prefactor     8.3298        14.257        .13899E-03   -1.5131    
   7  Prefactor     90.027        201.70        .21179E-03   -1.3807    
   8  Prefactor     .10001E-03    29.480        .21242E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0742        .84720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.4097        5.9599        .98422E-04   -1.5163    
  11  Prefactor     1.7251        3.9248        .13611E-03   -1.5445    
  12  Prefactor     .10000E-03    5.6521        .17685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.0143        .11858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .26019        .34390        .33524E-03   -1.5606    
  15  norm          .10000E-03    4.1726        .98687E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    176.59        .51433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    26.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     80.612        64.202        .44740E-04   -1.3910    
  19  Prefactor     25.368        87.095        .79426E-04   -1.4700    
  20  Prefactor     .10000E-03    3.9085        .95786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.660        24.222        .10461E-03   -1.4942    
  22  norm          2.4156        4.6635        .70664E-03   -1.5397    
  23  norm          .10000E-03    28.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0146        .34654        .26926E-03   -.92544    
  25  Prefactor     1.1216        .33356        .26199E-03   -.88780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22105e-09
Minuit parameter uncertainties:
  1  76.3905
  2  0.000315797
  3  6.13402
  4  3.04343
  5  40.1602
  6  14.2624
  7  203.263
  8  0.000821423
  9  2.16283e-06
  10  5.96042
  11  3.92543
  12  0.000101535
  13  5.92038e-06
  14  0.343907
  15  3.42305e-06
  16  0.00152034
  17  0.000229528
  18  64.2569
  19  87.5362
  20  2.1685e-05
  21  24.2379
  22  4.66421
  23  0.000260141
  24  0.34731
  25  0.334188
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.602e-01  3.439e-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.122e+00  3.342e-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.015e+00  3.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603314/likelihoodResults_588988801_589248001_4FGL_J1224.9+2122_daily_bin1349.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) = 2464.17451958
delta logL = 0.398894676783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2464.15043897
delta logL = 0.422975292517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14361       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1211       1.0000          .0000       5.0000    
     3 'Normalizat'    .92381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1860       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=   2464.150     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14369        3.8278        .37454E-02    .28300E-02
   2  alpha         4.1195        2.6876        .50000        .24886E-04
   3  Normalizat    .92422        .10280        .45205E-01   -.80919E-05
   4  Prefactor     1.1860        .10656        .57861E-01   -.10924E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.143693
  alpha      = 4.11952
  Normalizat = 0.924216
  Prefactor  = 1.18595
 **********
 **   18 **HESSE 
 **********

 FCN=   2464.150     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14369        .88359        .16905E-04   -1.5632    
   2  alpha         4.1195        4.4551        .26206E-01    .70470    
   3  Normalizat    .92422        .34903        .28045E-03   -.95614    
   4  Prefactor     1.1860        .35146        .25586E-03   -.86765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82689e-11
Minuit parameter uncertainties:
  1  0.712412
  2  5.11853
  3  0.34989
  4  0.352154
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603314': 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) = 2464.15043611
delta logL = 0.422978149485

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.437e-01  7.124e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  4.120e+00  5.119e+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.186e+00  3.522e-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.242e-01  3.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 186.228 21.381
Photon Index (Free Index): 4.12 +/- 5.12
Photon Flux (Free Index): 1.22e-07 +/- 1.28e-07
Energy Flux (Free Index): 1.81e-05 +/- 1.81e-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/603314/cmap_HighResolution_588988801_589248001_4FGL_J1224.9+2122_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-05', comment='SUCCESS', energy_flux2='1.81e-05', dlogl='4.23e-01', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-05 13:47:32.854466', photon_index_error2='5.12', photon_index2='4.12', ts='0.87', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='1.81e-05', EG='1.01', time_epoch_completed='1630874852.85', return_code='0', job_id='603314', GAL2='1.19', EG2='0.92', return_code2='0', photon_flux_error2='1.28e-07', ts2='1.80', photon_index='2.28' WHERE bin_id='1349' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:47:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 603314: <4FGL_J1224.9+2122_daily_bin1349> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1349 186.228 21.3814 588988801 589248001 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 :                                   482.03 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            694 sec.

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

