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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1102
RA = 207.715, Dec = 30.5588
tmin = 524966401, tmax = 525225601
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='8712', job_status='RUN', time_executed='2021-09-08 15:01:31.069686', time_epoch_executed='1631138491.07' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8712

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8712/ft1_4FGL_J1350.8+3033_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8712/ft2_4FGL_J1350.8+3033_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8712/ft1_4FGL_J1350.8+3033_daily_bin1102.fits outfile=/scratch/kocevski/8712/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1102.fits ra=207.715 dec=30.5588 rad=12.0 tmin=524966401.0 tmax=525225601.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 3.53
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8712/ft1_filtered_4FGL_J1350.8+3033_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/8712/ft2_4FGL_J1350.8+3033_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/8712/ltcube_524966401_525225601_4FGL_J1350.8+3033_daily_bin1102.fits outfile=/scratch/kocevski/8712/expmap_524966401_525225601_4FGL_J1350.8+3033_daily_bin1102.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/8712/ltcube_524966401_525225601_4FGL_J1350.8+3033_daily_bin1102.fits
.....................!
real 191.23
user 186.16
sys 4.66

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/8712/ft1_filtered_4FGL_J1350.8+3033_daily_bin1102.fits scfile=/scratch/kocevski/8712/ft2_4FGL_J1350.8+3033_daily_bin1102.fits outfile=/scratch/kocevski/8712/cmap_524966401_525225601_4FGL_J1350.8+3033_daily_bin1102.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8712/ft1_filtered_4FGL_J1350.8+3033_daily_bin1102.fits scfile=/scratch/kocevski/8712/ft2_4FGL_J1350.8+3033_daily_bin1102.fits outfile=/scratch/kocevski/8712/cmap_HighResolution_524966401_525225601_4FGL_J1350.8+3033_daily_bin1102.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.0054       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .88380       1.0000         .10000E-03   10000.    
    10 'norm      '    9.4974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.480       1.0000         .10000E-03   10000.    
    12 'norm      '    17.355       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.613       1.0000         .10000E-03   10000.    
    18 'norm      '    10.220       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.041       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1631       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7972       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.0301       1.0000         .10000E-03   10000.    
    26 'norm      '    2.5830       1.0000         .10000E-03   10000.    
    27 'Prefactor '    19.720       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2522       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75194       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=   5577.316     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3723 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    2.9558       -.25663E-06** at limit **
   2  Prefactor     .10000E-03    15.004        .13595E-05** at limit **
   3  Prefactor     .10000E-03    12.066       -.73479E-06** at limit **
   4  norm          .10000E-03    1.5289        .65671E-08** at limit **
   5  norm          .10000E-03    1.8868       -.43023E-07** at limit **
   6  norm          5.0048        4.0311        .11804E-07    .15869E-04
   7  norm          .10000E-03    5.7826        .15832E-06** at limit **
   8  Prefactor     .10000E-03    1.0479       -.98255E-07** at limit **
   9  Prefactor     .88827        9.4368        .50732E-06   -.72192E-04
  10  norm          9.4977        6.0971        .22490E-07   -.63804E-05
  11  Prefactor     47.469        42.148        .13721E-05    .30196E-04
  12  norm          17.355        9.4960        .63077E-07   -.62928E-05
  13  Prefactor     .10000E-03    6.2471        .28085E-07** at limit **
  14  Prefactor     .10000E-03    5.1130       -.79387E-07** at limit **
  15  Prefactor     .10000E-03    19.969       -.10344E-05** at limit **
  16  Prefactor     .10000E-03    3.7872        .11266E-06** at limit **
  17  Prefactor     10.614        11.063        .13311E-06   -.26149E-05
  18  norm          10.222        13.570        .19007E-06    .61966E-05
  19  Prefactor     12.042        15.062        .48188E-07    .32587E-05
  20  norm          .10000E-03    2.8922        .99072E-07** at limit **
  21  Prefactor     5.1635        6.5984       -.11428E-06    .11253E-04
  22  Prefactor     .10000E-03    3.5973       -.10394E-06** at limit **
  23  Prefactor     2.7972        3.2441       -.20069E-06   -.90829E-04
  24  norm          .10000E-03    4.6333       -.10762E-06** at limit **
  25  norm          5.0303        2.8488        .21016E-07   -.60434E-05
  26  norm          2.5843        9.7418        .68825E-05    .40720E-05
  27  Prefactor     19.709        34.310        .14802E-05    .20190E-05
  28  Normalizat    1.2521        .17215       -.58559E-06    .54407E-04
  29  Prefactor     .75196        .18842       -.13449E-06   -.27936E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.00482
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.888268
  norm       = 9.49769
  Prefactor  = 47.4695
  norm       = 17.3553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6142
  norm       = 10.2222
  Prefactor  = 12.0422
  norm       = 0.0001
  Prefactor  = 5.16352
  Prefactor  = 0.0001
  Prefactor  = 2.7972
  norm       = 0.0001
  norm       = 5.03032
  norm       = 2.58426
  Prefactor  = 19.7087
  Normalizat = 1.25213
  Prefactor  = 0.751963
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.316     FROM HESSE     STATUS=OK           563 CALLS     4286 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    2.7701        .42711E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.5347        .90176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9184        .19876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.0048        4.0032        .12991E-03   -1.5261    
   7  norm          .10000E-03    5.7838        .17540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.0579        .74580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .88827        25.105        .42764E-02   -1.5519    
  10  norm          9.4977        6.0974        .13004E-03   -1.5092    
  11  Prefactor     47.469        42.151        .29096E-03   -1.4329    
  12  norm          17.355        9.4955        .96142E-04   -1.4875    
  13  Prefactor     .10000E-03    6.2692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.1153        .16493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.9518        .28333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.614        11.062        .12299E-03   -1.5056    
  18  norm          10.222        13.576        .12534E-03   -1.5068    
  19  Prefactor     12.042        15.051        .11544E-03   -1.5014    
  20  norm          .10000E-03    2.9872        .24791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1635        6.5915        .17692E-03   -1.5253    
  22  Prefactor     .10000E-03    3.5987        .13833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.7972        3.2384        .13842E-03   -1.5373    
  24  norm          .10000E-03    4.6364        .15700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.0303        2.8505        .91531E-04   -1.5259    
  26  norm          2.5843        9.7577        .12696E-02   -1.5386    
  27  Prefactor     19.709        34.305        .90194E-04   -1.4820    
  28  Normalizat    1.2521        .19662        .20711E-03   -.85007    
  29  Prefactor     .75196        .21584        .29115E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23956e-08
