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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin2
RA = 207.715, Dec = 30.5588
tmin = 239846401, tmax = 240105601
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='574', job_status='RUN', time_executed='2021-09-08 14:36:55.429108', time_epoch_executed='1631137015.43' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='2'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/574

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/574/ft1_4FGL_J1350.8+3033_daily_bin2.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/574/ft1_4FGL_J1350.8+3033_daily_bin2.fits outfile=/scratch/kocevski/574/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin2.fits ra=207.715 dec=30.5588 rad=12.0 tmin=239846401.0 tmax=240105601.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.50
user 1.31
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.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/574/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin2.fits evtable="EVENTS" outfile="/scratch/kocevski/574/ft1_filtered_4FGL_J1350.8+3033_daily_bin2.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.64
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/574/ft1_filtered_4FGL_J1350.8+3033_daily_bin2.fits" evtable="EVENTS" scfile=/scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits sctable="SC_DATA" outfile=/scratch/kocevski/574/ltcube_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.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/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits
.....................!
real 17.65
user 17.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/574/ft1_filtered_4FGL_J1350.8+3033_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits sctable="SC_DATA" expcube=/scratch/kocevski/574/ltcube_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.fits outfile=/scratch/kocevski/574/expmap_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.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/574/ltcube_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.fits
.....................!
real 192.71
user 186.95
sys 4.53

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

Setting source of interest to:
4FGL J1350.8+3033 @ 207.715 30.5588

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/574/ft1_filtered_4FGL_J1350.8+3033_daily_bin2.fits scfile=/scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits outfile=/scratch/kocevski/574/cmap_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.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=207.715 yref=30.5588 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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/574/ft1_filtered_4FGL_J1350.8+3033_daily_bin2.fits scfile=/scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits outfile=/scratch/kocevski/574/cmap_HighResolution_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.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=207.715 yref=30.5588 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/574/ft1_filtered_4FGL_J1350.8+3033_daily_bin2.fits evtable="EVENTS" scfile=/scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/574/Model_4FGL_J1350.8+3033_daily_bin2.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/574/ft1_filtered_4FGL_J1350.8+3033_daily_bin2.fits.....................!
real 41.43
user 40.06
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/574/ft1_filtered_4FGL_J1350.8+3033_daily_bin2.fits', '/scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits', expMap='/scratch/kocevski/574/expmap_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.fits', expCube='/scratch/kocevski/574/ltcube_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/574/Model_4FGL_J1350.8+3033_daily_bin2.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1350.8+3033'

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/574/ft1_filtered_4FGL_J1350.8+3033_daily_bin2.fits
Spacecraft file(s): /scratch/kocevski/574/ft2_4FGL_J1350.8+3033_daily_bin2.fits
Exposure map: /scratch/kocevski/574/expmap_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.fits
Exposure cube: /scratch/kocevski/574/ltcube_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/574/Model_4FGL_J1350.8+3033_daily_bin2.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) = 4862.06632609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31971       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .21949       1.0000         .10000E-03   10000.    
     5 'norm      '    12.615       1.0000         .10000E-03   10000.    
     6 'norm      '    .12967E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.8763       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10623E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    11.565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .43305E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    64.969       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.244       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    10.032       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-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 'norm      '    1.1858       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    69.283       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0357       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78805       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4862.056     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3758 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31941        3.7666        .10771E-05   -.19449E-03
   2  Prefactor     .10000E-03    9.0792        .33963E-08** at limit **
   3  Prefactor     .10000E-03    11.007        .32939E-06** at limit **
   4  norm          .21804        3.7150        .77197E-06   -.16575E-03
   5  norm          12.626        5.5334       -.27864E-06   -.28067E-02
   6  norm          .10001E-03    11.161        .50015E-05** at limit **
   7  norm          .10000E-03    9.6939        .31868E-06** at limit **
   8  Prefactor     8.8735        4.4205       -.92167E-07   -.54233E-03
   9  Prefactor     .10000E-03    11.593        .75613E-06** at limit **
  10  norm          .10001E-03    7.2324       -.35563E-05** at limit **
  11  Prefactor     .10000E-03    44.751       -.14409E-06** at limit **
  12  norm          11.565        7.5335        .99453E-06    .12610E-02
  13  Prefactor     .10010E-03    11.600        .31071E-05** at limit **
  14  Prefactor     .10000E-03    18.040        .43237E-06** at limit **
  15  Prefactor     64.931        103.54       -.37007E-05   -.17340E-03
  16  Prefactor     19.241        5.7938       -.79895E-07   -.43695E-03
  17  Prefactor     .10000E-03    5.2665        .26857E-06** at limit **
  18  norm          .10000E-03    13.293       -.77587E-06** at limit **
  19  Prefactor     .10000E-03    5.6375       -.32500E-07** at limit **
  20  norm          10.031        4.9384       -.14510E-07   -.12721E-03
  21  Prefactor     .10000E-03    3.4620       -.48863E-08** at limit **
  22  Prefactor     .10000E-03    4.2382       -.11214E-07** at limit **
  23  Prefactor     .10000E-03    1.4098       -.51271E-07** at limit **
  24  norm          .10000E-03    5.1791       -.72349E-08** at limit **
  25  norm          1.1865        2.1397        .59285E-06    .61919E-03
  26  norm          .10000E-03    8.6416       -.25469E-06** at limit **
  27  Prefactor     69.262        58.091       -.11747E-05   -.23872E-03
  28  Normalizat    1.0363        .19816        .25905E-05   -.45505E-03
  29  Prefactor     .78735        .20282       -.40385E-05   -.39984E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.319413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.218041
  norm       = 12.626
  norm       = 0.000100015
  norm       = 0.0001
  Prefactor  = 8.87354
  Prefactor  = 0.0001
  norm       = 0.000100012
  Prefactor  = 0.0001
  norm       = 11.5649
  Prefactor  = 0.000100097
  Prefactor  = 0.0001
  Prefactor  = 64.9309
  Prefactor  = 19.2407
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 10.0312
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.18648
  norm       = 0.0001
  Prefactor  = 69.2619
  Normalizat = 1.03635
  Prefactor  = 0.787347
 **********
 **   18 **HESSE 
 **********

 FCN=   4862.056     FROM HESSE     STATUS=OK           545 CALLS     4303 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31941        8.1926        .25471E-02   -1.5595    
   2  Prefactor     .10000E-03    9.0852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .21804        10.578        .25504E-02   -1.5615    
   5  norm          12.626        4.9521        .91788E-04   -1.4997    
   6  norm          .10001E-03    19.215        .32763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.7224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.8735        4.4214        .96833E-04   -1.5112    
   9  Prefactor     .10000E-03    11.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    15.842        .28559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    44.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          11.565        7.7121        .58899E-03   -1.5028    
  13  Prefactor     .10010E-03    50.677        .40102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     64.931        106.11        .49789E-04   -1.4095    
  16  Prefactor     19.241        5.8023        .88210E-04   -1.4830    
  17  Prefactor     .10000E-03    5.3071        .15635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    13.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.6390        .16170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          10.031        4.9397        .10499E-03   -1.5074    
  21  Prefactor     .10000E-03    3.4638        .12671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.2401        .14020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.4226        .80816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.1830        .15498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.1865        2.1135        .13284E-03   -1.5490    
  26  norm          .10000E-03    8.9068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     69.262        58.823        .48225E-04   -1.4042    
  28  Normalizat    1.0363        .22435        .22378E-03   -.91823    
  29  Prefactor     .78735        .22854        .27392E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.1353e-08
