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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin94
RA = 201.501, Dec = 35.1218
tmin = 263692801, tmax = 263952001
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='549102', job_status='RUN', time_executed='2021-09-07 15:47:12.691016', time_epoch_executed='1631054832.69' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549102

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549102/ft1_4FGL_J1326.0+3507_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549102/ft2_4FGL_J1326.0+3507_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549102/ft1_4FGL_J1326.0+3507_daily_bin94.fits outfile=/scratch/kocevski/549102/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin94.fits ra=201.501 dec=35.1218 rad=12.0 tmin=263692801.0 tmax=263952001.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.56
user 1.29
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549102/ft2_4FGL_J1326.0+3507_daily_bin94.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/549102/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin94.fits evtable="EVENTS" outfile="/scratch/kocevski/549102/ft1_filtered_4FGL_J1326.0+3507_daily_bin94.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.45
user 0.28
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549102/ft1_filtered_4FGL_J1326.0+3507_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/549102/ft2_4FGL_J1326.0+3507_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/549102/ltcube_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.fits outfile=/scratch/kocevski/549102/expmap_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.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/549102/ltcube_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.fits
.....................!
real 160.00
user 153.43
sys 4.88

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/549102/ft1_filtered_4FGL_J1326.0+3507_daily_bin94.fits scfile=/scratch/kocevski/549102/ft2_4FGL_J1326.0+3507_daily_bin94.fits outfile=/scratch/kocevski/549102/cmap_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.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.51
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549102/ft1_filtered_4FGL_J1326.0+3507_daily_bin94.fits scfile=/scratch/kocevski/549102/ft2_4FGL_J1326.0+3507_daily_bin94.fits outfile=/scratch/kocevski/549102/cmap_HighResolution_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.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.49
user 0.32
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/549102/ft1_filtered_4FGL_J1326.0+3507_daily_bin94.fits', '/scratch/kocevski/549102/ft2_4FGL_J1326.0+3507_daily_bin94.fits', expMap='/scratch/kocevski/549102/expmap_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.fits', expCube='/scratch/kocevski/549102/ltcube_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/549102/Model_4FGL_J1326.0+3507_daily_bin94.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/549102/ft1_filtered_4FGL_J1326.0+3507_daily_bin94.fits
Spacecraft file(s): /scratch/kocevski/549102/ft2_4FGL_J1326.0+3507_daily_bin94.fits
Exposure map: /scratch/kocevski/549102/expmap_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.fits
Exposure cube: /scratch/kocevski/549102/ltcube_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/549102/Model_4FGL_J1326.0+3507_daily_bin94.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) = 5847.0039705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5846.99939382

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15685E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.226       1.0000         .10000E-03   10000.    
     7 'norm      '    8.8302       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    36.242       1.0000         .10000E-03   10000.    
    10 'norm      '    8.4356       1.0000         .10000E-03   10000.    
    11 'norm      '    .96652E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    2.7939       1.0000         .10000E-03   10000.    
    13 'norm      '    28.114       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5947       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3519       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6392       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.7855       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.0492       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.2921       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.356       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1100       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89563       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5846.999     FROM MIGRAD    STATUS=CONVERGED    782 CALLS     4694 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.044        15.858        .15220E-05   -.10437E-03
   2  Prefactor     .10000E-03    20.504       -.42032E-06** at limit **
   3  Prefactor     .10000E-03    1.9564        .44238E-07** at limit **
   4  norm          .10000E-03    1.6285        .20163E-07** at limit **
   5  Prefactor     .10000E-03    172.82        .49582E-05** at limit **
   6  Prefactor     19.247        18.812        .30107E-06   -.73561E-04
   7  norm          8.8308        4.8659       -.11573E-07   -.45094E-04
   8  Prefactor     .10000E-03    5.1341        .13364E-06** at limit **
   9  norm          36.243        9.2106        .12153E-06   -.72209E-04
  10  norm          8.4321        8.8123        .41939E-06   -.13836E-04
  11  norm          .10013E-03    1.9544        .45915E-06** at limit **
  12  norm          2.9689        5.3133       -.18125E-05   -.58157E-03
  13  norm          28.115        21.938        .62177E-06   -.39128E-04
  14  Prefactor     1.5944        3.1464       -.12326E-05   -.93700E-03
  15  Prefactor     6.3597        13.893        .40360E-05   -.22081E-03
  16  Prefactor     .10000E-03    33.022       -.17405E-06** at limit **
  17  Prefactor     5.6440        14.500        .74953E-05   -.28701E-03
  18  Prefactor     .10000E-03    8.3564       -.82639E-08** at limit **
  19  Prefactor     .10000E-03    17.286       -.23326E-07** at limit **
  20  norm          1.7852        1.5634        .20752E-07   -.39585E-03
  21  Prefactor     .10000E-03    1.4274       -.21820E-07** at limit **
  22  norm          2.0472        31.074       -.40057E-05   -.63774E-04
  23  Prefactor     .10000E-03    5.4858       -.20285E-06** at limit **
  24  norm          2.2920        3.3573        .54083E-07   -.36723E-03
  25  Prefactor     10.359        12.705       -.24075E-05    .13261E-03
  26  Prefactor     .10000E-03    10.988        .27276E-06** at limit **
  27  norm          .10000E-03    6.1103       -.94408E-07** at limit **
  28  Normalizat    1.1105        .17180       -.65099E-06   -.48379E-04
  29  Prefactor     .89508        .20811        .94507E-07   -.82556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.2469
  norm       = 8.83084
  Prefactor  = 0.0001
  norm       = 36.2429
  norm       = 8.43213
  norm       = 0.00010013
  norm       = 2.96889
  norm       = 28.1155
  Prefactor  = 1.59444
  Prefactor  = 6.35972
  Prefactor  = 0.0001
  Prefactor  = 5.64403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.78521
  Prefactor  = 0.0001
  norm       = 2.04723
  Prefactor  = 0.0001
  norm       = 2.292
  Prefactor  = 10.3591
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.11048
  Prefactor  = 0.895077
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.999     FROM HESSE     STATUS=OK           559 CALLS     5253 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.044        15.818        .91779E-04   -1.4835    
   2  Prefactor     .10000E-03    20.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9623        .10443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6387        .95245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    174.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.247        18.784        .91344E-04   -1.4830    
   7  norm          8.8308        4.8656        .12143E-03   -1.5114    
   8  Prefactor     .10000E-03    5.1382        .16919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          36.243        9.1892        .66571E-04   -1.4503    
  10  norm          8.4321        8.8132        .13802E-03   -1.5127    
  11  norm          .10013E-03    5.7322        .33092E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9689        6.5277        .20940E-03   -1.5363    
  13  norm          28.115        21.928        .75558E-04   -1.4647    
  14  Prefactor     1.5944        3.1603        .16865E-03   -1.5455    
  15  Prefactor     6.3597        13.708        .15926E-03   -1.5204    
  16  Prefactor     .10000E-03    33.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.6440        14.002        .16916E-03   -1.5233    
  18  Prefactor     .10000E-03    8.3667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.7852        1.5524        .85184E-04   -1.5441    
  21  Prefactor     .10000E-03    1.4387        .89188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.0472        31.748        .28879E-03   -1.5422    
  23  Prefactor     .10000E-03    5.4856        .17488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2920        3.3381        .16298E-03   -1.5405    
  25  Prefactor     10.359        12.622        .12451E-03   -1.5064    
  26  Prefactor     .10000E-03    11.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    6.1104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1105        .20213        .21856E-03   -.89416    
  29  Prefactor     .89508        .24442        .30046E-03   -.96313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51364e-09
