/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 230 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 = 7392
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1326.9+2210_daily_bin244
RA = 201.73, Dec = 22.1732
tmin = 302572801, tmax = 302832001
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='587307', job_status='RUN', time_executed='2021-09-07 18:19:37.291769', time_epoch_executed='1631063977.29' WHERE source_name='4FGL J1326.9+2210' and cadence='daily' and bin_id='244'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/587307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/587307/ft1_4FGL_J1326.9+2210_daily_bin244.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/587307/ft1_4FGL_J1326.9+2210_daily_bin244.fits outfile=/scratch/kocevski/587307/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin244.fits ra=201.73 dec=22.1732 rad=12.0 tmin=302572801.0 tmax=302832001.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.54
user 3.26
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.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/587307/ft1_filteredMKT_4FGL_J1326.9+2210_daily_bin244.fits evtable="EVENTS" outfile="/scratch/kocevski/587307/ft1_filtered_4FGL_J1326.9+2210_daily_bin244.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/587307/ft1_filtered_4FGL_J1326.9+2210_daily_bin244.fits" evtable="EVENTS" scfile=/scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits sctable="SC_DATA" outfile=/scratch/kocevski/587307/ltcube_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.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/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits
.....................!
real 15.80
user 15.12
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/587307/ft1_filtered_4FGL_J1326.9+2210_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits sctable="SC_DATA" expcube=/scratch/kocevski/587307/ltcube_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.fits outfile=/scratch/kocevski/587307/expmap_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.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/587307/ltcube_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.fits
.....................!
real 194.79
user 189.06
sys 5.06

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

Setting source of interest to:
4FGL J1326.9+2210 @ 201.73 22.1732

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/587307/ft1_filtered_4FGL_J1326.9+2210_daily_bin244.fits scfile=/scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits outfile=/scratch/kocevski/587307/cmap_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.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=201.73 yref=22.1732 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/587307/ft1_filtered_4FGL_J1326.9+2210_daily_bin244.fits scfile=/scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits outfile=/scratch/kocevski/587307/cmap_HighResolution_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.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=201.73 yref=22.1732 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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/587307/ft1_filtered_4FGL_J1326.9+2210_daily_bin244.fits evtable="EVENTS" scfile=/scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/587307/Model_4FGL_J1326.9+2210_daily_bin244.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/587307/ft1_filtered_4FGL_J1326.9+2210_daily_bin244.fits.....................!
real 55.10
user 53.75
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/587307/ft1_filtered_4FGL_J1326.9+2210_daily_bin244.fits', '/scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits', expMap='/scratch/kocevski/587307/expmap_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.fits', expCube='/scratch/kocevski/587307/ltcube_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/587307/Model_4FGL_J1326.9+2210_daily_bin244.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1326.9+2210'

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  7.707e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  1.183e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.855e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/587307/ft1_filtered_4FGL_J1326.9+2210_daily_bin244.fits
Spacecraft file(s): /scratch/kocevski/587307/ft2_4FGL_J1326.9+2210_daily_bin244.fits
Exposure map: /scratch/kocevski/587307/expmap_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.fits
Exposure cube: /scratch/kocevski/587307/ltcube_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/587307/Model_4FGL_J1326.9+2210_daily_bin244.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) = 6763.66256649

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4635       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3372       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0012       1.0000         .10000E-03   10000.    
     4 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20270E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.9140       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.862       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20799E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57335E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.2795       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.423       1.0000         .10000E-03   10000.    
    17 'Normalizat'    .85591       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.3515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6763.642     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     2040 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4647        6.9629       -.40584E-05   -.45010E-03
   2  Prefactor     4.3327        13.985        .55740E-05   -.87271E-04
   3  norm          2.0013        2.5584       -.91388E-07   -.23694E-03
   4  norm          .10000E-03    2.0617       -.18419E-06** at limit **
   5  norm          .10000E-03    3.5389        .31460E-06** at limit **
   6  norm          .10000E-03    10.268       -.14216E-08** at limit **
   7  Prefactor     .10000E-03    46.175       -.86831E-06** at limit **
   8  norm          9.9134        5.8518        .66561E-07   -.11925E-04
   9  Prefactor     .10000E-03    20.785        .64479E-06** at limit **
  10  norm          .10000E-03    4.2648        .39186E-06** at limit **
  11  Prefactor     35.817        22.644        .18948E-05    .38716E-04
  12  Prefactor     .10000E-03    24.772       -.16838E-05** at limit **
  13  Prefactor     .10002E-03    54.952       -.15254E-05** at limit **
  14  Prefactor     4.2809        4.7284       -.73699E-06   -.46843E-03
  15  Prefactor     .10000E-03    8.4439        .11046E-07** at limit **
  16  Prefactor     13.427        13.470       -.14700E-04   -.17976E-04
  17  Normalizat    .85618        .18700        .12528E-05    .10548E-03
  18  Prefactor     1.3512        .17536        .16710E-05    .36063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46469
  Prefactor  = 4.33265
  norm       = 2.00134
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.91337
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 35.8166
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 4.28092
  Prefactor  = 0.0001
  Prefactor  = 13.4267
  Normalizat = 0.856184
  Prefactor  = 1.35115
 **********
 **   18 **HESSE 
 **********

 FCN=   6763.642     FROM HESSE     STATUS=OK           252 CALLS     2292 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4647        7.0188        .26056E-03   -1.5394    
   2  Prefactor     4.3327        13.921        .19342E-03   -1.5292    
   3  norm          2.0013        2.5424        .14386E-03   -1.5425    
   4  norm          .10000E-03    2.0877        .11528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.5690        .15107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    47.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9134        5.8560        .12726E-03   -1.5078    
   9  Prefactor     .10000E-03    20.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.2925        .16575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.817        22.800        .66922E-04   -1.4510    
  12  Prefactor     .10000E-03    24.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10002E-03    48.286        .16304       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.2809        4.7393        .17890E-03   -1.5294    
  15  Prefactor     .10000E-03    8.4976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.427        13.498        .10933E-03   -1.4975    
  17  Normalizat    .85618        .22536        .28820E-03   -.98017    
  18  Prefactor     1.3512        .21195        .23022E-03   -.81798    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46406e-10
