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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1177
RA = 201.501, Dec = 35.1218
tmin = 544406401, tmax = 544665601
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='555508', job_status='RUN', time_executed='2021-09-07 16:09:36.938485', time_epoch_executed='1631056176.94' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555508

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555508/ft1_4FGL_J1326.0+3507_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555508/ft1_4FGL_J1326.0+3507_daily_bin1177.fits outfile=/scratch/kocevski/555508/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1177.fits ra=201.501 dec=35.1218 rad=12.0 tmin=544406401.0 tmax=544665601.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 7.67
user 7.35
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.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/555508/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1177.fits evtable="EVENTS" outfile="/scratch/kocevski/555508/ft1_filtered_4FGL_J1326.0+3507_daily_bin1177.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.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555508/ft1_filtered_4FGL_J1326.0+3507_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/555508/ltcube_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.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/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits
.....................!
real 7.80
user 7.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555508/ft1_filtered_4FGL_J1326.0+3507_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/555508/ltcube_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.fits outfile=/scratch/kocevski/555508/expmap_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.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/555508/ltcube_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.fits
.....................!
real 190.30
user 185.68
sys 4.22

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

Setting source of interest to:
4FGL J1326.0+3507 @ 201.501 35.1218

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555508/ft1_filtered_4FGL_J1326.0+3507_daily_bin1177.fits scfile=/scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits outfile=/scratch/kocevski/555508/cmap_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.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.501 yref=35.1218 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555508/ft1_filtered_4FGL_J1326.0+3507_daily_bin1177.fits scfile=/scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits outfile=/scratch/kocevski/555508/cmap_HighResolution_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.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.501 yref=35.1218 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.53
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555508/ft1_filtered_4FGL_J1326.0+3507_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555508/Model_4FGL_J1326.0+3507_daily_bin1177.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/555508/ft1_filtered_4FGL_J1326.0+3507_daily_bin1177.fits...................................!
real 16.15
user 14.90
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555508/ft1_filtered_4FGL_J1326.0+3507_daily_bin1177.fits', '/scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits', expMap='/scratch/kocevski/555508/expmap_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.fits', expCube='/scratch/kocevski/555508/ltcube_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555508/Model_4FGL_J1326.0+3507_daily_bin1177.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1326.0+3507'

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  5.851e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555508/ft1_filtered_4FGL_J1326.0+3507_daily_bin1177.fits
Spacecraft file(s): /scratch/kocevski/555508/ft2_4FGL_J1326.0+3507_daily_bin1177.fits
Exposure map: /scratch/kocevski/555508/expmap_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.fits
Exposure cube: /scratch/kocevski/555508/ltcube_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555508/Model_4FGL_J1326.0+3507_daily_bin1177.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 452.846566758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 450.81405173

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .97731E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3413       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .44343E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .29969E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5322       1.0000         .10000E-03   10000.    
     7 'norm      '    16.385       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22727E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .88779E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    6.6138       1.0000         .10000E-03   10000.    
    11 'norm      '    18.451       1.0000         .10000E-03   10000.    
    12 'norm      '    .54786E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    81.916       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10639E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22521E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .97946       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.823       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .96954E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.827       1.0000         .10000E-03   10000.    
    20 'norm      '    .29884       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10941E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    91.009       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .55984E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    .26097E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .20611E-02   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .21542E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    .35939E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .57661       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2581       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   450.7550     FROM MIGRAD    STATUS=CONVERGED    344 CALLS      565 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    391.28        .10329E-04** at limit **
   2  Prefactor     .10001E-03    223.39        .69768E-05** at limit **
   3  Prefactor     .10000E-03    91.932        .14707E-04** at limit **
   4  norm          .10000E-03    103.41       -.23042E-05** at limit **
   5  Prefactor     4.3085        1.0069         .0000         .0000    
   6  Prefactor     48.214        298.11       -.27378E-04   -.52700E-03
   7  norm          16.597        16.792       -.26109E-06   -.14360E-04
   8  Prefactor     .10000E-03    195.32       -.17355E-04** at limit **
   9  norm          .10000E-03    35.383        .10929E-05** at limit **
  10  norm          .25638E-02    501.15        .17532E-04** at limit **
  11  norm          14.648        33.315        .47713E-05    .80751E-04
  12  norm          .10000E-03    106.51        .43109E-05** at limit **
  13  norm          81.019        105.18        .14836E-05   -.21621E-03
  14  Prefactor     .10000E-03    13.042        .89862E-06** at limit **
  15  Prefactor     .10000E-03    51.623       -.35044E-05** at limit **
  16  Prefactor     .10000E-03    220.37        .94764E-05** at limit **
  17  Prefactor     24.614        67.519       -.85971E-05   -.81920E-04
  18  Prefactor     .10000E-03    60.540        .11803E-05** at limit **
  19  Prefactor     174.57        721.29       -.40275E-04   -.63642E-03
  20  norm          .10000E-03    107.52        .86839E-06** at limit **
  21  Prefactor     .10000E-03    20.806        .81018E-06** at limit **
  22  norm          83.630        121.77        .53234E-06   -.74877E-02
  23  Prefactor     .10000E-03    66.748        .16095E-05** at limit **
  24  norm          .10000E-03    9.8607        .83244E-08** at limit **
  25  Prefactor     .10000E-03    41.478        .34939E-06** at limit **
  26  Prefactor     .10000E-03    84.717        .20511E-05** at limit **
  27  norm          .10000E-03    48.613       -.26823E-06** at limit **
  28  Normalizat    .51496        .88720        .68283E-05   -.80074E-05
  29  Prefactor     1.2995        .96952        .35618E-05   -.98205E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.30848
  Prefactor  = 48.214
  norm       = 16.5971
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.00256382
  norm       = 14.6483
  norm       = 0.000100001
  norm       = 81.0189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.6139
  Prefactor  = 0.0001
  Prefactor  = 174.574
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 83.6301
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.514965
  Prefactor  = 1.29954
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   450.7550     FROM HESSE     STATUS=FAILED        27 CALLS      592 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    388.75        .95004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    220.48        .66986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    91.397        .92424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    100.29        .91719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     538.73        534.36         .0000       -1.5293    
   6  Prefactor     48.214        2.3765       -.27378E-04   -1.4318    
   7  norm          16.597        1.0069       -.26109E-06   -1.4893    
   8  Prefactor     .10000E-03    .20867       -.17355E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20915        .10929E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .25638E-02    .38044E-01    .17532E-04   -1.5718    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.648        .89151        .47713E-05   -1.4942    
  12  norm          .10000E-03    .21592        .43109E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          81.019        .99457        .14836E-05   -1.3905    
  14  Prefactor     .10000E-03    .20571        .89862E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .20862       -.35044E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .42855        .94764E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     24.614        1.0622       -.85971E-05   -1.4715    
  18  Prefactor     .10000E-03    .22547        .11803E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     174.57        3.9866       -.40275E-04   -1.3058    
  20  norm          .10000E-03    .27144        .86839E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .20571        .81018E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          83.630        .95897        .53234E-06   -1.3876    
  23  Prefactor     .10000E-03    .21619        .16095E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .28750        .83244E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .25507        .34939E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    .20840        .20511E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .21166       -.26823E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .51496        .86469        .68283E-05   -1.1173    
  29  Prefactor     1.2995        1.1018        .35618E-05   -.83321    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.8963e-11
