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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1514
RA = 186.228, Dec = 21.3814
tmin = 631756801, tmax = 632016001
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='603551', job_status='RUN', time_executed='2021-09-05 13:36:46.157773', time_epoch_executed='1630874206.16' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1514'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603551

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603551/ft1_4FGL_J1224.9+2122_daily_bin1514.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603551/ft2_4FGL_J1224.9+2122_daily_bin1514.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603551/ft1_4FGL_J1224.9+2122_daily_bin1514.fits outfile=/scratch/kocevski/603551/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1514.fits ra=186.228 dec=21.3814 rad=12.0 tmin=631756801.0 tmax=632016001.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 2.41
user 2.18
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603551/ft1_filtered_4FGL_J1224.9+2122_daily_bin1514.fits evtable="EVENTS" scfile=/scratch/kocevski/603551/ft2_4FGL_J1224.9+2122_daily_bin1514.fits sctable="SC_DATA" expcube=/scratch/kocevski/603551/ltcube_631756801_632016001_4FGL_J1224.9+2122_daily_bin1514.fits outfile=/scratch/kocevski/603551/expmap_631756801_632016001_4FGL_J1224.9+2122_daily_bin1514.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/603551/ltcube_631756801_632016001_4FGL_J1224.9+2122_daily_bin1514.fits
.....................!
real 191.05
user 185.86
sys 4.57

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/603551/ft1_filtered_4FGL_J1224.9+2122_daily_bin1514.fits scfile=/scratch/kocevski/603551/ft2_4FGL_J1224.9+2122_daily_bin1514.fits outfile=/scratch/kocevski/603551/cmap_631756801_632016001_4FGL_J1224.9+2122_daily_bin1514.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 1.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603551/ft1_filtered_4FGL_J1224.9+2122_daily_bin1514.fits scfile=/scratch/kocevski/603551/ft2_4FGL_J1224.9+2122_daily_bin1514.fits outfile=/scratch/kocevski/603551/cmap_HighResolution_631756801_632016001_4FGL_J1224.9+2122_daily_bin1514.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24974E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6964       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20185       1.0000         .10000E-03   10000.    
     4 'norm      '    9.1993       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23053E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13652E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .59010E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    2.1873       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4222       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1842       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7392       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2929       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.028       1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.024       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5970       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11364E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10933E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91903       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1057       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=   7824.894     FROM MIGRAD    STATUS=CONVERGED    144 CALLS     3244 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4667        .12021E-05** at limit **
   2  Prefactor     5.6979        1.2416        .99140E-08   -.18519E-02
   3  Prefactor     .20197        1.9390        .84063E-06   -.26203E-04
   4  norm          9.1973        1.9327        .13960E-06   -.93074E-04
   5  Prefactor     .10000E-03    10.796        .37590E-06** at limit **
   6  Prefactor     .10000E-03    1.5698       -.93732E-06** at limit **
   7  Prefactor     .10000E-03    34.385        .13345E-06** at limit **
   8  Prefactor     .10000E-03    .64784       -.78859E-06** at limit **
   9  Prefactor     .68206E-01    8.3786       -.17352E-05    .96183E-04
  10  norm          2.1854        2.5103       -.36342E-06    .55327E-05
  11  Prefactor     4.4206        2.8610        .59410E-06   -.87727E-04
  12  Prefactor     3.1807        2.1847        .81626E-07   -.31045E-04
  13  Prefactor     .10000E-03    2.0768       -.57506E-06** at limit **
  14  norm          .10000E-03    1.1403       -.16225E-06** at limit **
  15  norm          8.7393        4.2227        .88639E-07   -.97555E-04
  16  Prefactor     8.2844        2.8074        .43220E-06   -.16713E-02
  17  Prefactor     .10000E-03    6.0771       -.20371E-05** at limit **
  18  Prefactor     27.118        25.111       -.21977E-05   -.25532E-03
  19  Prefactor     61.602        74.713       -.21364E-05    .30092E-04
  20  Prefactor     1.5978        3.6479        .37315E-06   -.38683E-04
  21  Prefactor     .10000E-03    4.4902        .45141E-06** at limit **
  22  norm          .10000E-03    2.4976       -.69127E-06** at limit **
  23  norm          .10000E-03    7.0063        .53519E-05** at limit **
  24  Normalizat    .91915        .18735        .67192E-06    .12418E-04
  25  Prefactor     1.1057        .18869       -.12799E-05    .18873E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.69794
  Prefactor  = 0.201974
  norm       = 9.19733
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0682063
  norm       = 2.1854
  Prefactor  = 4.42058
  Prefactor  = 3.18074
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.73927
  Prefactor  = 8.28441
  Prefactor  = 0.0001
  Prefactor  = 27.1181
  Prefactor  = 61.6017
  Prefactor  = 1.59783
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.919149
  Prefactor  = 1.10566
 **********
 **   18 **HESSE 
 **********

 FCN=   7824.894     FROM HESSE     STATUS=OK           493 CALLS     3737 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4516        .10733E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6979        6.6868        .42075E-02   -1.5231    
   3  Prefactor     .20197        .98427        .29907E-01   -1.5618    
   4  norm          9.1973        1.9341        .33035E-02   -1.5101    
   5  Prefactor     .10000E-03    10.707        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    34.351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .64073        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .68206E-01    .94483        .49202E-01   -1.5656    
  10  norm          2.1854        2.5117        .69576E-02   -1.5412    
  11  Prefactor     4.4206        2.8489        .47875E-02   -1.5287    
  12  Prefactor     3.1807        2.1928        .56773E-02   -1.5351    
  13  Prefactor     .10000E-03    2.0613        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .77030E-01    .13200E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.7393        4.2309        .33898E-02   -1.5117    
  16  Prefactor     8.2844        7.4866        .34804E-02   -1.5132    
  17  Prefactor     .10000E-03    5.9768        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     27.118        25.163        .19264E-02   -1.4666    
  19  Prefactor     61.602        74.739        .12738E-02   -1.4137    
  20  Prefactor     1.5978        3.6952        .83895E-02   -1.5455    
  21  Prefactor     .10000E-03    4.4528        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.0077        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .91915        .16041        .45144E-01   -.95790    
  25  Prefactor     1.1057        .15923        .56111E-01   -.89286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02913e-09
