/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 168 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1223.9+5000_daily_bin91
RA = 185.988, Dec = 50.0089
tmin = 262915201, tmax = 263174401
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='563670', job_status='RUN', time_executed='2021-09-05 11:43:52.308251', time_epoch_executed='1630867432.31' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563670

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563670/ft1_4FGL_J1223.9+5000_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563670/ft1_4FGL_J1223.9+5000_daily_bin91.fits outfile=/scratch/kocevski/563670/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin91.fits ra=185.988 dec=50.0089 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.30
user 1.10
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.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/563670/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/563670/ft1_filtered_4FGL_J1223.9+5000_daily_bin91.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/563670/ft1_filtered_4FGL_J1223.9+5000_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/563670/ltcube_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.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/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits
.....................!
real 10.84
user 10.48
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563670/ft1_filtered_4FGL_J1223.9+5000_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/563670/ltcube_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.fits outfile=/scratch/kocevski/563670/expmap_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.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/563670/ltcube_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.fits
.....................!
real 190.00
user 184.79
sys 4.55

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1223.9+5000 @ 185.988 50.0089

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/563670/ft1_filtered_4FGL_J1223.9+5000_daily_bin91.fits scfile=/scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits outfile=/scratch/kocevski/563670/cmap_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.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=185.988 yref=50.0089 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563670/ft1_filtered_4FGL_J1223.9+5000_daily_bin91.fits scfile=/scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits outfile=/scratch/kocevski/563670/cmap_HighResolution_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.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=185.988 yref=50.0089 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/563670/ft1_filtered_4FGL_J1223.9+5000_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/563670/Model_4FGL_J1223.9+5000_daily_bin91.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/563670/ft1_filtered_4FGL_J1223.9+5000_daily_bin91.fits.....................!
real 38.90
user 37.50
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/563670/ft1_filtered_4FGL_J1223.9+5000_daily_bin91.fits', '/scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits', expMap='/scratch/kocevski/563670/expmap_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.fits', expCube='/scratch/kocevski/563670/ltcube_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/563670/Model_4FGL_J1223.9+5000_daily_bin91.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1223.9+5000'

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  3.480e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/563670/ft1_filtered_4FGL_J1223.9+5000_daily_bin91.fits
Spacecraft file(s): /scratch/kocevski/563670/ft2_4FGL_J1223.9+5000_daily_bin91.fits
Exposure map: /scratch/kocevski/563670/expmap_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.fits
Exposure cube: /scratch/kocevski/563670/ltcube_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/563670/Model_4FGL_J1223.9+5000_daily_bin91.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) = 3884.7787755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10949E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10797E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10363E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.703       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4579       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.6477       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2872       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15793E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.242       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.0397       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1339       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10917E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.247       1.0000         .10000E-03   10000.    
    23 'norm      '    6.9490       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3138       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .83546       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3884.766     FROM MIGRAD    STATUS=CONVERGED    722 CALLS     3609 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    124.29       -.11535E-04** at limit **
   2  norm          .10000E-03    34.008        .19318E-05** at limit **
   3  Prefactor     .10000E-03    14.597        .17888E-05** at limit **
   4  norm          .10000E-03    1.0369       -.84077E-07** at limit **
   5  norm          .10000E-03    4.3457        .11559E-06** at limit **
   6  Prefactor     .10000E-03    1.5568       -.72695E-07** at limit **
   7  Prefactor     51.705        51.878        .17931E-05   -.27247E-04
   8  norm          2.4168        15.643       -.39088E-05   -.12558E-03
   9  Prefactor     .10000E-03    13.785        .29239E-05** at limit **
  10  Prefactor     6.6564        19.447       -.25808E-05    .15217E-03
  11  Prefactor     .10000E-03    19.727        .16855E-06** at limit **
  12  norm          6.2870        3.7202       -.50134E-06   -.23143E-02
  13  Prefactor     .10000E-03    63.017        .12451E-04** at limit **
  14  norm          12.243        9.9913        .15600E-06    .13633E-04
  15  Prefactor     .10000E-03    18.624       -.49761E-05** at limit **
  16  Prefactor     .10000E-03    6.6057       -.16195E-05** at limit **
  17  norm          8.0388        3.8969        .40571E-07    .11729E-03
  18  Prefactor     .10000E-03    13.276       -.76101E-06** at limit **
  19  norm          3.1333        3.2329       -.96524E-07   -.82653E-04
  20  Prefactor     .10000E-03    38.055       -.11186E-04** at limit **
  21  Prefactor     .10000E-03    6.1949        .93334E-07** at limit **
  22  norm          14.267        22.501       -.91087E-06    .17662E-04
  23  norm          6.9486        6.0050       -.20020E-06   -.69265E-04
  24  Prefactor     .10000E-03    22.078        .11237E-04** at limit **
  25  Prefactor     .10000E-03    6.7208        .14741E-05** at limit **
  26  Prefactor     .10000E-03    18.189       -.62579E-05** at limit **
  27  norm          .10000E-03    1.5739        .20400E-07** at limit **
  28  Normalizat    1.3140        .22247        .12335E-05   -.32642E-05
  29  Prefactor     .83534        .26430       -.29371E-07    .38113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.7054
  norm       = 2.41681
  Prefactor  = 0.0001
  Prefactor  = 6.65645
  Prefactor  = 0.0001
  norm       = 6.28697
  Prefactor  = 0.000100002
  norm       = 12.2425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.03884
  Prefactor  = 0.0001
  norm       = 3.13328
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 14.2666
  norm       = 6.94863
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.31397
  Prefactor  = 0.835338
 **********
 **   18 **HESSE 
 **********

 FCN=   3884.766     FROM HESSE     STATUS=OK           543 CALLS     4152 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    124.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    34.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0703        .12373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.3476        .12690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5625        .75929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     51.705        51.778        .55776E-04   -1.4269    
   8  norm          2.4168        14.226        .26088E-03   -1.5397    
   9  Prefactor     .10000E-03    13.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.6564        18.101        .15564E-03   -1.5192    
  11  Prefactor     .10000E-03    19.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2870        3.8361        .45163E-03   -1.5206    
  13  Prefactor     .10000E-03    62.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.243        9.9929        .11449E-03   -1.5008    
  15  Prefactor     .10000E-03    18.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.6356        .15624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.0388        3.8960        .83274E-04   -1.5141    
  18  Prefactor     .10000E-03    13.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1333        3.2285        .11000E-03   -1.5354    
  20  Prefactor     .10000E-03    37.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.2007        .15151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.267        22.506        .10611E-03   -1.4952    
  23  norm          6.9486        6.0089        .13709E-03   -1.5181    
  24  Prefactor     .10000E-03    21.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.7153        .15774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    18.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.5746        .76367E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3140        .26628        .22123E-03   -.83150    
  29  Prefactor     .83534        .31398        .32528E-03   -.98439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89957e-09
