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


Performing analysis on: 4FGL_J1223.9+5000_daily_bin1594
RA = 185.988, Dec = 50.0089
tmin = 652492801, tmax = 652752001
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='717533', job_status='RUN', time_executed='2021-09-08 00:29:47.410693', time_epoch_executed='1631086187.41' WHERE source_name='4FGL J1223.9+5000' and cadence='daily' and bin_id='1594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/717533

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/717533/ft1_4FGL_J1223.9+5000_daily_bin1594.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/717533/ft2_4FGL_J1223.9+5000_daily_bin1594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/717533/ft1_4FGL_J1223.9+5000_daily_bin1594.fits outfile=/scratch/kocevski/717533/ft1_filteredMKT_4FGL_J1223.9+5000_daily_bin1594.fits ra=185.988 dec=50.0089 rad=12.0 tmin=652492801.0 tmax=652752001.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.58
user 4.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/717533/ft1_filtered_4FGL_J1223.9+5000_daily_bin1594.fits" evtable="EVENTS" scfile=/scratch/kocevski/717533/ft2_4FGL_J1223.9+5000_daily_bin1594.fits sctable="SC_DATA" outfile=/scratch/kocevski/717533/ltcube_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.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/717533/ft2_4FGL_J1223.9+5000_daily_bin1594.fits
.....................!
real 16.61
user 16.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/717533/ft1_filtered_4FGL_J1223.9+5000_daily_bin1594.fits evtable="EVENTS" scfile=/scratch/kocevski/717533/ft2_4FGL_J1223.9+5000_daily_bin1594.fits sctable="SC_DATA" expcube=/scratch/kocevski/717533/ltcube_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.fits outfile=/scratch/kocevski/717533/expmap_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.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/717533/ltcube_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.fits
.....................!
real 196.69
user 190.49
sys 4.36

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/717533/ft1_filtered_4FGL_J1223.9+5000_daily_bin1594.fits scfile=/scratch/kocevski/717533/ft2_4FGL_J1223.9+5000_daily_bin1594.fits outfile=/scratch/kocevski/717533/cmap_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/717533/ft1_filtered_4FGL_J1223.9+5000_daily_bin1594.fits scfile=/scratch/kocevski/717533/ft2_4FGL_J1223.9+5000_daily_bin1594.fits outfile=/scratch/kocevski/717533/cmap_HighResolution_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.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.56
user 0.41
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/717533/ft1_filtered_4FGL_J1223.9+5000_daily_bin1594.fits', '/scratch/kocevski/717533/ft2_4FGL_J1223.9+5000_daily_bin1594.fits', expMap='/scratch/kocevski/717533/expmap_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.fits', expCube='/scratch/kocevski/717533/ltcube_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/717533/Model_4FGL_J1223.9+5000_daily_bin1594.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/717533/ft1_filtered_4FGL_J1223.9+5000_daily_bin1594.fits
Spacecraft file(s): /scratch/kocevski/717533/ft2_4FGL_J1223.9+5000_daily_bin1594.fits
Exposure map: /scratch/kocevski/717533/expmap_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.fits
Exposure cube: /scratch/kocevski/717533/ltcube_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/717533/Model_4FGL_J1223.9+5000_daily_bin1594.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) = 4154.43035647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.372       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .95411       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .92177       1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.567       1.0000         .10000E-03   10000.    
     8 'norm      '    2.9117       1.0000         .10000E-03   10000.    
     9 'Prefactor '    71.921       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.8173       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    65.376       1.0000         .10000E-03   10000.    
    14 'norm      '    12.843       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.670       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5484       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.4244       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.772       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    12.144       1.0000         .10000E-03   10000.    
    23 'norm      '    7.0404       1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.750       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .53280E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.0982       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1922       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .49477       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=   4154.394     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3689 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.369        71.159        .69039E-06    .23589E-05
   2  norm          .10000E-03    19.979        .16198E-05** at limit **
   3  Prefactor     .10000E-03    5.4896       -.57426E-07** at limit **
   4  norm          .95419        1.5361       -.99646E-07   -.40780E-03
   5  norm          .10000E-03    3.3365        .43639E-08** at limit **
   6  Prefactor     .92265        5.3260        .62428E-06    .56679E-04
   7  Prefactor     54.564        52.989        .98066E-06    .43680E-05
   8  norm          2.9118        6.9621        .78365E-05    .10145E-02
   9  Prefactor     71.922        35.193       -.45306E-07    .38472E-04
  10  Prefactor     6.8187        12.389       -.51231E-05    .32111E-04
  11  Prefactor     .10000E-03    30.635       -.25266E-05** at limit **
  12  norm          .10000E-03    .88840       -.59900E-07** at limit **
  13  Prefactor     65.352        84.169        .57378E-05    .49058E-04
  14  norm          12.843        10.406        .19256E-06    .31290E-04
  15  Prefactor     18.673        31.383       -.24357E-06    .10345E-04
  16  Prefactor     .10000E-03    3.4808       -.11564E-06** at limit **
  17  norm          2.5482        2.4306        .11187E-07    .26358E-05
  18  Prefactor     .10000E-03    30.948        .15318E-06** at limit **
  19  norm          2.4244        1.7859       -.41945E-08    .51984E-04
  20  Prefactor     13.803        49.284       -.11124E-04   -.30193E-04
  21  Prefactor     .10000E-03    8.1845       -.16099E-06** at limit **
  22  norm          12.143        13.099        .67243E-06    .43567E-04
  23  norm          7.0409        6.0833        .75266E-06    .50626E-03
  24  Prefactor     24.746        40.392        .99904E-06    .92768E-04
  25  Prefactor     .10075E-03    23.418       -.12969E-04** at limit **
  26  Prefactor     .10000E-03    21.841       -.19271E-05** at limit **
  27  norm          9.0964        5.8626       -.50520E-06    .68070E-03
  28  Normalizat    1.1921        .19384       -.15740E-05    .22730E-03
  29  Prefactor     .49484        .22575        .98818E-06    .14004E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.3692
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.954189
  norm       = 0.0001
  Prefactor  = 0.922652
  Prefactor  = 54.5636
  norm       = 2.91178
  Prefactor  = 71.9219
  Prefactor  = 6.81875
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 65.3518
  norm       = 12.8428
  Prefactor  = 18.6725
  Prefactor  = 0.0001
  norm       = 2.54821
  Prefactor  = 0.0001
  norm       = 2.42442
  Prefactor  = 13.8027
  Prefactor  = 0.0001
  norm       = 12.143
  norm       = 7.04088
  Prefactor  = 24.7458
  Prefactor  = 0.000100752
  Prefactor  = 0.0001
  norm       = 9.09637
  Normalizat = 1.19213
  Prefactor  = 0.494842
 **********
 **   18 **HESSE 
 **********

 FCN=   4154.394     FROM HESSE     STATUS=OK           553 CALLS     4242 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.369        71.159        .49636E-04   -1.4089    
   2  norm          .10000E-03    19.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.5838        .14742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .95419        1.3641        .95283E-03   -1.5513    
   5  norm          .10000E-03    3.3367        .11499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .92265        4.7405        .23470E-03   -1.5516    
   7  Prefactor     54.564        52.716        .54300E-04   -1.4229    
   8  norm          2.9118        7.3855        .11045E-02   -1.5367    
   9  Prefactor     71.922        33.189        .47338E-04   -1.4010    
  10  Prefactor     6.8187        12.604        .15367E-03   -1.5186    
  11  Prefactor     .10000E-03    30.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .89826        .59292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     65.352        84.156        .49635E-04   -1.4089    
  14  norm          12.843        10.395        .11177E-03   -1.4991    
  15  Prefactor     18.673        31.391        .92694E-04   -1.4843    
  16  Prefactor     .10000E-03    3.4999        .11737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5482        2.4298        .94890E-04   -1.5389    
  18  Prefactor     .10000E-03    31.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.4244        1.7911        .72037E-04   -1.5397    
  20  Prefactor     13.803        49.260        .10793E-03   -1.4965    
  21  Prefactor     .10000E-03    8.2400        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          12.143        13.097        .11495E-03   -1.5011    
  23  norm          7.0409        6.0841        .67583E-03   -1.5177    
  24  Prefactor     24.746        40.377        .80520E-04   -1.4713    
  25  Prefactor     .10075E-03    63.548        .42694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.0964        5.5960        .11473E-03   -1.5105    
  28  Normalizat    1.1921        .21449        .19647E-03   -.86846    
  29  Prefactor     .49484        .24687        .35411E-03   -1.1221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38142e-08
