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


Performing analysis on: 4FGL_J1326.0+3507_daily_bin1081
RA = 201.501, Dec = 35.1218
tmin = 519523201, tmax = 519782401
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='555348', job_status='RUN', time_executed='2021-09-07 16:06:30.245564', time_epoch_executed='1631055990.25' WHERE source_name='4FGL J1326.0+3507' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555348

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555348/ft1_4FGL_J1326.0+3507_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555348/ft2_4FGL_J1326.0+3507_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555348/ft1_4FGL_J1326.0+3507_daily_bin1081.fits outfile=/scratch/kocevski/555348/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1081.fits ra=201.501 dec=35.1218 rad=12.0 tmin=519523201.0 tmax=519782401.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 2.98
user 2.73
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555348/ft2_4FGL_J1326.0+3507_daily_bin1081.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/555348/ft1_filteredMKT_4FGL_J1326.0+3507_daily_bin1081.fits evtable="EVENTS" outfile="/scratch/kocevski/555348/ft1_filtered_4FGL_J1326.0+3507_daily_bin1081.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555348/ft1_filtered_4FGL_J1326.0+3507_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/555348/ft2_4FGL_J1326.0+3507_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/555348/ltcube_519523201_519782401_4FGL_J1326.0+3507_daily_bin1081.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/555348/ft2_4FGL_J1326.0+3507_daily_bin1081.fits
.....................!
real 13.29
user 12.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555348/ft1_filtered_4FGL_J1326.0+3507_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/555348/ft2_4FGL_J1326.0+3507_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/555348/ltcube_519523201_519782401_4FGL_J1326.0+3507_daily_bin1081.fits outfile=/scratch/kocevski/555348/expmap_519523201_519782401_4FGL_J1326.0+3507_daily_bin1081.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/555348/ltcube_519523201_519782401_4FGL_J1326.0+3507_daily_bin1081.fits
.....................!
real 193.46
user 187.85
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 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/555348/ft1_filtered_4FGL_J1326.0+3507_daily_bin1081.fits scfile=/scratch/kocevski/555348/ft2_4FGL_J1326.0+3507_daily_bin1081.fits outfile=/scratch/kocevski/555348/cmap_519523201_519782401_4FGL_J1326.0+3507_daily_bin1081.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555348/ft1_filtered_4FGL_J1326.0+3507_daily_bin1081.fits scfile=/scratch/kocevski/555348/ft2_4FGL_J1326.0+3507_daily_bin1081.fits outfile=/scratch/kocevski/555348/cmap_HighResolution_519523201_519782401_4FGL_J1326.0+3507_daily_bin1081.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    81.021       1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.157       1.0000         .10000E-03   10000.    
     7 'norm      '    7.2957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7729       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    46.100       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36631E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    132.75       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    77.932       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.585       1.0000         .10000E-03   10000.    
    20 'norm      '    8.5068       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0903       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .79175       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4950.423     FROM MIGRAD    STATUS=CONVERGED   1250 CALLS     4336 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3597        .15908E-02** at limit **
   2  Prefactor     .10000E-03    25.808        .18142E-02** at limit **
   3  Prefactor     .10000E-03    2.5218        .10882E-02** at limit **
   4  norm          .10000E-03    2.9591        .11758E-02** at limit **
   5  Prefactor     80.995        74.850        .44621E-04   -.20943E-04
   6  Prefactor     52.177        29.553        .55534E-04   -.21982E-03
   7  norm          7.2955        5.3729        .13535E-03   -.23015E-04
   8  Prefactor     4.7725        13.158        .18416E-03   -.81116E-04
   9  norm          .10000E-03    2.1921        .10149E-02** at limit **
  10  norm          .10000E-03    25.206        .18142E-02** at limit **
  11  norm          .10000E-03    1.8197        .92052E-03** at limit **
  12  norm          .10000E-03    2.1333        .10027E-02** at limit **
  13  norm          46.102        29.089        .59053E-04   -.24257E-05
  14  Prefactor     .10000E-03    3.8243        .26257E-02** at limit **
  15  Prefactor     .10000E-03    111.45        .42870E-02** at limit **
  16  Prefactor     132.80        73.351        .17475E-03    .19322E-04
  17  Prefactor     .10000E-03    6.5207        .17533E-02** at limit **
  18  Prefactor     77.931        32.672        .45490E-04    .26092E-04
  19  Prefactor     32.601        61.061        .70196E-04   -.61543E-05
  20  norm          8.5067        2.2970        .53159E-04   -.42344E-04
  21  Prefactor     .10000E-03    .93180        .66269E-03** at limit **
  22  norm          .10000E-03    16.414        .18142E-02** at limit **
  23  Prefactor     .10000E-03    9.4113        .18142E-02** at limit **
  24  norm          .10000E-03    1.4394        .82058E-03** at limit **
  25  Prefactor     .10000E-03    3.6650        .13151E-02** at limit **
  26  Prefactor     .10000E-03    5.9519        .16758E-02** at limit **
  27  norm          .10000E-03    4.9382        .15270E-02** at limit **
  28  Normalizat    1.0903        .22382        .21758E-03   -.26066E-03
  29  Prefactor     .79189        .25886        .30903E-03   -.59781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 80.9946
  Prefactor  = 52.1768
  norm       = 7.29553
  Prefactor  = 4.77252
  norm       = 0.0001
  norm       = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 46.1019
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 132.801
  Prefactor  = 0.0001
  Prefactor  = 77.9314
  Prefactor  = 32.6011
  norm       = 8.50669
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09029
  Prefactor  = 0.791891
 **********
 **   18 **HESSE 
 **********

 FCN=   4950.423     FROM HESSE     STATUS=OK           523 CALLS     4859 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3598        .31815E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5220        .21763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.9594        .23515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     80.995        74.844        .89241E-05   -1.3906    
   6  Prefactor     52.177        29.549        .11107E-04   -1.4262    
   7  norm          7.2955        5.3729        .54139E-05   -1.5168    
   8  Prefactor     4.7725        13.157        .73665E-05   -1.5271    
   9  norm          .10000E-03    2.1922        .20298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    25.217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8199        .18410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.1333        .20054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          46.102        29.089        .11811E-04   -1.4349    
  14  Prefactor     .10000E-03    3.8363        .52514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    113.61        .85740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     132.80        73.262        .69901E-05   -1.3398    
  17  Prefactor     .10000E-03    6.5210        .35066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     77.931        32.671        .90979E-05   -1.3940    
  19  Prefactor     32.601        61.094        .28078E-05   -1.4565    
  20  norm          8.5067        2.2970        .21264E-05   -1.5125    
  21  Prefactor     .10000E-03    .93181        .13254E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    16.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.4123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.4395        .16412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.6651        .26302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.9520        .33516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.9382        .30541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0903        .22397        .43516E-04   -.90064    
  29  Prefactor     .79189        .25908        .12361E-04   -1.0003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23259e-10