Minuit parameter uncertainties:
  1  7.02119
  2  13.9318
  3  2.54256
  4  1.04327e-05
  5  9.86268e-06
  6  1.0734e-05
  7  0.000357687
  8  5.85632
  9  3.61731e-05
  10  1.00422e-06
  11  22.8055
  12  0.000113384
  13  0.00177491
  14  4.73976
  15  2.72066e-05
  16  13.5007
  17  0.225612
  18  0.212088
Done.

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

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  1.000e-04  1.004e-06  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  1.183e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.855e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.351e+00  2.121e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  8.562e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 201.730 22.173
Photon Flux Upper Limit: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/587307/likelihoodResults_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.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): 102
logL (Free Index) = 6763.64267727
delta logL = -0.00110885467802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6763.64156833
delta logL = 8.69213181431e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3996       1.0000          .0000       5.0000    
     3 'Normalizat'    .85618       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5440E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6763.433     FROM MIGRAD    STATUS=FAILED       140 CALLS      288 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28590        31.353        .14882E-01    .22384E-02
   2  alpha         5.0000        2.5613        .16477    ** at limit **
   3  Normalizat    .80683        .29484        .28820E-02    .85869E-04
   4  Prefactor     1.3819        .10062        .23022E-03   -.68541E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6763.433     FROM SIMPLEX   STATUS=UNCHANGED    167 CALLS      455 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28590        31.353        .20651E-06    .22384E-02
   2  alpha         5.0000        2.5613        .77237E-02** at limit **
   3  Normalizat    .80683        .29484        .93482E-07    .85869E-04
   4  Prefactor     1.3819        .10062        .34833E-08   -.68541E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6763.433     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      485 TOTAL
                     EDM=   .92E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28590        .47040        .64863E-04   -.12795E-04
   2  alpha         5.0000        3.6099        .65910E-02** at limit **
   3  Normalizat    .80683        .22476        .57639E-03   -.40829E-05
   4  Prefactor     1.3819        .21385        .46045E-04   -.68640E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.285898
  alpha      = 5
  Normalizat = 0.806833
  Prefactor  = 1.38193
 **********
 **   18 **HESSE 
 **********

 FCN=   6763.433     FROM HESSE     STATUS=OK            23 CALLS      508 TOTAL
                     EDM=   .99E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28590        .47032        .25945E-05   -1.5601    
   2  alpha         5.0000        3.6099        .13182E-02    39.270    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .80683        .22492        .23056E-04   -.99816    
   4  Prefactor     1.3819        .21403        .92089E-05   -.80902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.85949e-14
Minuit parameter uncertainties:
  1  0.470321
  2  1.10755e-06
  3  0.225181
  4  0.214165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/587307': 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) = 6763.43326016
delta logL = 0.20830825378

Extracting fit parameters...

4FGL J1326.9+2210
   Spectrum: LogParabola
309         norm:  2.859e-01  4.703e-01  1.000e-04  1.000e+04 ( 1.000e-12)
310        alpha:  5.000e+00  1.108e-06  0.000e+00  5.000e+00 ( 1.000e+00)
311         beta:  1.183e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.855e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
541    Prefactor:  1.382e+00  2.142e-01  0.000e+00  1.000e+01 ( 1.000e+00)
542        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
543        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
540   Normalization:  8.068e-01  2.252e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 201.730 22.173

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/587307/cmap_HighResolution_302572801_302832001_4FGL_J1326.9+2210_daily_bin244.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.96e-05', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-09-07 18:29:55.251099', job_id='587307', GAL2='1.38', fit_tolerance='1e-08', EG2='0.81', EG='0.86', time_epoch_completed='1631064595.25', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.35', dlogl='2.08e-01', ts2='0.46', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='244' AND source_name='4FGL J1326.9+2210' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 18:29:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 587307: <4FGL_J1326.9+2210_daily_bin244> in cluster <slac> Done

Job <4FGL_J1326.9+2210_daily_bin244> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 18:15:21 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 18:15:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 18:15:33 2021
Terminated at Tue Sep  7 18:29:56 2021
Results reported at Tue Sep  7 18:29:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.9+2210_daily_bin244 201.73 22.1732 302572801 302832001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1326.9+2210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.50 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             256.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            875 sec.

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

