/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 53 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 = 7539
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1323.9+1405_daily_bin909
RA = 200.976, Dec = 14.0871
tmin = 474940801, tmax = 475200001
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='530800', job_status='RUN', time_executed='2021-09-07 15:06:55.318998', time_epoch_executed='1631052415.32' WHERE source_name='4FGL J1323.9+1405' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530800

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530800/ft1_4FGL_J1323.9+1405_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530800/ft2_4FGL_J1323.9+1405_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530800/ft1_4FGL_J1323.9+1405_daily_bin909.fits outfile=/scratch/kocevski/530800/ft1_filteredMKT_4FGL_J1323.9+1405_daily_bin909.fits ra=200.976 dec=14.0871 rad=12.0 tmin=474940801.0 tmax=475200001.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.64
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530800/ft1_filtered_4FGL_J1323.9+1405_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/530800/ft2_4FGL_J1323.9+1405_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/530800/ltcube_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.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/530800/ft2_4FGL_J1323.9+1405_daily_bin909.fits
.....................!
real 15.98
user 15.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530800/ft1_filtered_4FGL_J1323.9+1405_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/530800/ft2_4FGL_J1323.9+1405_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/530800/ltcube_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.fits outfile=/scratch/kocevski/530800/expmap_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.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/530800/ltcube_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.fits
.....................!
real 191.84
user 187.40
sys 3.86

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/530800/ft1_filtered_4FGL_J1323.9+1405_daily_bin909.fits scfile=/scratch/kocevski/530800/ft2_4FGL_J1323.9+1405_daily_bin909.fits outfile=/scratch/kocevski/530800/cmap_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530800/ft1_filtered_4FGL_J1323.9+1405_daily_bin909.fits scfile=/scratch/kocevski/530800/ft2_4FGL_J1323.9+1405_daily_bin909.fits outfile=/scratch/kocevski/530800/cmap_HighResolution_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.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/530800/ft1_filtered_4FGL_J1323.9+1405_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/530800/ft2_4FGL_J1323.9+1405_daily_bin909.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530800/Model_4FGL_J1323.9+1405_daily_bin909.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/530800/ft1_filtered_4FGL_J1323.9+1405_daily_bin909.fits....................!
real 49.11
user 47.72
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530800/ft1_filtered_4FGL_J1323.9+1405_daily_bin909.fits', '/scratch/kocevski/530800/ft2_4FGL_J1323.9+1405_daily_bin909.fits', expMap='/scratch/kocevski/530800/expmap_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.fits', expCube='/scratch/kocevski/530800/ltcube_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530800/Model_4FGL_J1323.9+1405_daily_bin909.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/530800/ft1_filtered_4FGL_J1323.9+1405_daily_bin909.fits
Spacecraft file(s): /scratch/kocevski/530800/ft2_4FGL_J1323.9+1405_daily_bin909.fits
Exposure map: /scratch/kocevski/530800/expmap_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.fits
Exposure cube: /scratch/kocevski/530800/ltcube_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530800/Model_4FGL_J1323.9+1405_daily_bin909.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) = 5871.67716658

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.878       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10288E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.166       1.0000         .10000E-03   10000.    
     5 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.118       1.0000         .10000E-03   10000.    
     7 'norm      '    8.2441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.0863       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.189       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1970       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5866       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.345       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.5229       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .53345       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.

 FCN=   5871.673     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1573 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.877        34.921         .0000        .30315E-03
   2  Prefactor     .10000E-03    1.7966         .0000    ** at limit **
   3  Prefactor     .10000E-03    10.966         .0000    ** at limit **
   4  Prefactor     21.167        13.286         .0000       -.84231E-03
   5  norm          .10000E-03    2.9156         .0000    ** at limit **
   6  norm          14.119        16.554         .0000       -.65532E-03
   7  norm          8.2466        5.5808         .0000        .21618E-03
   8  Prefactor     7.0867        6.8934         .0000        .19232E-04
   9  Prefactor     19.190        20.419         .0000       -.63816E-03
  10  norm          .10000E-03    3.4166         .0000    ** at limit **
  11  Prefactor     .10000E-03    22.056         .0000    ** at limit **
  12  Prefactor     2.1978        3.9795         .0000        .38115E-02
  13  Prefactor     1.5891        3.8426         .0000        .18410E-01
  14  Prefactor     10.345        10.754         .0000       -.89512E-04
  15  Prefactor     .10000E-03    8.7130         .0000    ** at limit **
  16  Normalizat    1.5226        .18468         .0000       -.11858E-04
  17  Prefactor     .53362        .14740         .0000        .21474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.8772
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.1672
  norm       = 0.0001
  norm       = 14.1193
  norm       = 8.24665
  Prefactor  = 7.08669
  Prefactor  = 19.19
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.1978
  Prefactor  = 1.58907
  Prefactor  = 10.345
  Prefactor  = 0.000100001
  Normalizat = 1.52264
  Prefactor  = 0.53362
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.673     FROM HESSE     STATUS=OK           221 CALLS     1794 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.877        34.884        .72105E-04   -1.4596    
   2  Prefactor     .10000E-03    1.7992        .10030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.167        13.333        .87061E-04   -1.4787    
   5  norm          .10000E-03    5.8305        .25315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.119        16.520        .10660E-03   -1.4956    
   7  norm          8.2466        5.5895        .13963E-03   -1.5134    
   8  Prefactor     7.0867        6.8937        .15069E-03   -1.5175    
   9  Prefactor     19.190        20.420        .91432E-04   -1.4832    
  10  norm          .10000E-03    3.4436        .13824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1978        3.9669        .19551E-03   -1.5411    
  13  Prefactor     1.5891        3.8139        .11229E-02   -1.5456    
  14  Prefactor     10.345        10.760        .12457E-03   -1.5065    
  15  Prefactor     .10000E-03    8.8497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.5226        .21525        .21357E-03   -.77144    
  17  Prefactor     .53362        .17081        .27953E-03   -1.1046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03987e-08