Minuit parameter uncertainties:
  1  71.2515
  2  2.34243e-05
  3  1.4866e-05
  4  1.36418
  5  6.96305e-07
  6  4.18304
  7  52.7612
  8  7.38776
  9  33.1978
  10  12.6091
  11  0.00067196
  12  3.23427e-06
  13  84.3099
  14  10.3961
  15  31.4183
  16  1.1184e-05
  17  2.42991
  18  0.000142522
  19  1.79113
  20  49.4054
  21  1.41882e-05
  22  13.1
  23  6.08461
  24  40.4212
  25  0.0138404
  26  8.91494e-05
  27  5.5963
  28  0.214649
  29  0.247409
Done.

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

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.284e+01  1.040e+01  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:  4.948e-01  2.474e-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.192e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 185.988 50.009
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 1.61e-05 +/- 1.30e-05

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) = 4154.28260874
delta logL = 0.111619577596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4154.2788586
delta logL = 0.115369723268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.273       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8830       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51205       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=   4154.279     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      287 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.272        10.744        .12501E-03    .73144E-03
   2  alpha         2.8829        1.0365        .14216E-01    .62678E-04
   3  Normalizat    1.1713        .21058        .19784E-03   -.17859E-03
   4  Prefactor     .51233        .24990        .34839E-03   -.19928E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.272
  alpha      = 2.88289
  Normalizat = 1.17125
  Prefactor  = 0.512334
 **********
 **   18 **HESSE 
 **********

 FCN=   4154.279     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.272        10.013        .50005E-05   -1.5067    
   2  alpha         2.8829        .96912        .56864E-03    .15376    
   3  Normalizat    1.1713        .21012        .39569E-04   -.87496    
   4  Prefactor     .51233        .24952        .13936E-04   -1.1141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87284e-10
