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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin656
RA = 207.715, Dec = 30.5588
tmin = 409363201, tmax = 409622401
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='5747', job_status='RUN', time_executed='2021-09-08 14:51:39.179871', time_epoch_executed='1631137899.18' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5747

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5747/ft1_4FGL_J1350.8+3033_daily_bin656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5747/ft2_4FGL_J1350.8+3033_daily_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5747/ft1_4FGL_J1350.8+3033_daily_bin656.fits outfile=/scratch/kocevski/5747/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin656.fits ra=207.715 dec=30.5588 rad=12.0 tmin=409363201.0 tmax=409622401.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 5.58
user 5.31
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5747/ft2_4FGL_J1350.8+3033_daily_bin656.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/5747/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin656.fits evtable="EVENTS" outfile="/scratch/kocevski/5747/ft1_filtered_4FGL_J1350.8+3033_daily_bin656.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5747/ft1_filtered_4FGL_J1350.8+3033_daily_bin656.fits" evtable="EVENTS" scfile=/scratch/kocevski/5747/ft2_4FGL_J1350.8+3033_daily_bin656.fits sctable="SC_DATA" outfile=/scratch/kocevski/5747/ltcube_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.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/5747/ft2_4FGL_J1350.8+3033_daily_bin656.fits
.....................!
real 16.75
user 16.01
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5747/ft1_filtered_4FGL_J1350.8+3033_daily_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/5747/ft2_4FGL_J1350.8+3033_daily_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/5747/ltcube_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.fits outfile=/scratch/kocevski/5747/expmap_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.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/5747/ltcube_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.fits
.....................!
real 193.13
user 187.06
sys 4.65

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/5747/ft1_filtered_4FGL_J1350.8+3033_daily_bin656.fits scfile=/scratch/kocevski/5747/ft2_4FGL_J1350.8+3033_daily_bin656.fits outfile=/scratch/kocevski/5747/cmap_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5747/ft1_filtered_4FGL_J1350.8+3033_daily_bin656.fits scfile=/scratch/kocevski/5747/ft2_4FGL_J1350.8+3033_daily_bin656.fits outfile=/scratch/kocevski/5747/cmap_HighResolution_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.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.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/5747/ft1_filtered_4FGL_J1350.8+3033_daily_bin656.fits', '/scratch/kocevski/5747/ft2_4FGL_J1350.8+3033_daily_bin656.fits', expMap='/scratch/kocevski/5747/expmap_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.fits', expCube='/scratch/kocevski/5747/ltcube_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/5747/Model_4FGL_J1350.8+3033_daily_bin656.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/5747/ft1_filtered_4FGL_J1350.8+3033_daily_bin656.fits
Spacecraft file(s): /scratch/kocevski/5747/ft2_4FGL_J1350.8+3033_daily_bin656.fits
Exposure map: /scratch/kocevski/5747/expmap_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.fits
Exposure cube: /scratch/kocevski/5747/ltcube_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/5747/Model_4FGL_J1350.8+3033_daily_bin656.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) = 4228.39666292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .12547E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.758       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9286       1.0000         .10000E-03   10000.    
     4 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.4632       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8754       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.5715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0212       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.5399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.791       1.0000         .10000E-03   10000.    
    18 'norm      '    6.4618       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .85135       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6353       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .30650E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23475E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    20.622       1.0000         .10000E-03   10000.    
    25 'norm      '    8.3617       1.0000         .10000E-03   10000.    
    26 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13101E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2292       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60591       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=   4228.361     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3726 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.6552       -.82362E-06** at limit **
   2  Prefactor     48.804        39.229        .16648E-04    .51553E-04
   3  Prefactor     4.9306        11.759       -.20824E-05   -.75288E-04
   4  norm          .10000E-03    1.4732        .30874E-08** at limit **
   5  norm          9.4613        6.2205       -.25781E-05    .21376E-04
   6  norm          .10000E-03    3.4270        .13075E-06** at limit **
   7  norm          .10000E-03    7.1820       -.15851E-06** at limit **
   8  Prefactor     .10000E-03    1.9330       -.46819E-07** at limit **
   9  Prefactor     .10000E-03    20.658       -.52954E-07** at limit **
  10  norm          1.8786        7.6361       -.33818E-05   -.52103E-03
  11  Prefactor     .10000E-03    31.311        .10631E-05** at limit **
  12  norm          8.5711        15.135       -.38844E-06    .35324E-04
  13  Prefactor     2.0609        63.392       -.18594E-04   -.45123E-04
  14  Prefactor     .10000E-03    65.910       -.25379E-05** at limit **
  15  Prefactor     .10000E-03    31.414       -.41237E-06** at limit **
  16  Prefactor     4.5404        3.7183        .10270E-06    .11924E-03
  17  Prefactor     11.797        15.289        .28787E-06   -.19974E-04
  18  norm          6.4642        13.394       -.94504E-07   -.53407E-05
  19  Prefactor     .10000E-03    6.1098        .20885E-06** at limit **
  20  norm          .85560        4.9876       -.11667E-06   -.67361E-03
  21  Prefactor     6.6452        22.208        .87785E-05    .52042E-03
  22  Prefactor     .10120E-03    25.291       -.36754E-05** at limit **
  23  Prefactor     .10000E-03    2.0400       -.89639E-07** at limit **
  24  norm          20.565        30.633       -.10720E-04    .34018E-03
  25  norm          8.3617        3.2114       -.41158E-07    .37934E-04
  26  norm          .10000E-03    4.1973        .22652E-07** at limit **
  27  Prefactor     .10000E-03    163.80        .27885E-04** at limit **
  28  Normalizat    1.2290        .20344        .14367E-06    .34248E-03
  29  Prefactor     .60586        .20570        .12754E-05    .11137E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  Prefactor  = 48.8037
  Prefactor  = 4.93059
  norm       = 0.0001
  norm       = 9.46134
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87864
  Prefactor  = 0.0001
  norm       = 8.57113
  Prefactor  = 2.06094
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 4.54036
  Prefactor  = 11.7971
  norm       = 6.46423
  Prefactor  = 0.0001
  norm       = 0.855602
  Prefactor  = 6.64522
  Prefactor  = 0.000101196
  Prefactor  = 0.0001
  norm       = 20.5649
  norm       = 8.36174
  norm       = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.229
  Prefactor  = 0.605861
 **********
 **   18 **HESSE 
 **********

 FCN=   4228.361     FROM HESSE     STATUS=OK           551 CALLS     4277 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.7198        .15103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     48.804        38.872        .57428E-04   -1.4310    
   3  Prefactor     4.9306        11.758        .18117E-03   -1.5264    
   4  norm          .10000E-03    1.4738        .77071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.4613        6.1999        .11643E-03   -1.5093    
   6  norm          .10000E-03    3.4302        .11743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.1823        .17020E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9640        .88185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8786        7.4220        .29572E-03   -1.5434    
  11  Prefactor     .10000E-03    31.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.5711        14.688        .13692E-03   -1.5122    
  13  Prefactor     2.0609        64.667        .29109E-03   -1.5421    
  14  Prefactor     .10000E-03    66.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    31.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.5404        3.7189        .10943E-03   -1.5282    
  17  Prefactor     11.797        15.281        .11666E-03   -1.5021    
  18  norm          6.4642        13.410        .15788E-03   -1.5199    
  19  Prefactor     .10000E-03    6.1102        .15698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .85560        4.9860        .26755E-03   -1.5523    
  21  Prefactor     6.6452        18.828        .15578E-03   -1.5192    
  22  Prefactor     .10120E-03    218.70        .48942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.863        .17812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          20.565        29.910        .88201E-04   -1.4801    
  25  norm          8.3617        3.2164        .69715E-04   -1.5130    
  26  norm          .10000E-03    4.2044        .13010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    167.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2290        .23324        .20514E-03   -.85711    
  29  Prefactor     .60586        .23417        .30110E-03   -1.0734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0749e-09