Minuit parameter uncertainties:
  1  15.8211
  2  1.71543e-05
  3  2.63996e-06
  4  5.34405e-07
  5  0.000599131
  6  18.7897
  7  4.86578
  8  4.13837e-06
  9  9.18958
  10  8.81453
  11  0.0017294
  12  6.52924
  13  21.9339
  14  3.16062
  15  13.7144
  16  1.92326e-05
  17  14.0106
  18  3.95701e-05
  19  8.6293e-06
  20  1.55245
  21  2.61464e-06
  22  16.1337
  23  1.91991e-05
  24  3.33835
  25  12.625
  26  6.6298e-05
  27  1.77867e-05
  28  0.202276
  29  0.244716
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.923e-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:  8.951e-01  2.447e-01  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:  1.110e+00  2.023e-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.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549102/likelihoodResults_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.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) = 5846.99938548
delta logL = -0.000144030647789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5846.99924183
delta logL = -3.78165168513e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10555E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3325       1.0000          .0000       10.000    
     3 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89508       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=   5846.999     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      243 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.714        .90712E-02** at limit **
   2  Index         2.3033        7.9117        .50000        .82106E-05
   3  Normalizat    1.1105        .33858E-02    .37589E-01    .10136E-03
   4  Prefactor     .89508        .42484E-02    .67920E-01    .87145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.30331
  Normalizat = 1.11048
  Prefactor  = 0.895079
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.999     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      274 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3033        5.0822        .50000       -.56965    
   3  Normalizat    1.1105        .81027E-02    .21856E-03   -.89416    
   4  Prefactor     .89508        .10154E-01    .30046E-03   -.96313    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1103e-07
Minuit parameter uncertainties:
  1  0.00135111
  2  158.897
  3  0.00810274
  4  0.0101537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549102': 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) = 5846.99924167
delta logL = -2.19622961595e-07

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  1.351e-03  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.303e+00  1.589e+02  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:  8.951e-01  1.015e-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:  1.110e+00  8.103e-03  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/549102/cmap_HighResolution_263692801_263952001_4FGL_J1326.0+3507_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-07 15:59:45.831803', job_id='549102', GAL2='0.90', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631055585.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='94' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 15:59:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 549102: <4FGL_J1326.0+3507_daily_bin94> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin94> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 15:45:21 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 15:45:24 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:45:24 2021
Terminated at Tue Sep  7 15:59:46 2021
Results reported at Tue Sep  7 15:59:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin94 201.501 35.1218 263692801 263952001 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 :                                   747.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            865 sec.

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

