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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin1484
RA = 186.228, Dec = 21.3814
tmin = 623980801, tmax = 624240001
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='603505', job_status='RUN', time_executed='2021-09-05 13:38:18.575137', time_epoch_executed='1630874298.58' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1484'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603505/ft1_4FGL_J1224.9+2122_daily_bin1484.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603505/ft2_4FGL_J1224.9+2122_daily_bin1484.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603505/ft1_4FGL_J1224.9+2122_daily_bin1484.fits outfile=/scratch/kocevski/603505/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1484.fits ra=186.228 dec=21.3814 rad=12.0 tmin=623980801.0 tmax=624240001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.03
user 3.76
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603505/ft1_filtered_4FGL_J1224.9+2122_daily_bin1484.fits evtable="EVENTS" scfile=/scratch/kocevski/603505/ft2_4FGL_J1224.9+2122_daily_bin1484.fits sctable="SC_DATA" expcube=/scratch/kocevski/603505/ltcube_623980801_624240001_4FGL_J1224.9+2122_daily_bin1484.fits outfile=/scratch/kocevski/603505/expmap_623980801_624240001_4FGL_J1224.9+2122_daily_bin1484.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/603505/ltcube_623980801_624240001_4FGL_J1224.9+2122_daily_bin1484.fits
.....................!
real 190.72
user 185.91
sys 4.17

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/603505/ft1_filtered_4FGL_J1224.9+2122_daily_bin1484.fits scfile=/scratch/kocevski/603505/ft2_4FGL_J1224.9+2122_daily_bin1484.fits outfile=/scratch/kocevski/603505/cmap_623980801_624240001_4FGL_J1224.9+2122_daily_bin1484.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603505/ft1_filtered_4FGL_J1224.9+2122_daily_bin1484.fits scfile=/scratch/kocevski/603505/ft2_4FGL_J1224.9+2122_daily_bin1484.fits outfile=/scratch/kocevski/603505/cmap_HighResolution_623980801_624240001_4FGL_J1224.9+2122_daily_bin1484.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37714       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4779       1.0000         .10000E-03   10000.    
     4 'norm      '    1.4347       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.519       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.313       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.8486       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0159       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9489       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .69654E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5727       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.724       1.0000         .10000E-03   10000.    
    18 'Prefactor '    52.115       1.0000         .10000E-03   10000.    
    19 'Prefactor '    69.580       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.872       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.092       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64430       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1712       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=   5833.428     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     3952 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .67638        12.646        .10214E-05   -.16802E-03
   2  Prefactor     .10000E-03    4.1165       -.24166E-06** at limit **
   3  Prefactor     2.4746        1.6707        .57431E-07   -.47778E-03
   4  norm          1.4341        .95841        .18049E-06   -.40872E-03
   5  Prefactor     20.530        22.834        .61460E-05   -.39013E-04
   6  Prefactor     9.8105        5.5924        .30962E-05   -.34126E-03
   7  Prefactor     44.332        95.995        .25190E-04   -.60492E-05
   8  Prefactor     .10000E-03    2.1494       -.20042E-06** at limit **
   9  Prefactor     .10000E-03    1.3544       -.87806E-07** at limit **
  10  norm          7.8494        3.8472       -.42168E-06   -.15187E-03
  11  Prefactor     5.0162        2.7752        .53229E-06    .23235E-04
  12  Prefactor     1.9492        1.6812        .36251E-06   -.55890E-04
  13  Prefactor     .10000E-03    2.0799        .32062E-07** at limit **
  14  norm          .69725E-01    .20246        .64766E-07   -.28945E-02
  15  norm          2.5736        2.6894        .36284E-06    .33422E-04
  16  Prefactor     .10000E-03    4.6505       -.98314E-07** at limit **
  17  Prefactor     17.729        10.515       -.36129E-05   -.52170E-04
  18  Prefactor     52.129        30.332        .14137E-04   -.28445E-04
  19  Prefactor     69.603        72.585        .26291E-04   -.14119E-04
  20  Prefactor     23.878        10.172       -.63367E-05   -.77407E-04
  21  Prefactor     30.108        21.472        .92870E-05   -.37056E-04
  22  norm          .10000E-03    .96021        .87262E-07** at limit **
  23  norm          .10000E-03    8.4981        .28259E-06** at limit **
  24  Normalizat    .64394        .19251       -.67869E-05   -.97032E-04
  25  Prefactor     1.1712        .18294       -.14831E-05   -.16361E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.676382
  Prefactor  = 0.0001
  Prefactor  = 2.47458
  norm       = 1.43412
  Prefactor  = 20.5295
  Prefactor  = 9.81049
  Prefactor  = 44.3315
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.84937
  Prefactor  = 5.01615
  Prefactor  = 1.94922
  Prefactor  = 0.0001
  norm       = 0.0697248
  norm       = 2.57364
  Prefactor  = 0.0001
  Prefactor  = 17.7288
  Prefactor  = 52.1289
  Prefactor  = 69.6028
  Prefactor  = 23.8785
  Prefactor  = 30.1078
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.643938
  Prefactor  = 1.17124
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.428     FROM HESSE     STATUS=OK           433 CALLS     4385 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .67638        97.255        .50409E-02   -1.5543    
   2  Prefactor     .10000E-03    4.1263        .15131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.4746        1.6680        .76829E-04   -1.5393    
   4  norm          1.4341        .94761        .58710E-04   -1.5468    
   5  Prefactor     20.530        22.810        .88421E-04   -1.4801    
   6  Prefactor     9.8105        5.5915        .12517E-03   -1.5081    
   7  Prefactor     44.332        95.902        .60226E-04   -1.4375    
   8  Prefactor     .10000E-03    2.2186        .21804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3732        .86723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.8494        3.8513        .93647E-04   -1.5148    
  11  Prefactor     5.0162        2.7820        .85432E-04   -1.5260    
  12  Prefactor     1.9492        1.6706        .87635E-04   -1.5429    
  13  Prefactor     .10000E-03    2.0877        .10755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .69725E-01    .21290        .53063E-03   -1.5655    
  15  norm          2.5736        2.6886        .12423E-03   -1.5387    
  16  Prefactor     .10000E-03    4.6579        .16082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.729        10.530        .95133E-04   -1.4866    
  18  Prefactor     52.129        30.321        .55556E-04   -1.4263    
  19  Prefactor     69.603        72.516        .24061E-03   -1.4037    
  20  Prefactor     23.878        10.199        .81985E-04   -1.4730    
  21  Prefactor     30.108        21.448        .73038E-04   -1.4610    
  22  norm          .10000E-03    .96347        .73087E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    8.5017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64394        .21960        .30467E-03   -1.0615    
  25  Prefactor     1.1712        .21303        .23999E-03   -.87221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24332e-09