Minuit parameter uncertainties:
  1  0.000214199
  2  38.892
  3  11.7636
  4  3.99908e-06
  5  6.20035
  6  2.40393e-05
  7  7.9958e-06
  8  8.3368e-06
  9  5.45013e-05
  10  7.42564
  11  2.63541e-06
  12  14.6943
  13  23.1158
  14  0.000759661
  15  1.15348e-05
  16  3.71907
  17  15.2861
  18  13.4159
  19  4.63093e-07
  20  4.13117
  21  18.8444
  22  0.0324589
  23  7.16167e-05
  24  29.9317
  25  3.21647
  26  5.87665e-06
  27  0.00129714
  28  0.233439
  29  0.234549
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  4.540e+00  3.719e+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:  6.059e-01  2.345e-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.229e+00  2.334e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.94
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.69e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 9.70e-06

TS (Fixed Index): 3.94
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/5747/likelihoodResults_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.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) = 4227.92489853
delta logL = 0.436478816414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4227.91651776
delta logL = 0.444859588136

Fit tolerance = 1e-08

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

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

 FCN=   4227.917     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9438        4.1153        .45229E-02   -.14960E-02
   2  Index         1.7888        .51339        .21226       -.58298E-04
   3  Normalizat    1.2491        .18748        .33786E-01   -.18021E-04
   4  Prefactor     .59231        .19992        .68700E-01    .78278E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.94377
  Index      = 1.78885
  Normalizat = 1.24911
  Prefactor  = 0.592307
 **********
 **   18 **HESSE 
 **********

 FCN=   4227.917     FROM HESSE     STATUS=OK            31 CALLS      235 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9438        4.0917        .56321E-03   -1.5263    
   2  Index         1.7888        .58619        .81461E-02   -.69741    
   3  Normalizat    1.2491        .21051        .20362E-03   -.85098    
   4  Prefactor     .59231        .22415        .30406E-03   -1.0791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60306e-11