Minuit parameter uncertainties:
  1  0.00194742
  2  0.00345884
  3  0.000109326
  4  0.000588204
  5  1.0069
  6  2.37653
  7  1.00691
  8  1.3625e-05
  9  5.26385e-07
  10  0.0193631
  11  0.89151
  12  2.42325e-05
  13  0.994573
  14  4.34531e-07
  15  1.89711e-06
  16  2.50963e-05
  17  1.06215
  18  5.10422e-06
  19  3.98662
  20  4.68248e-06
  21  2.44033e-06
  22  0.958974
  23  3.6134e-06
  24  6.31411e-09
  25  1.4853e-06
  26  3.92841e-06
  27  3.45509e-07
  28  0.888936
  29  1.1225
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 450.754959649

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.510e-05  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.152e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.300e+00  1.123e+00  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  5.150e-01  8.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 201.501 35.122
Photon Flux Upper Limit: 5.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.18e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555508/likelihoodResults_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.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) = 450.75497613
delta logL = -1.64804782798e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 450.754972303
delta logL = -1.26534939682e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57542E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1446       1.0000          .0000       10.000    
     3 'Normalizat'    .51504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2995       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   450.7550     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      207 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    310.02        .95011E-02** at limit **
   2  Index         2.1279        5.3367        .50000        .11028E-05
   3  Normalizat    .51497        .19083E-01    .77878E-01    .28578E-05
   4  Prefactor     1.2995        .21351E-01    .56811E-01    .33991E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.12792
  Normalizat = 0.514965
  Prefactor  = 1.29954
 **********
 **   18 **HESSE 
 **********

 FCN=   450.7550     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1471.8        .19002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1279        8.9344        .50000       -.61189    
   3  Normalizat    .51497        .42559E-01    .34493E-03   -1.1173    
   4  Prefactor     1.2995        .47728E-01    .25118E-03   -.83321    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.68691e-08
Minuit parameter uncertainties:
  1  0.00204508
  2  1045.57
  3  0.0425617
  4  0.04773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555508': 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): 102
logL (Free Index) = 450.754959643
delta logL = 6.5517724579e-09

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  2.045e-03  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.128e+00  1.046e+03  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  1.846e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
603    Prefactor:  1.300e+00  4.773e-02  0.000e+00  1.000e+01 ( 1.000e+00)
604        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
605        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
602   Normalization:  5.150e-01  4.256e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 201.501 35.122

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/555508/cmap_HighResolution_544406401_544665601_4FGL_J1326.0+3507_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.18e-02', job_status='DONE', photon_flux_upper_limit='5.50e-07', time_completed='2021-09-07 16:15:22.910450', job_id='555508', GAL2='1.30', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1631056522.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.30', dlogl='6.55e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1177' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:15:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 555508: <4FGL_J1326.0+3507_daily_bin1177> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1177> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:53 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:07:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 16:07:04 2021
Terminated at Tue Sep  7 16:15:23 2021
Results reported at Tue Sep  7 16:15:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1177 201.501 35.1218 544406401 544665601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1326.0+3507 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   343.54 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   499 sec.
    Turnaround time :                            570 sec.

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

