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


Performing analysis on: 4FGL_J1323.9+1405_daily_bin84
RA = 200.976, Dec = 14.0871
tmin = 261100801, tmax = 261360001
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='526179', job_status='RUN', time_executed='2021-09-07 14:55:43.194341', time_epoch_executed='1631051743.19' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/526179

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/526179/ft1_4FGL_J1323.9+1405_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/526179/ft1_4FGL_J1323.9+1405_daily_bin84.fits outfile=/scratch/kocevski/526179/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin84.fits ra=200.976 dec=14.0871 rad=12.0 tmin=261100801.0 tmax=261360001.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.57
user 1.35
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.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/526179/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin84.fits evtable="EVENTS" outfile="/scratch/kocevski/526179/ft1_filtered_4FGL_J1323.9+1405_daily_bin84.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/526179/ft1_filtered_4FGL_J1323.9+1405_daily_bin84.fits" evtable="EVENTS" scfile=/scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits sctable="SC_DATA" outfile=/scratch/kocevski/526179/ltcube_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.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/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits
.....................!
real 17.54
user 17.01
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/526179/ft1_filtered_4FGL_J1323.9+1405_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/526179/ltcube_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.fits outfile=/scratch/kocevski/526179/expmap_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.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/526179/ltcube_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.fits
.....................!
real 192.42
user 186.17
sys 5.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 173 point sources and 0 extended sources

Setting source of interest to:
4FGL J1323.9+1405 @ 200.976 14.0871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/526179/ft1_filtered_4FGL_J1323.9+1405_daily_bin84.fits scfile=/scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits outfile=/scratch/kocevski/526179/cmap_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.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=200.976 yref=14.0871 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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/526179/ft1_filtered_4FGL_J1323.9+1405_daily_bin84.fits scfile=/scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits outfile=/scratch/kocevski/526179/cmap_HighResolution_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.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=200.976 yref=14.0871 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/526179/ft1_filtered_4FGL_J1323.9+1405_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/526179/Model_4FGL_J1323.9+1405_daily_bin84.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/526179/ft1_filtered_4FGL_J1323.9+1405_daily_bin84.fits.....................!
real 68.15
user 66.64
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/526179/ft1_filtered_4FGL_J1323.9+1405_daily_bin84.fits', '/scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits', expMap='/scratch/kocevski/526179/expmap_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.fits', expCube='/scratch/kocevski/526179/ltcube_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/526179/Model_4FGL_J1323.9+1405_daily_bin84.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1323.9+1405'

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  5.083e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.878e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/526179/ft1_filtered_4FGL_J1323.9+1405_daily_bin84.fits
Spacecraft file(s): /scratch/kocevski/526179/ft2_4FGL_J1323.9+1405_daily_bin84.fits
Exposure map: /scratch/kocevski/526179/expmap_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.fits
Exposure cube: /scratch/kocevski/526179/ltcube_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/526179/Model_4FGL_J1323.9+1405_daily_bin84.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) = 9100.86993784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .48395E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.620       1.0000         .10000E-03   10000.    
     6 'norm      '    30.690       1.0000         .10000E-03   10000.    
     7 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.4521       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.085       1.0000         .10000E-03   10000.    
    10 'norm      '    3.3096       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7795       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5378       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5136       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0774       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.0893       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9100.765     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1388 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.133       -.66768E-07** at limit **
   2  Prefactor     .10000E-03    1.2447        .12514E-07** at limit **
   3  Prefactor     .10000E-03    4.7008       -.90411E-07** at limit **
   4  Prefactor     .10000E-03    4.9688       -.29402E-07** at limit **
   5  norm          13.619        4.5936       -.48757E-07    .26502E-05
   6  norm          30.689        18.568       -.30686E-06   -.15607E-04
   7  norm          .10000E-03    4.5086       -.91296E-08** at limit **
   8  Prefactor     4.4512        6.2802       -.53341E-06   -.71165E-04
   9  Prefactor     17.085        18.228       -.25913E-06   -.36126E-05
  10  norm          3.3094        4.1660       -.42142E-06   -.10662E-03
  11  Prefactor     4.7650        95.115       -.38383E-04   -.87813E-04
  12  Prefactor     .10000E-03    1.4349        .23454E-07** at limit **
  13  Prefactor     1.5360        4.0850        .80684E-06   -.19843E-03
  14  Prefactor     2.5134        3.1151        .12531E-05   -.25703E-02
  15  Prefactor     .10000E-03    2.1729       -.80828E-08** at limit **
  16  Normalizat    1.0776        .15703        .20122E-06    .95977E-04
  17  Prefactor     1.0893        .13349        .82912E-06    .46403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 13.6192
  norm       = 30.6891
  norm       = 0.0001
  Prefactor  = 4.45118
  Prefactor  = 17.0848
  norm       = 3.30942
  Prefactor  = 4.76502
  Prefactor  = 0.0001
  Prefactor  = 1.53598
  Prefactor  = 2.51338
  Prefactor  = 0.0001
  Normalizat = 1.07757
  Prefactor  = 1.08928
 **********
 **   18 **HESSE 
 **********

 FCN=   9100.765     FROM HESSE     STATUS=OK           229 CALLS     1617 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.2485        .10394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.560        .39774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.619        4.5978        .10853E-03   -1.4970    
   6  norm          30.689        18.569        .72325E-04   -1.4599    
   7  norm          .10000E-03    4.6221        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.4512        6.2757        .19084E-03   -1.5286    
   9  Prefactor     17.085        18.230        .96896E-04   -1.4881    
  10  norm          3.3094        4.1608        .21143E-03   -1.5344    
  11  Prefactor     4.7650        97.240        .18403E-03   -1.5271    
  12  Prefactor     .10000E-03    1.4534        .11154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5360        4.0689        .29877E-03   -1.5460    
  14  Prefactor     2.5134        5.7584        .12885E-02   -1.5391    
  15  Prefactor     .10000E-03    2.1774        .13733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0776        .18667        .26157E-03   -.90475    
  17  Prefactor     1.0893        .15935        .22172E-03   -.89810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02755e-09
