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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin92
RA = 207.715, Dec = 30.5588
tmin = 263174401, tmax = 263433601
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='1869', job_status='RUN', time_executed='2021-09-08 14:43:22.028824', time_epoch_executed='1631137402.03' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1869

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1869/ft1_4FGL_J1350.8+3033_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1869/ft2_4FGL_J1350.8+3033_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1869/ft1_4FGL_J1350.8+3033_daily_bin92.fits outfile=/scratch/kocevski/1869/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin92.fits ra=207.715 dec=30.5588 rad=12.0 tmin=263174401.0 tmax=263433601.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.39
user 1.20
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/1869/ft2_4FGL_J1350.8+3033_daily_bin92.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/1869/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/1869/ft1_filtered_4FGL_J1350.8+3033_daily_bin92.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/1869/ft1_filtered_4FGL_J1350.8+3033_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/1869/ft2_4FGL_J1350.8+3033_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/1869/ltcube_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.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/1869/ft2_4FGL_J1350.8+3033_daily_bin92.fits
.....................!
real 16.81
user 16.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1869/ft1_filtered_4FGL_J1350.8+3033_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/1869/ft2_4FGL_J1350.8+3033_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/1869/ltcube_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.fits outfile=/scratch/kocevski/1869/expmap_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.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/1869/ltcube_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.fits
.....................!
real 193.90
user 188.68
sys 4.75

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/1869/ft1_filtered_4FGL_J1350.8+3033_daily_bin92.fits scfile=/scratch/kocevski/1869/ft2_4FGL_J1350.8+3033_daily_bin92.fits outfile=/scratch/kocevski/1869/cmap_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1869/ft1_filtered_4FGL_J1350.8+3033_daily_bin92.fits scfile=/scratch/kocevski/1869/ft2_4FGL_J1350.8+3033_daily_bin92.fits outfile=/scratch/kocevski/1869/cmap_HighResolution_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/1869/ft1_filtered_4FGL_J1350.8+3033_daily_bin92.fits', '/scratch/kocevski/1869/ft2_4FGL_J1350.8+3033_daily_bin92.fits', expMap='/scratch/kocevski/1869/expmap_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.fits', expCube='/scratch/kocevski/1869/ltcube_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/1869/Model_4FGL_J1350.8+3033_daily_bin92.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/1869/ft1_filtered_4FGL_J1350.8+3033_daily_bin92.fits
Spacecraft file(s): /scratch/kocevski/1869/ft2_4FGL_J1350.8+3033_daily_bin92.fits
Exposure map: /scratch/kocevski/1869/expmap_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.fits
Exposure cube: /scratch/kocevski/1869/ltcube_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/1869/Model_4FGL_J1350.8+3033_daily_bin92.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .26065E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5766       1.0000         .10000E-03   10000.    
     6 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    34.223       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7994       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18535E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.041       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    14.868       1.0000         .10000E-03   10000.    
    26 'norm      '    5.1421       1.0000         .10000E-03   10000.    
    27 'Prefactor '    3.6953       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4178       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .53801       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=   4592.352     FROM MIGRAD    STATUS=CONVERGED    755 CALLS     3766 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8736       -.31926E-07** at limit **
   2  Prefactor     .10000E-03    17.367       -.27047E-05** at limit **
   3  Prefactor     .10000E-03    20.465        .40046E-05** at limit **
   4  norm          .10002E-03    4.1513        .18152E-05** at limit **
   5  norm          5.5748        4.6171        .67513E-06   -.24870E-04
   6  norm          .10000E-03    12.759        .17260E-06** at limit **
   7  norm          34.220        23.388        .89176E-06    .19466E-04
   8  Prefactor     1.1149        7.9119       -.50212E-05   -.20686E-03
   9  Prefactor     3.8189        25.468        .28399E-05    .25466E-05
  10  norm          .10000E-03    2.4828       -.30895E-07** at limit **
  11  Prefactor     .10001E-03    371.73       -.61521E-05** at limit **
  12  norm          5.9844        5.9776       -.66874E-07   -.47021E-05
  13  Prefactor     .10000E-03    7.3434        .96964E-06** at limit **
  14  Prefactor     41.035        29.971        .11115E-05    .52516E-04
  15  Prefactor     .10000E-03    31.292       -.19654E-05** at limit **
  16  Prefactor     .10000E-03    3.7762       -.11026E-05** at limit **
  17  Prefactor     .10000E-03    12.855        .10339E-06** at limit **
  18  norm          .10000E-03    4.4601        .36996E-07** at limit **
  19  Prefactor     .10000E-03    5.4138       -.51255E-06** at limit **
  20  norm          .10000E-03    2.1767       -.36594E-07** at limit **
  21  Prefactor     .10000E-03    3.6227        .58045E-07** at limit **
  22  Prefactor     .10000E-03    5.1223        .55361E-06** at limit **
  23  Prefactor     .10000E-03    2.7106       -.18199E-06** at limit **
  24  norm          .10000E-03    4.7697       -.15269E-06** at limit **
  25  norm          14.868        4.2466        .19219E-06    .73217E-04
  26  norm          5.1413        11.135        .44841E-07   -.66158E-05
  27  Prefactor     3.6971        132.95       -.72613E-06    .70423E-06
  28  Normalizat    1.4179        .19963        .81452E-06    .16039E-03
  29  Prefactor     .53796        .20752       -.48813E-06    .10020E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100021
  norm       = 5.57484
  norm       = 0.0001
  norm       = 34.2203
  Prefactor  = 1.11494
  Prefactor  = 3.81885
  norm       = 0.0001
  Prefactor  = 0.000100009
  norm       = 5.98444
  Prefactor  = 0.0001
  Prefactor  = 41.0349
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.8678
  norm       = 5.14126
  Prefactor  = 3.69708
  Normalizat = 1.41793
  Prefactor  = 0.537961
 **********
 **   18 **HESSE 
 **********

 FCN=   4592.352     FROM HESSE     STATUS=OK           549 CALLS     4315 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8783        .90575E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10002E-03    16.765        .25085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5748        4.5289        .11864E-03   -1.5236    
   6  norm          .10000E-03    12.912        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          34.220        23.359        .68500E-04   -1.4537    
   8  Prefactor     1.1149        8.0449        .26284E-03   -1.5497    
   9  Prefactor     3.8189        25.336        .20709E-03   -1.5317    
  10  norm          .10000E-03    2.4936        .10426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    370.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9844        5.9718        .16070E-03   -1.5219    
  13  Prefactor     .10000E-03    7.3440        .17916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     41.035        29.994        .62571E-04   -1.4426    
  15  Prefactor     .10000E-03    31.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6155        .24796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.4629        .13978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4146        .15400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1972        .97600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.6246        .12597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.1253        .14977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.024        .21024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.7715        .14455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          14.868        4.2455        .71992E-04   -1.4937    
  26  norm          5.1413        11.136        .17729E-03   -1.5254    
  27  Prefactor     3.6971        132.95        .21009E-03   -1.5323    
  28  Normalizat    1.4179        .23018        .19731E-03   -.80112    
  29  Prefactor     .53796        .24029        .33162E-03   -1.1027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89354e-09
