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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1002
RA = 201.501, Dec = 35.1218
tmin = 499046401, tmax = 499305601
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='555220', job_status='RUN', time_executed='2021-09-07 16:05:55.486174', time_epoch_executed='1631055955.49' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555220

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555220/ft1_4FGL_J1326.0+3507_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555220/ft2_4FGL_J1326.0+3507_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555220/ft1_4FGL_J1326.0+3507_daily_bin1002.fits outfile=/scratch/kocevski/555220/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1002.fits ra=201.501 dec=35.1218 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.39
user 4.13
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555220/ft1_filtered_4FGL_J1326.0+3507_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/555220/ft2_4FGL_J1326.0+3507_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/555220/ltcube_499046401_499305601_4FGL_J1326.0+3507_daily_bin1002.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/555220/ft2_4FGL_J1326.0+3507_daily_bin1002.fits
.....................!
real 16.97
user 16.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555220/ft1_filtered_4FGL_J1326.0+3507_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/555220/ft2_4FGL_J1326.0+3507_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/555220/ltcube_499046401_499305601_4FGL_J1326.0+3507_daily_bin1002.fits outfile=/scratch/kocevski/555220/expmap_499046401_499305601_4FGL_J1326.0+3507_daily_bin1002.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/555220/ltcube_499046401_499305601_4FGL_J1326.0+3507_daily_bin1002.fits
.....................!
real 191.68
user 186.94
sys 4.08

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/555220/ft1_filtered_4FGL_J1326.0+3507_daily_bin1002.fits scfile=/scratch/kocevski/555220/ft2_4FGL_J1326.0+3507_daily_bin1002.fits outfile=/scratch/kocevski/555220/cmap_499046401_499305601_4FGL_J1326.0+3507_daily_bin1002.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555220/ft1_filtered_4FGL_J1326.0+3507_daily_bin1002.fits scfile=/scratch/kocevski/555220/ft2_4FGL_J1326.0+3507_daily_bin1002.fits outfile=/scratch/kocevski/555220/cmap_HighResolution_499046401_499305601_4FGL_J1326.0+3507_daily_bin1002.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.885       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.036       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12844E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10330E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.638       1.0000         .10000E-03   10000.    
     7 'norm      '    1.9821       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.939       1.0000         .10000E-03   10000.    
     9 'norm      '    .10382E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.0372       1.0000         .10000E-03   10000.    
    11 'norm      '    .10332E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .45069       1.0000         .10000E-03   10000.    
    13 'norm      '    20.014       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .61869       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.9741       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.091       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.9944       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.230       1.0000         .10000E-03   10000.    
    20 'norm      '    7.5908       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4105       1.0000         .10000E-03   10000.    
    22 'norm      '    16.142       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.948       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.9166       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85118       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99856       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5499.975     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3786 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.888        29.383         .0000       -.20525E-02
   2  Prefactor     36.033        59.215         .0000        .18281E-02
   3  Prefactor     .10271E-03    8.2346         .0000    ** at limit **
   4  norm          .10012E-03    5.0002         .0000    ** at limit **
   5  Prefactor     .10000E-03    17.746         .0000    ** at limit **
   6  Prefactor     16.635        32.267         .0000        .23953E-03
   7  norm          1.9820        2.3090         .0000       -.11406E-03
   8  Prefactor     14.945        21.988         .0000       -.23266E-02
   9  norm          .10010E-03    9.7533         .0000    ** at limit **
  10  norm          6.0359        10.923         .0000        .15206E-02
  11  norm          .10000E-03    2.2205         .0000    ** at limit **
  12  norm          .45364        8.7972         .0000        .37866E-01
  13  norm          20.013        21.926         .0000        .11547E-03
  14  Prefactor     .62103        4.0982         .0000        .14332E-02
  15  Prefactor     .10000E-03    6.5065         .0000    ** at limit **
  16  Prefactor     9.9731        71.120         .0000        .51919E-03
  17  Prefactor     20.097        19.480         .0000       -.55057E-03
  18  Prefactor     9.9945        26.596         .0000        .48028E-03
  19  Prefactor     43.229        93.654         .0000        .99602E-03
  20  norm          7.5910        2.2130         .0000        .87642E-04
  21  Prefactor     5.4110        4.1091         .0000        .21984E-02
  22  norm          16.143        13.693         .0000        .28579E-04
  23  Prefactor     .10002E-03    23.232         .0000    ** at limit **
  24  norm          .10000E-03    1.7550         .0000    ** at limit **
  25  Prefactor     13.954        18.274         .0000       -.15068E-02
  26  Prefactor     .10277E-03    63.282         .0000    ** at limit **
  27  norm          7.9139        15.777         .0000        .10125E-02
  28  Normalizat    .85092        .19236         .0000        .47426E-04
  29  Prefactor     .99891        .21650         .0000        .61006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8879
  Prefactor  = 36.0332
  Prefactor  = 0.000102713
  norm       = 0.000100124
  Prefactor  = 0.000100002
  Prefactor  = 16.6349
  norm       = 1.98203
  Prefactor  = 14.9447
  norm       = 0.000100097
  norm       = 6.03593
  norm       = 0.0001
  norm       = 0.453637
  norm       = 20.0135
  Prefactor  = 0.62103
  Prefactor  = 0.0001
  Prefactor  = 9.97307
  Prefactor  = 20.0973
  Prefactor  = 9.9945
  Prefactor  = 43.2293
  norm       = 7.59098
  Prefactor  = 5.41101
  norm       = 16.1433
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 13.9541
  Prefactor  = 0.000102771
  norm       = 7.91388
  Normalizat = 0.850918
  Prefactor  = 0.998909
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.975     FROM HESSE     STATUS=OK           553 CALLS     4339 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.888        28.980        .65990E-04   -1.4493    
   2  Prefactor     36.033        58.579        .66760E-04   -1.4507    
   3  Prefactor     .10271E-03    53.431        .35772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10012E-03    10.585        .28585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.635        29.041        .98190E-04   -1.4892    
   7  norm          1.9820        2.3087        .11869E-03   -1.5426    
   8  Prefactor     14.945        19.630        .10363E-03   -1.4935    
   9  norm          .10010E-03    10.012        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.0359        10.925        .81706E-03   -1.5217    
  11  norm          .10000E-03    2.9645        .18932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .45364        7.2175        .18656E-02   -1.5573    
  13  norm          20.013        21.926        .89529E-04   -1.4813    
  14  Prefactor     .62103        6.5759        .23333E-02   -1.5550    
  15  Prefactor     .10000E-03    6.5115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.9731        66.537        .12688E-03   -1.5076    
  17  Prefactor     20.097        19.417        .89358E-04   -1.4811    
  18  Prefactor     9.9945        26.519        .12675E-03   -1.5076    
  19  Prefactor     43.229        94.699        .60973E-04   -1.4392    
  20  norm          7.5910        2.2149        .56738E-04   -1.5157    
  21  Prefactor     5.4110        4.1098        .12424E-03   -1.5243    
  22  norm          16.143        13.691        .99689E-04   -1.4904    
  23  Prefactor     .10002E-03    23.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7740        .95890E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.954        18.203        .10725E-03   -1.4961    
  26  Prefactor     .10277E-03    63.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.9139        15.820        .14251E-03   -1.5145    
  28  Normalizat    .85092        .22880        .24506E-03   -.98207    
  29  Prefactor     .99891        .25593        .27562E-03   -.92766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14768e-07