Minuit parameter uncertainties:
  1  4.09193
  2  0.588498
  3  0.21065
  4  0.22449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5747': 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) = 4227.91651723
delta logL = 0.444860121577

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  4.944e+00  4.092e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  1.789e+00  5.885e-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:  5.923e-01  2.245e-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.249e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 207.715 30.559
Photon Index (Free Index): 1.79 +/- 0.59
Photon Flux (Free Index): 2.09e-08 +/- 2.14e-08
Energy Flux (Free Index): 2.59e-05 +/- 3.61e-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/5747/cmap_HighResolution_409363201_409622401_4FGL_J1350.8+3033_daily_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.05e-03', comment='SUCCESS', photon_flux='3.69e-08', energy_flux2='2.59e-05', photon_flux_error='3.02e-08', dlogl='4.45e-01', energy_flux='1.18e-05', photon_flux2='2.09e-08', job_status='DONE', time_completed='2021-09-08 15:02:49.493960', photon_index_error2='0.59', photon_index2='1.79', ts='3.94', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='3.61e-05', EG='1.23', time_epoch_completed='1631138569.49', return_code='0', job_id='5747', GAL2='0.59', EG2='1.25', return_code2='0', energy_flux_error='9.70e-06', photon_flux_error2='2.14e-08', ts2='4.82', photon_index='2.42' WHERE bin_id='656' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:02:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 5747: <4FGL_J1350.8+3033_daily_bin656> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin656> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 14:50:30 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:51:26 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:51:26 2021
Terminated at Wed Sep  8 15:02:50 2021
Results reported at Wed Sep  8 15:02:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin656 207.715 30.5588 409363201 409622401 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 :                                   663.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            740 sec.

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

