/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 3 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_bin1402
RA = 186.228, Dec = 21.3814
tmin = 602726401, tmax = 602985601
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='603381', job_status='RUN', time_executed='2021-09-05 13:36:22.632285', time_epoch_executed='1630874182.63' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='1402'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603381

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603381/ft1_4FGL_J1224.9+2122_daily_bin1402.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603381/ft2_4FGL_J1224.9+2122_daily_bin1402.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603381/ft1_4FGL_J1224.9+2122_daily_bin1402.fits outfile=/scratch/kocevski/603381/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin1402.fits ra=186.228 dec=21.3814 rad=12.0 tmin=602726401.0 tmax=602985601.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.09
user 2.82
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603381/ft1_filtered_4FGL_J1224.9+2122_daily_bin1402.fits evtable="EVENTS" scfile=/scratch/kocevski/603381/ft2_4FGL_J1224.9+2122_daily_bin1402.fits sctable="SC_DATA" expcube=/scratch/kocevski/603381/ltcube_602726401_602985601_4FGL_J1224.9+2122_daily_bin1402.fits outfile=/scratch/kocevski/603381/expmap_602726401_602985601_4FGL_J1224.9+2122_daily_bin1402.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/603381/ltcube_602726401_602985601_4FGL_J1224.9+2122_daily_bin1402.fits
.....................!
real 190.57
user 185.34
sys 4.26

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/603381/ft1_filtered_4FGL_J1224.9+2122_daily_bin1402.fits scfile=/scratch/kocevski/603381/ft2_4FGL_J1224.9+2122_daily_bin1402.fits outfile=/scratch/kocevski/603381/cmap_602726401_602985601_4FGL_J1224.9+2122_daily_bin1402.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.72
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603381/ft1_filtered_4FGL_J1224.9+2122_daily_bin1402.fits scfile=/scratch/kocevski/603381/ft2_4FGL_J1224.9+2122_daily_bin1402.fits outfile=/scratch/kocevski/603381/cmap_HighResolution_602726401_602985601_4FGL_J1224.9+2122_daily_bin1402.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.53
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.599       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14161E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8374       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9779       1.0000         .10000E-03   10000.    
    10 'norm      '    3.6234       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8546       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9831       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .16980       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6197       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.1460       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5180       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .68098       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=   2876.803     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     2973 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.750        58.953        .12632E-05   -.11191E-04
   2  Prefactor     .10000E-03    17.052       -.30116E-06** at limit **
   3  Prefactor     .10014E-03    5.2344       -.27774E-05** at limit **
   4  norm          3.8372        3.4024        .14765E-06    .12158E-03
   5  Prefactor     .10000E-03    15.166       -.22081E-06** at limit **
   6  Prefactor     6.3974        6.8184        .79123E-07    .80904E-04
   7  Prefactor     .10000E-03    66.471       -.28268E-06** at limit **
   8  Prefactor     .10000E-03    1.9603       -.12613E-06** at limit **
   9  Prefactor     3.9766        5.9145        .34124E-07    .12528E-04
  10  norm          3.6232        5.7134       -.37171E-07   -.19001E-04
  11  Prefactor     9.8538        6.0137        .91296E-07    .82647E-04
  12  Prefactor     2.9812        2.9028        .51409E-07    .13397E-03
  13  Prefactor     .10000E-03    3.5650       -.92387E-07** at limit **
  14  norm          .10000E-03    .10690       -.14175E-06** at limit **
  15  norm          .21530        35.688        .12175E-04    .33676E-04
  16  Prefactor     .10000E-03    42.605       -.20114E-05** at limit **
  17  Prefactor     .10000E-03    11.732       -.10066E-08** at limit **
  18  Prefactor     .10000E-03    19.161       -.64610E-06** at limit **
  19  Prefactor     9.1701        318.09       -.41436E-05   -.24263E-05
  20  Prefactor     .10000E-03    16.167       -.14580E-05** at limit **
  21  Prefactor     .10000E-03    25.718       -.13191E-05** at limit **
  22  norm          2.1459        2.6841        .88366E-08    .25845E-04
  23  norm          .10000E-03    8.4562       -.68510E-07** at limit **
  24  Normalizat    1.5186        .31443       -.49533E-05    .33369E-03
  25  Prefactor     .68031        .29070        .75503E-05    .17093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.7501
  Prefactor  = 0.0001
  Prefactor  = 0.000100144
  norm       = 3.83719
  Prefactor  = 0.0001
  Prefactor  = 6.39741
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.97657
  norm       = 3.62318
  Prefactor  = 9.85381
  Prefactor  = 2.9812
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.215296
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.17009
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 2.14586
  norm       = 0.0001
  Normalizat = 1.51861
  Prefactor  = 0.680313
 **********
 **   18 **HESSE 
 **********

 FCN=   2876.803     FROM HESSE     STATUS=OK           427 CALLS     3400 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.750        59.472        .69132E-04   -1.4545    
   2  Prefactor     .10000E-03    17.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10014E-03    76.319        .19122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8372        3.3921        .88160E-04   -1.5316    
   5  Prefactor     .10000E-03    15.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3974        6.8150        .13986E-03   -1.5202    
   7  Prefactor     .10000E-03    66.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9651        .73259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9766        5.9012        .15042E-03   -1.5309    
  10  norm          3.6232        5.7148        .14086E-03   -1.5327    
  11  Prefactor     9.8538        6.0286        .90116E-04   -1.5080    
  12  Prefactor     2.9812        2.9027        .86294E-04   -1.5363    
  13  Prefactor     .10000E-03    3.5686        .98900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .11081        .34346E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .21530        36.067        .22814E-02   -1.5615    
  16  Prefactor     .10000E-03    44.293        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.776        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.1701        322.48        .12920E-03   -1.5102    
  20  Prefactor     .10000E-03    16.820        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.1459        2.6772        .95482E-04   -1.5415    
  23  norm          .10000E-03    8.4573        .15235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5186        .31331        .22769E-03   -.77257    
  25  Prefactor     .68031        .29214        .31492E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3889e-09