Minuit parameter uncertainties:
  1  7.87489e-06
  2  6.50675e-07
  3  1.8485e-05
  4  1.58492e-05
  5  74.9309
  6  29.5571
  7  5.37325
  8  13.165
  9  3.62523e-07
  10  0.000596308
  11  3.22592e-06
  12  2.27432e-06
  13  29.0978
  14  9.83655e-05
  15  0.00085096
  16  73.3121
  17  2.574e-05
  18  32.679
  19  61.2118
  20  2.29699
  21  4.48644e-06
  22  0.000186334
  23  2.31417e-05
  24  8.74106e-06
  25  8.06136e-06
  26  1.40954e-05
  27  1.13416e-07
  28  0.224169
  29  0.259482
Done.

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

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  1.328e+02  7.331e+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:  7.919e-01  2.595e-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.090e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.21
Ra Dec: 201.501 35.122
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.12e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 3.01e-05 +/- 1.66e-05

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) = 4950.23652507
delta logL = 0.186768039802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4950.23167066
delta logL = 0.191622447886

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4950.232     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      289 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.399        94.873        .21137E-03    .66639E-03
   2  Index         2.5032        .62972        .35874E-02    .64047E-03
   3  Normalizat    1.0507        .22166        .22093E-03    .12408E-02
   4  Prefactor     .82142        .26301        .30389E-03    .14396E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.3993
  Index      = 2.50324
  Normalizat = 1.05071
  Prefactor  = 0.821423
 **********
 **   18 **HESSE 
 **********

 FCN=   4950.232     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.399        82.668        .42275E-04   -1.3804    
   2  Index         2.5032        .54820        .14350E-03   -.52285    
   3  Normalizat    1.0507        .21985        .44187E-04   -.91350    
   4  Prefactor     .82142        .26212        .60778E-04   -.98943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79852e-09
Minuit parameter uncertainties:
  1  82.7734
  2  0.549669
  3  0.220041
  4  0.262515
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555348': 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) = 4950.23166788
delta logL = 0.191625230735

Extracting fit parameters...

4FGL J1326.0+3507
   Spectrum: PowerLaw
319    Prefactor:  9.040e+01  8.277e+01  1.000e-04  1.000e+04 ( 1.000e-14)
320        Index:  2.503e+00  5.497e-01  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.214e-01  2.625e-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.051e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.59
Ra Dec: 201.501 35.122
Photon Index (Free Index): 2.50 +/- 0.55
Photon Flux (Free Index): 8.90e-08 +/- 5.89e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.29e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/555348/cmap_HighResolution_519523201_519782401_4FGL_J1326.0+3507_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.12e-08', energy_flux2='2.57e-05', photon_flux_error='3.37e-08', dlogl='1.92e-01', energy_flux='3.01e-05', photon_flux2='8.90e-08', job_status='DONE', time_completed='2021-09-07 16:18:12.736675', photon_index_error2='0.55', photon_index2='2.50', ts='12.21', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.29e-05', EG='1.09', time_epoch_completed='1631056692.74', return_code='0', job_id='555348', GAL2='0.82', EG2='1.05', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='5.89e-08', ts2='12.59', photon_index='2.15' WHERE bin_id='1081' AND source_name='4FGL J1326.0+3507' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 16:18:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 555348: <4FGL_J1326.0+3507_daily_bin1081> in cluster <slac> Done

Job <4FGL_J1326.0+3507_daily_bin1081> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 16:05:38 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 16:06:17 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:06:17 2021
Terminated at Tue Sep  7 16:18:13 2021
Results reported at Tue Sep  7 16:18:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1326.0+3507_daily_bin1081 201.501 35.1218 519523201 519782401 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 :                                   702.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            755 sec.

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