Minuit parameter uncertainties:
  1  0.000318644
  2  2.16159e-05
  3  2.56364e-06
  4  1.32504e-07
  5  3.84166e-06
  6  4.0034
  7  2.57642e-07
  8  5.51392e-06
  9  9.44844
  10  6.09783
  11  42.1773
  12  9.4963
  13  2.44345e-07
  14  7.73915e-07
  15  4.42293e-06
  16  9.90864e-06
  17  11.0646
  18  13.5797
  19  15.0556
  20  6.15878e-06
  21  6.59243
  22  2.06723e-07
  23  3.23862
  24  1.22569e-07
  25  2.85053
  26  9.76369
  27  34.3396
  28  0.196737
  29  0.216086
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  9.909e-06  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.520e-01  2.161e-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.252e+00  1.967e-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: 6.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8712/likelihoodResults_524966401_525225601_4FGL_J1350.8+3033_daily_bin1102.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) = 5577.31708847
delta logL = -0.00120791318113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5577.3158812
delta logL = -6.44708052278e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11266E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4566       1.0000          .0000       10.000    
     3 'Normalizat'    1.2522       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75198       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5577.316     FROM MIGRAD    STATUS=FAILED        98 CALLS      261 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    761.97        .22105E-02** at limit **
   2  Index         2.5039        5.7095        .50000       -.10015E-03
   3  Normalizat    1.2521        .74295E-01    .20711E-03    .16222E-03
   4  Prefactor     .75196        .82834E-01    .29115E-03    .55214E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5577.316     FROM SIMPLEX   STATUS=UNCHANGED    164 CALLS      425 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10010E-03    761.97        .29358E-03** at limit **
   2  Index         2.5039        5.7095        .11261E-04   -.10015E-03
   3  Normalizat    1.2521        .74295E-01    .58998E-06    .16222E-03
   4  Prefactor     .75196        .82834E-01    .21366E-06    .55214E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5577.204     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      523 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29101E-02    .68704E-02    .20184E-02   -.80417E-02
   2  Index         6.4349        .73845        .28656        .73299E-05
   3  Normalizat    1.2286        .20191        .41422E-04   -.10232E-03
   4  Prefactor     .76889        .21920        .11646E-04   -.58181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00291008
  Index      = 6.43494
  Normalizat = 1.22857
  Prefactor  = 0.768892
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.204     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      552 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29101E-02    .79160        .87688E-05   -1.5719    
   2  Index         6.4349        5.0581        .98364E-02    .29108    
   3  Normalizat    1.2286        .15171        .82845E-05   -.85724    
   4  Prefactor     .76889        .16788        .23292E-05   -1.0089    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.53885e-10
Minuit parameter uncertainties:
  1  0.0943298
  2  17.7198
  3  0.151764
  4  0.167988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8712': 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) = 5577.20379378
delta logL = 0.112086778705

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.910e-03  9.433e-02  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  6.435e+00  1.772e+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.689e-01  1.680e-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  1.518e-01  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/8712/cmap_HighResolution_524966401_525225601_4FGL_J1350.8+3033_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-03', job_status='DONE', photon_flux_upper_limit='6.60e-08', time_completed='2021-09-08 15:14:36.353482', job_id='8712', GAL2='0.77', fit_tolerance='1e-08', EG2='1.23', EG='1.25', time_epoch_completed='1631139276.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.12e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1102' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:14:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 8712: <4FGL_J1350.8+3033_daily_bin1102> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin1102> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:00:28 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:01:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:01:23 2021
Terminated at Wed Sep  8 15:14:36 2021
Results reported at Wed Sep  8 15:14:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1102 207.715 30.5588 524966401 525225601 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 :                                   782.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            848 sec.

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