Minuit parameter uncertainties:
  1  59.5772
  2  8.43804e-05
  3  0.00662848
  4  3.39223
  5  4.20825e-05
  6  6.81584
  7  8.7241e-05
  8  5.44726e-06
  9  5.90211
  10  5.7157
  11  6.02894
  12  2.90288
  13  1.05548e-05
  14  1.84639e-06
  15  5.57532
  16  0.000863545
  17  3.4942e-06
  18  0.000115447
  19  109.404
  20  0.000324025
  21  0.000296084
  22  2.67731
  23  6.29506e-06
  24  0.313713
  25  0.292796
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  1.846e-06  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.803e-01  2.928e-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.519e+00  3.137e-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: 9.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603381/likelihoodResults_602726401_602985601_4FGL_J1224.9+2122_daily_bin1402.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) = 2876.8033868
delta logL = -1.96317928385e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2876.80336535
delta logL = 1.81737959792e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3979       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68011       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=   2876.803     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      248 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.4096        .81013E-02** at limit **
   2  alpha         2.6496        3.8245        .41195       -.21904E-06
   3  Normalizat    1.5186        .39980E-01    .51500E-01    .60133E-04
   4  Prefactor     .68032        .38837E-01    .71156E-01    .55573E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.64959
  Normalizat = 1.5186
  Prefactor  = 0.680317
 **********
 **   18 **HESSE 
 **********

 FCN=   2876.803     FROM HESSE     STATUS=OK            31 CALLS      279 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .12135        .34926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6496        3.5535        .16478        .59873E-01
   3  Normalizat    1.5186        .29836        .22768E-03   -.77257    
   4  Prefactor     .68032        .28969        .31493E-03   -1.0430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99314e-11
Minuit parameter uncertainties:
  1  6.27409e-07
  2  57.8384
  3  0.298705
  4  0.290337
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603381': 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) = 2876.80334377
delta logL = 2.33986288549e-05

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.000e-04  6.274e-07  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.650e+00  5.784e+01  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  6.803e-01  2.903e-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.519e+00  2.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.228 21.381

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/603381/cmap_HighResolution_602726401_602985601_4FGL_J1224.9+2122_daily_bin1402.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-05', job_status='DONE', photon_flux_upper_limit='9.70e-08', time_completed='2021-09-05 13:44:50.292234', job_id='603381', GAL2='0.68', fit_tolerance='1e-08', EG2='1.52', EG='1.52', time_epoch_completed='1630874690.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.34e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1402' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:44:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 603381: <4FGL_J1224.9+2122_daily_bin1402> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin1402 186.228 21.3814 602726401 602985601 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 :                                   500.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   523 sec.
    Turnaround time :                            526 sec.

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