Minuit parameter uncertainties:
  1  28.9914
  2  58.6727
  3  0.0240994
  4  0.00229295
  5  0.000366092
  6  29.0655
  7  2.30881
  8  19.6382
  9  0.0019676
  10  10.9288
  11  6.1885e-06
  12  3.61902
  13  21.935
  14  4.04195
  15  9.74056e-05
  16  51.6028
  17  19.4232
  18  26.5502
  19  95.031
  20  2.21491
  21  4.11004
  22  13.6938
  23  0.0012434
  24  2.1599e-06
  25  18.2099
  26  0.0266534
  27  15.8281
  28  0.229058
  29  0.256237
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  9.973e+00  5.160e+01  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:  9.989e-01  2.562e-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:  8.509e-01  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 201.501 35.122
Photon Flux Upper Limit: 6.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555220/likelihoodResults_499046401_499305601_4FGL_J1326.0+3507_daily_bin1002.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) = 5499.84513451
delta logL = 0.129464699979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5499.83336607
delta logL = 0.14123313321

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2140       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9971       1.0000          .0000       10.000    
     3 'Normalizat'    .83480       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0088       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   5499.833     FROM MIGRAD    STATUS=FAILED       106 CALLS      282 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1746        294.64        .80519E-03   -.12383E-04
   2  Index         3.0001        6.4846        .86067E-02    .40862E-03
   3  Normalizat    .83491        .21168        .24717E-03   -.61771E-04
   4  Prefactor     1.0087        .25581        .27439E-03    .13258E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5499.833     FROM SIMPLEX   STATUS=UNCHANGED     88 CALLS      370 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1746        294.64        .58764E-03   -1.5211    
   2  Index         3.0001        6.4846        .19461E-02   -.41149    
   3  Normalizat    .83491        .21168        .12425E-03   -.98786    
   4  Prefactor     1.0087        .25581        .88702E-04   -.92440    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5499.833     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      402 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.1746        24.557        .32208E-04   -.25062E-04
   2  Index         3.0001        1.6332        .17213E-02   -.20078E-05
   3  Normalizat    .83491        .20932        .98869E-05   -.51284E-04
   4  Prefactor     1.0087        .25133        .10976E-04    .41433E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.17459
  Index      = 3.00013
  Normalizat = 0.834913
  Prefactor  = 1.00869
 **********
 **   18 **HESSE 
 **********

 FCN=   5499.833     FROM HESSE     STATUS=OK            23 CALLS      425 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.1746        22.834        .12883E-05   -1.5211    
   2  Index         3.0001        1.5230        .68854E-04   -.41149    
   3  Normalizat    .83491        .20947        .19774E-05   -.98786    
   4  Prefactor     1.0087        .25149        .21951E-05   -.92440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71434e-11
Minuit parameter uncertainties:
  1  22.8667
  2  1.55248
  3  0.209674
  4  0.251786
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555220': 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) = 5499.83336392
delta logL = 0.141235282327

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  6.175e+00  2.287e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  3.000e+00  1.552e+00  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.009e+00  2.518e-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:  8.349e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/555220/cmap_HighResolution_499046401_499305601_4FGL_J1326.0+3507_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.23e-03', job_status='DONE', photon_flux_upper_limit='6.89e-08', time_completed='2021-09-07 16:19:01.517503', job_id='555220', GAL2='1.01', fit_tolerance='1e-08', EG2='0.83', EG='0.85', time_epoch_completed='1631056741.52', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.41e-01', ts2='0.35', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1002' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:19:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 555220: <4FGL_J1326.0+3507_daily_bin1002> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1002> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:27 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:05:40 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:05:40 2021
Terminated at Tue Sep  7 16:19:02 2021
Results reported at Tue Sep  7 16:19:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1002 201.501 35.1218 499046401 499305601 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 :                                   784.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            815 sec.

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