Minuit parameter uncertainties:
  1  1.12513e-05
  2  4.37576e-07
  3  0.000737639
  4  6.28695e-06
  5  4.59789
  6  18.572
  7  1.52137e-06
  8  6.27664
  9  18.2356
  10  4.16113
  11  43.1311
  12  1.37993e-06
  13  4.06966
  14  5.75967
  15  1.36026e-06
  16  0.186783
  17  0.159419
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.708e+01  1.824e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.878e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.089e+00  1.594e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.078e+00  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.83
Ra Dec: 200.976 14.087
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.24e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.26e-05

TS (Fixed Index): 2.83
Ra Dec: 200.976 14.087
Photon Flux Upper Limit: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/526179/likelihoodResults_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.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) = 9100.74758404
delta logL = 0.0169757964741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9100.73659312
delta logL = 0.0279667238337

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.567       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1972       1.0000          .0000       10.000    
     3 'Normalizat'    1.0669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0932       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9100.737     FROM MIGRAD    STATUS=FAILED       108 CALLS      282 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.546        58.864        .54373E-03   -.21327E-05
   2  Index         2.1978        3.0883        .13998E-01    .97499E-03
   3  Normalizat    1.0669        .24368        .26272E-03   -.51927E-06
   4  Prefactor     1.0932        .17197        .22137E-03   -.51356E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9100.737     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      358 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.546        58.864        .27558E-03   -1.4972    
   2  Index         2.1978        3.0883        .17144E-02   -.59493    
   3  Normalizat    1.0669        .24368        .30036E-03   -.90821    
   4  Prefactor     1.0932        .17197        .19256E-03   -.89685    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9100.737     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      387 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.546        25.514        .21749E-04   -.20909E-05
   2  Index         2.1978        1.5310        .27996E-02    .38261E-04
   3  Normalizat    1.0669        .19699        .10509E-04   -.43273E-06
   4  Prefactor     1.0932        .16034        .88548E-05   -.51356E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5464
  Index      = 2.19775
  Normalizat = 1.06692
  Prefactor  = 1.09317
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.546        24.041        .43498E-05   -1.4972    
   2  Index         2.1978        1.4440        .55993E-03   -.59493    
   3  Normalizat    1.0669        .19487        .21018E-05   -.90821    
   4  Prefactor     1.0932        .15952        .17710E-05   -.89685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21714e-14
Minuit parameter uncertainties:
  1  24.0578
  2  1.47504
  3  0.195004
  4  0.159593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/526179': 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) = 9100.73659258
delta logL = 0.0279672607776

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.355e+01  2.406e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  2.198e+00  1.475e+00  0.000e+00  1.000e+01 (-1.000e+00)
329        Scale:  3.120e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  1.093e+00  1.596e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.067e+00  1.950e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 200.976 14.087
Photon Index (Free Index): 2.20 +/- 1.48
Photon Flux (Free Index): 2.18e-08 +/- 5.60e-08
Energy Flux (Free Index): 9.81e-06 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/526179/cmap_HighResolution_261100801_261360001_4FGL_J1323.9+1405_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.01e-03', comment='SUCCESS', photon_flux='1.24e-08', energy_flux2='9.81e-06', photon_flux_error='1.33e-08', dlogl='2.80e-02', energy_flux='1.19e-05', photon_flux2='2.18e-08', job_status='DONE', time_completed='2021-09-07 15:06:14.837274', photon_index_error2='1.48', photon_index2='2.20', ts='2.83', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='5.41e-08', energy_flux_error2='1.04e-05', EG='1.08', time_epoch_completed='1631052374.84', return_code='0', job_id='526179', GAL2='1.09', EG2='1.07', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='5.60e-08', ts2='2.88', photon_index='1.88' WHERE bin_id='84' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:06:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 526179: <4FGL_J1323.9+1405_daily_bin84> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin84> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 14:50:25 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 14:53:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 14:53:17 2021
Terminated at Tue Sep  7 15:06:15 2021
Results reported at Tue Sep  7 15:06:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin84 200.976 14.0871 261100801 261360001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1323.9+1405 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   630.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            950 sec.

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