Minuit parameter uncertainties:
  1  3.2353
  2  1.48699e-05
  3  9.31837e-05
  4  3.03725
  5  4.95231
  6  0.0010676
  7  8.8782e-05
  8  4.42155
  9  0.000138077
  10  0.000887707
  11  0.000127725
  12  7.71274
  13  0.0044306
  14  8.31803e-05
  15  106.422
  16  5.80251
  17  4.03169e-05
  18  0.000199503
  19  7.04252e-06
  20  4.93985
  21  3.98939e-07
  22  1.90948e-06
  23  2.65666e-06
  24  2.80091e-06
  25  2.11368
  26  5.89762e-05
  27  58.872
  28  0.224554
  29  0.228816
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.924e+01  5.803e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  7.873e-01  2.288e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.036e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 34.61
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 1.56e-07 +/- 4.71e-08
Energy Flux (Fixed Index): 5.02e-05 +/- 1.51e-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) = 4861.37857511
delta logL = 0.677512819799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4861.21666837
delta logL = 0.839419561859

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.316       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0634       1.0000          .0000       10.000    
     3 'Normalizat'    1.0723       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76108       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4861.217     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.317        7.2652        .22202E-05   -.23809E-02
   2  Index         2.0633        .23324       -.55670E-05   -.94951E-03
   3  Normalizat    1.0723        .17657        .87636E-07    .87747E-04
   4  Prefactor     .76105        .18985       -.45084E-06    .48663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3171
  Index      = 2.06332
  Normalizat = 1.07231
  Prefactor  = 0.761046
 **********
 **   18 **HESSE 
 **********

 FCN=   4861.217     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.317        7.4265        .82955E-04   -1.4742    
   2  Index         2.0633        .25890        .40080E-02   -.62776    
   3  Normalizat    1.0723        .20598        .22055E-03   -.90646    
   4  Prefactor     .76105        .22084        .27820E-03   -1.0118    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09484e-09
Minuit parameter uncertainties:
  1  7.4268
  2  0.259079
  3  0.206133
  4  0.221098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/574': 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) = 4861.21666833
delta logL = 0.839419601871

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.332e+01  7.427e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.063e+00  2.591e-01  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  7.610e-01  2.211e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.072e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 36.12
Ra Dec: 207.715 30.559
Photon Index (Free Index): 2.06 +/- 0.26
Photon Flux (Free Index): 1.26e-07 +/- 4.61e-08
Energy Flux (Free Index): 7.50e-05 +/- 3.76e-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/574/cmap_HighResolution_239846401_240105601_4FGL_J1350.8+3033_daily_bin2.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.56e-07', energy_flux2='7.50e-05', photon_flux_error='4.71e-08', dlogl='8.39e-01', energy_flux='5.02e-05', photon_flux2='1.26e-07', job_status='DONE', time_completed='2021-09-08 14:47:18.856622', photon_index_error2='0.26', photon_index2='2.06', ts='34.61', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='3.76e-05', EG='1.04', time_epoch_completed='1631137638.86', return_code='0', job_id='574', GAL2='0.76', EG2='1.07', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='4.61e-08', ts2='36.12', photon_index='2.42' WHERE bin_id='2' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:47:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 574: <4FGL_J1350.8+3033_daily_bin2> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin2> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep  8 14:35:33 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:35:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 14:35:44 2021
Terminated at Wed Sep  8 14:47:19 2021
Results reported at Wed Sep  8 14:47:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin2 207.715 30.5588 239846401 240105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1350.8+3033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   621.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            706 sec.

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