Minuit parameter uncertainties:
  1  34.9069
  2  6.42023e-06
  3  0.000206132
  4  13.3347
  5  2.95148e-05
  6  16.5249
  7  5.58985
  8  6.89443
  9  20.4278
  10  8.44707e-06
  11  0.000118648
  12  3.96733
  13  3.81447
  14  10.7622
  15  0.00016223
  16  0.215382
  17  0.17098
Done.

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

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.919e+01  2.043e+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:  5.336e-01  1.710e-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.523e+00  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.90
Ra Dec: 200.976 14.087
Photon Index (Fixed Index): 1.88 +/- 0.00
Photon Flux (Fixed Index): 1.40e-08 +/- 1.49e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/530800/likelihoodResults_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.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) = 5871.67011404
delta logL = 0.00325346657883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5871.66761836
delta logL = 0.00574914748086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.357       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9806       1.0000          .0000       10.000    
     3 'Normalizat'    1.5205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53436       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5871.668     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      286 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.354        28.231        .96135E-04    .34692E-03
   2  Index         1.9809        1.0663        .10324E-01    .77620E-04
   3  Normalizat    1.5203        .20945        .21370E-03   -.35938E-03
   4  Prefactor     .53452        .17035        .27930E-03   -.33756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3544
  Index      = 1.98087
  Normalizat = 1.52026
  Prefactor  = 0.534521
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.668     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.354        25.843        .19227E-04   -1.4875    
   2  Index         1.9809        .97734        .41295E-03   -.64829    
   3  Normalizat    1.5203        .20905        .42741E-04   -.77211    
   4  Prefactor     .53452        .17034        .11172E-04   -1.1042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.29572e-10
Minuit parameter uncertainties:
  1  25.8596
  2  0.987413
  3  0.20917
  4  0.1705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530800': 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) = 5871.66761786
delta logL = 0.0057496533982

Extracting fit parameters...

4FGL J1323.9+1405
   Spectrum: PowerLaw
327    Prefactor:  1.735e+01  2.586e+01  1.000e-04  1.000e+04 ( 1.000e-14)
328        Index:  1.981e+00  9.874e-01  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:  5.345e-01  1.705e-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.520e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.91
Ra Dec: 200.976 14.087
Photon Index (Free Index): 1.98 +/- 0.99
Photon Flux (Free Index): 1.61e-08 +/- 2.75e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.82e-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/530800/cmap_HighResolution_474940801_475200001_4FGL_J1323.9+1405_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', comment='SUCCESS', photon_flux='1.40e-08', energy_flux2='1.17e-05', photon_flux_error='1.49e-08', dlogl='5.75e-03', energy_flux='1.33e-05', photon_flux2='1.61e-08', job_status='DONE', time_completed='2021-09-07 15:15:51.815699', photon_index_error2='0.99', photon_index2='1.98', ts='2.90', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='6.15e-08', energy_flux_error2='1.82e-05', EG='1.52', time_epoch_completed='1631052951.82', return_code='0', job_id='530800', GAL2='0.53', EG2='1.52', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='2.75e-08', ts2='2.91', photon_index='1.88' WHERE bin_id='909' AND source_name='4FGL J1323.9+1405' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:15:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 530800: <4FGL_J1323.9+1405_daily_bin909> in cluster <slac> Done

Job <4FGL_J1323.9+1405_daily_bin909> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 15:05:41 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:05:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 15:05:49 2021
Terminated at Tue Sep  7 15:15:52 2021
Results reported at Tue Sep  7 15:15:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1323.9+1405_daily_bin909 200.976 14.0871 474940801 475200001 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 :                                   535.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   603 sec.
    Turnaround time :                            611 sec.

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