Minuit parameter uncertainties:
  1  10.0147
  2  0.995876
  3  0.21027
  4  0.250055
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/717533': 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) = 4154.27885745
delta logL = 0.115370872592

Extracting fit parameters...

4FGL J1223.9+5000
   Spectrum: LogParabola
357         norm:  1.027e+01  1.001e+01  1.000e-04  1.000e+04 ( 1.000e-12)
358        alpha:  2.883e+00  9.959e-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:  5.123e-01  2.501e-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.171e+00  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.89
Ra Dec: 185.988 50.009
Photon Index (Free Index): 2.88 +/- 1.00
Photon Flux (Free Index): 6.87e-08 +/- 5.65e-08
Energy Flux (Free Index): 1.61e-05 +/- 1.08e-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/717533/cmap_HighResolution_652492801_652752001_4FGL_J1223.9+5000_daily_bin1594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='1.61e-05', photon_flux_error='4.17e-08', dlogl='1.15e-01', energy_flux='1.61e-05', photon_flux2='6.87e-08', job_status='DONE', time_completed='2021-09-08 00:41:04.630988', photon_index_error2='1.00', photon_index2='2.88', ts='4.65', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='1.19', time_epoch_completed='1631086864.63', return_code='0', job_id='717533', GAL2='0.51', EG2='1.17', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.65e-08', ts2='4.89', photon_index='2.42' WHERE bin_id='1594' AND source_name='4FGL J1223.9+5000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 00:41:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 717533: <4FGL_J1223.9+5000_daily_bin1594> in cluster <slac> Done

Job <4FGL_J1223.9+5000_daily_bin1594> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Sep  8 00:25:30 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 00:26:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 00:26:00 2021
Terminated at Wed Sep  8 00:41:05 2021
Results reported at Wed Sep  8 00:41:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1223.9+5000_daily_bin1594 185.988 50.0089 652492801 652752001 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 :                                   678.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            935 sec.

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