Minuit parameter uncertainties:
  1  16.2469
  2  1.42881e-05
  3  1.66799
  4  0.94762
  5  22.82
  6  5.59178
  7  96.2381
  8  3.56104e-05
  9  1.09056e-05
  10  3.85138
  11  2.78203
  12  1.67063
  13  1.00303e-05
  14  0.212905
  15  2.68871
  16  6.83045e-05
  17  10.5315
  18  30.3299
  19  72.6078
  20  10.1996
  21  21.4533
  22  9.00854e-06
  23  1.69776e-05
  24  0.219897
  25  0.21319
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.972e-02  2.129e-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.171e+00  2.132e-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:  6.439e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 186.228 21.381
Photon Flux Upper Limit: 9.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603505/likelihoodResults_623980801_624240001_4FGL_J1224.9+2122_daily_bin1484.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) = 5833.32349191
delta logL = 0.10475977049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5833.31243442
delta logL = 0.115817264055

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11501       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8780       1.0000          .0000       5.0000    
     3 'Normalizat'    .62652       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1780       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=   5833.312     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      287 TOTAL
                     EDM=   .38E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11499        .21392        .41716E-04   -.49054E-05
   2  alpha         2.8790        1.1914        .31869E-01   -.39098E-06
   3  Normalizat    .62648        .20905        .30873E-03    .18412E-06
   4  Prefactor     1.1780        .21297        .23939E-03   -.14247E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.11499
  alpha      = 2.87895
  Normalizat = 0.626477
  Prefactor  = 1.17802
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.312     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .22E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11499        .20975        .16686E-05   -1.5640    
   2  alpha         2.8790        1.1697        .12748E-02    .15217    
   3  Normalizat    .62648        .20942        .12349E-04   -1.0687    
   4  Prefactor     1.1780        .21311        .95756E-05   -.87011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19618e-14
Minuit parameter uncertainties:
  1  0.209748
  2  1.21851
  3  0.209684
  4  0.213261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603505': 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) = 5833.3124341
delta logL = 0.115817580421

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.150e-01  2.097e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.879e+00  1.219e+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.178e+00  2.133e-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:  6.265e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/603505/cmap_HighResolution_623980801_624240001_4FGL_J1224.9+2122_daily_bin1484.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.38e-05', job_status='DONE', photon_flux_upper_limit='9.73e-08', time_completed='2021-09-05 13:51:18.680373', job_id='603505', GAL2='1.18', fit_tolerance='1e-08', EG2='0.63', EG='0.64', time_epoch_completed='1630875078.68', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='1.16e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1484' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 603505: <4FGL_J1224.9+2122_daily_bin1484> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1484 186.228 21.3814 623980801 624240001 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 :                                   763.38 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            904 sec.

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