Minuit parameter uncertainties:
  1  0.00101338
  2  9.62168e-05
  3  2.52391e-05
  4  5.07074e-06
  5  4.91947e-06
  6  9.13223e-07
  7  51.8234
  8  11.7313
  9  9.93657e-05
  10  18.1157
  11  8.58962e-05
  12  3.83621
  13  0.000660745
  14  9.99421
  15  0.000162859
  16  3.76577e-05
  17  3.89609
  18  1.73155e-05
  19  3.22866
  20  0.000551357
  21  2.95933e-06
  22  22.519
  23  6.00938
  24  0.000430297
  25  3.24267e-05
  26  0.00021154
  27  6.90961e-07
  28  0.266558
  29  0.314661
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.224e+01  9.994e+00  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.419e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  8.353e-01  3.147e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.314e+00  2.666e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.05
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 4.91e-08 +/- 4.01e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.25e-05

TS (Fixed Index): 3.05
Ra Dec: 185.988 50.009
Photon Flux Upper Limit: 1.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/563670/likelihoodResults_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.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) = 3884.76270941
delta logL = 0.00326224081891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3884.76238725
delta logL = 0.00358440151604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.436       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3416       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3175       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83275       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+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=   3884.762     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      264 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.437        10.430        .11359E-03   -.18828E-02
   2  alpha         2.3415        .89665        .18478E-01   -.17881E-03
   3  Normalizat    1.3174        .26324        .22099E-03    .19819E-03
   4  Prefactor     .83288        .31430        .32571E-03    .16915E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4366
  alpha      = 2.34149
  Normalizat = 1.31736
  Prefactor  = 0.832884
 **********
 **   18 **HESSE 
 **********

 FCN=   3884.762     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.437        10.362        .22718E-04   -1.5003    
   2  alpha         2.3415        .89041        .73912E-03   -.63446E-01
   3  Normalizat    1.3174        .26334        .44198E-04   -.83050    
   4  Prefactor     .83288        .31448        .13028E-04   -.98527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.39036e-09
Minuit parameter uncertainties:
  1  10.3638
  2  0.910482
  3  0.263606
  4  0.315159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563670': 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) = 3884.76238714
delta logL = 0.00358450831754

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.244e+01  1.036e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.341e+00  9.105e-01  0.000e+00  5.000e+00 ( 1.000e+00)
359         beta:  2.247e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
360           Eb:  6.174e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  8.329e-01  3.152e-01  0.000e+00  1.000e+01 ( 1.000e+00)
694        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
695        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
692   Normalization:  1.317e+00  2.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.05
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.34 +/- 0.91
Photon Flux (Free Index): 4.62e-08 +/- 5.08e-08
Energy Flux (Free Index): 1.54e-05 +/- 1.26e-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/563670/cmap_HighResolution_262915201_263174401_4FGL_J1223.9+5000_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-05', comment='SUCCESS', photon_flux='4.91e-08', energy_flux2='1.54e-05', photon_flux_error='4.01e-08', dlogl='3.58e-03', energy_flux='1.54e-05', photon_flux2='4.62e-08', job_status='DONE', time_completed='2021-09-05 11:55:13.639204', photon_index_error2='0.91', photon_index2='2.34', ts='3.05', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.26e-05', EG='1.31', time_epoch_completed='1630868113.64', return_code='0', job_id='563670', GAL2='0.83', EG2='1.32', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='5.08e-08', ts2='3.05', photon_index='2.42' WHERE bin_id='91' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 11:55:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 563670: <4FGL_J1223.9+5000_daily_bin91> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin91> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 11:40:44 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 11:40:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 11:40:46 2021
Terminated at Sun Sep  5 11:55:14 2021
Results reported at Sun Sep  5 11:55:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin91 185.988 50.0089 262915201 263174401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1223.9+5000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   676.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