Minuit parameter uncertainties:
  1  4.75656e-05
  2  6.68769
  3  0.891534
  4  1.9341
  5  6.74473e-06
  6  2.35661e-06
  7  2.27142e-06
  8  1.30316e-06
  9  0.507352
  10  2.51178
  11  2.84895
  12  2.19286
  13  1.64459e-06
  14  7.51471e-08
  15  4.231
  16  7.48749
  17  5.13947e-06
  18  25.1731
  19  74.8528
  20  3.69577
  21  3.21706e-06
  22  2.13003e-06
  23  3.18398e-06
  24  0.160494
  25  0.159302
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  7.515e-08  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.106e+00  1.593e-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.191e-01  1.605e-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: 6.18e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603551/likelihoodResults_631756801_632016001_4FGL_J1224.9+2122_daily_bin1514.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): 102
logL (Free Index) = 7824.90041659
delta logL = -0.00669250948158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7824.73897967
delta logL = 0.15474441828

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .43078E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6723       1.0000          .0000       5.0000    
     3 'Normalizat'    .89025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1214       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=   7824.739     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      241 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .43045E-01    1.3830        .73254E-02    .64677E-02
   2  alpha         3.6726        3.0248        .49202        .27496E-04
   3  Normalizat    .89024        .27434E-01    .44777E-01    .19275E-04
   4  Prefactor     1.1214        .28382E-01    .55772E-01    .11525E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0430449
  alpha      = 3.6726
  Normalizat = 0.890244
  Prefactor  = 1.12135
 **********
 **   18 **HESSE 
 **********

 FCN=   7824.739     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      276 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .43045E-01    7.3127        .30692E-03   -1.5667    
   2  alpha         3.6726        2.8673        .61675E-01    .48820    
   3  Normalizat    .89024        .17606        .26582E-03   -.96804    
   4  Prefactor     1.1214        .19639        .24660E-03   -.88787    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46781e-06
Minuit parameter uncertainties:
  1  1.12093
  2  23.8032
  3  0.176178
  4  0.196514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603551': 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): 102
logL (Free Index) = 7824.7389796
delta logL = 0.154744485891

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  4.304e-02  1.121e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  3.673e+00  2.380e+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.121e+00  1.965e-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.902e-01  1.762e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/603551/cmap_HighResolution_631756801_632016001_4FGL_J1224.9+2122_daily_bin1514.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-05', job_status='DONE', photon_flux_upper_limit='6.18e-08', time_completed='2021-09-05 13:51:10.783367', job_id='603551', GAL2='1.12', fit_tolerance='1e-08', EG2='0.89', EG='0.92', time_epoch_completed='1630875070.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='1.55e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1514' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:10 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1514 186.228 21.3814 631756801 632016001 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 :                                   851.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