Minuit parameter uncertainties:
  1  8.28714e-07
  2  3.07365e-05
  3  5.14649e-05
  4  0.00117572
  5  4.52914
  6  5.5674e-05
  7  23.3654
  8  5.99073
  9  19.6846
  10  2.15625e-06
  11  0.00367891
  12  5.97235
  13  1.09315e-07
  14  30.0055
  15  2.56536e-05
  16  0.000333599
  17  6.98049e-06
  18  4.56183e-08
  19  3.6882e-06
  20  6.4205e-07
  21  1.30491e-07
  22  2.76643e-06
  23  0.000109557
  24  1.29339e-06
  25  4.24556
  26  11.1409
  27  44.4474
  28  0.230352
  29  0.240742
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  3.336e-04  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:  5.380e-01  2.407e-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.418e+00  2.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 8.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1869/likelihoodResults_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4592.35272481
delta logL = -0.000624544974016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4592.35210045
delta logL = -1.85244971362e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4592.352     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      293 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18024E-03    .39271        .28117E-01** at limit **
   2  Index         3.1070        8.3210        .50000       -.14559E-04
   3  Normalizat    1.4179        .17801E-02    .19731E-03    .72675E-03
   4  Prefactor     .53796        .19374E-02    .33162E-03    .28348E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000180242
  Index      = 3.10696
  Normalizat = 1.41793
  Prefactor  = 0.537961
 **********
 **   18 **HESSE 
 **********

 FCN=   4592.352     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      332 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18024E-03    .37289        .28752E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1070        8.2930        .50000       -.38829    
   3  Normalizat    1.4179        .17650E-02    .39462E-04   -.80112    
   4  Prefactor     .53796        .19209E-02    .13265E-04   -1.1027    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.44607e-09
Minuit parameter uncertainties:
  1  0.0109402
  2  18.3809
  3  0.00176499
  4  0.00192095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1869': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4592.35209564
delta logL = 4.62169191451e-06

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.802e-04  1.094e-02  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  3.107e+00  1.838e+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.380e-01  1.921e-03  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.418e+00  1.765e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.715 30.559

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/1869/cmap_HighResolution_263174401_263433601_4FGL_J1350.8+3033_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', job_status='DONE', photon_flux_upper_limit='8.69e-08', time_completed='2021-09-08 14:54:48.953391', job_id='1869', GAL2='0.54', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1631138088.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='4.62e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='92' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:54:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 1869: <4FGL_J1350.8+3033_daily_bin92> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin92> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Sep  8 14:40:23 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:41:08 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:41:08 2021
Terminated at Wed Sep  8 14:54:49 2021
Results reported at Wed Sep  8 14:54:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin92 207.715 30.5588 263174401 263433601 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 :                                   684.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            866 sec.

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

