/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 9 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 = 7684
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1350.8+3033_daily_bin316
RA = 207.715, Dec = 30.5588
tmin = 321235201, tmax = 321494401
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='3708', job_status='RUN', time_executed='2021-09-08 14:47:15.189243', time_epoch_executed='1631137635.19' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='316'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3708

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3708/ft1_4FGL_J1350.8+3033_daily_bin316.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3708/ft2_4FGL_J1350.8+3033_daily_bin316.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3708/ft1_4FGL_J1350.8+3033_daily_bin316.fits outfile=/scratch/kocevski/3708/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin316.fits ra=207.715 dec=30.5588 rad=12.0 tmin=321235201.0 tmax=321494401.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.59
user 3.35
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3708/ft1_filtered_4FGL_J1350.8+3033_daily_bin316.fits" evtable="EVENTS" scfile=/scratch/kocevski/3708/ft2_4FGL_J1350.8+3033_daily_bin316.fits sctable="SC_DATA" outfile=/scratch/kocevski/3708/ltcube_321235201_321494401_4FGL_J1350.8+3033_daily_bin316.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/3708/ft2_4FGL_J1350.8+3033_daily_bin316.fits
.....................!
real 16.28
user 15.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3708/ft1_filtered_4FGL_J1350.8+3033_daily_bin316.fits evtable="EVENTS" scfile=/scratch/kocevski/3708/ft2_4FGL_J1350.8+3033_daily_bin316.fits sctable="SC_DATA" expcube=/scratch/kocevski/3708/ltcube_321235201_321494401_4FGL_J1350.8+3033_daily_bin316.fits outfile=/scratch/kocevski/3708/expmap_321235201_321494401_4FGL_J1350.8+3033_daily_bin316.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/3708/ltcube_321235201_321494401_4FGL_J1350.8+3033_daily_bin316.fits
.....................!
real 192.42
user 187.27
sys 4.62

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/3708/ft1_filtered_4FGL_J1350.8+3033_daily_bin316.fits scfile=/scratch/kocevski/3708/ft2_4FGL_J1350.8+3033_daily_bin316.fits outfile=/scratch/kocevski/3708/cmap_321235201_321494401_4FGL_J1350.8+3033_daily_bin316.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3708/ft1_filtered_4FGL_J1350.8+3033_daily_bin316.fits scfile=/scratch/kocevski/3708/ft2_4FGL_J1350.8+3033_daily_bin316.fits outfile=/scratch/kocevski/3708/cmap_HighResolution_321235201_321494401_4FGL_J1350.8+3033_daily_bin316.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.57
user 0.41
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.1682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.995       1.0000         .10000E-03   10000.    
     4 'norm      '    .14120E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.6457       1.0000         .10000E-03   10000.    
     6 'norm      '    4.9826       1.0000         .10000E-03   10000.    
     7 'norm      '    10.561       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4610       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    12.399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .17596E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.320       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8294       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    48.148       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.766       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9665       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.235       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.356       1.0000         .10000E-03   10000.    
    26 'norm      '    6.5077       1.0000         .10000E-03   10000.    
    27 'Prefactor '    59.336       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0708       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5559.875     FROM MIGRAD    STATUS=CONVERGED     83 CALLS     3027 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.1678        1.0388       -.76115E-07   -.72383E-04
   2  Prefactor     .10000E-03    8.8972        .15992E-04** at limit **
   3  Prefactor     32.992        1.0284       -.14690E-06    .94641E-03
   4  norm          .10000E-03    5.0143       -.54414E-05** at limit **
   5  norm          1.6465        2.8260       -.11632E-05   -.71020E-04
   6  norm          4.9820        1.6868       -.23839E-06   -.38151E-04
   7  norm          10.561        1.0017       -.41330E-07    .47628E-04
   8  Prefactor     .10000E-03    1.0361       -.23485E-08** at limit **
   9  Prefactor     1.4622        1.0933        .67877E-07   -.42604E-04
  10  norm          .10000E-03    2.2187       -.22045E-06** at limit **
  11  Prefactor     .10000E-03    18.929        .63927E-05** at limit **
  12  norm          12.399        1.0021        .18933E-07   -.14499E-03
  13  Prefactor     .10525E-03    43.536       -.20259E-05** at limit **
  14  Prefactor     29.302        1.8569       -.77367E-06    .43042E-02
  15  Prefactor     .10473E-03    42.573       -.11671E-04** at limit **
  16  Prefactor     8.8289        1.0406        .20406E-06   -.19185E-03
  17  Prefactor     .10000E-03    6.7142       -.54831E-05** at limit **
  18  norm          48.148        1.0059       -.67840E-07    .63768E-03
  19  Prefactor     10.767        1.0070       -.13541E-06    .26129E-03
  20  norm          2.9664        2.9413        .34221E-06    .41404E-03
  21  Prefactor     .10000E-03    10.495       -.16269E-04** at limit **
  22  Prefactor     12.234        1.0127       -.18632E-06    .44948E-03
  23  Prefactor     .10000E-03    1.3054        .13487E-06** at limit **
  24  norm          .10000E-03    5.0444        .71865E-05** at limit **
  25  norm          10.357        1.8812        .24335E-05    .11576E-01
  26  norm          6.5077        1.0112       -.19290E-06    .16952E-03
  27  Prefactor     59.333        1.0937       -.22784E-06    .30150E-02
  28  Normalizat    1.0708        .20937        .30423E-05    .15026E-03
  29  Prefactor     .82034        .22548       -.32022E-05    .14287E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.16776
  Prefactor  = 0.000100003
  Prefactor  = 32.9915
  norm       = 0.000100002
  norm       = 1.64647
  norm       = 4.98195
  norm       = 10.5609
  Prefactor  = 0.0001
  Prefactor  = 1.46217
  norm       = 0.0001
  Prefactor  = 0.000100004
  norm       = 12.3992
  Prefactor  = 0.000105253
  Prefactor  = 29.3016
  Prefactor  = 0.000104732
  Prefactor  = 8.82892
  Prefactor  = 0.0001
  norm       = 48.1476
  Prefactor  = 10.7666
  norm       = 2.96638
  Prefactor  = 0.000100001
  Prefactor  = 12.2338
  Prefactor  = 0.0001
  norm       = 0.000100003
  norm       = 10.3566
  norm       = 6.50768
  Prefactor  = 59.3333
  Normalizat = 1.07077
  Prefactor  = 0.820335
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.875     FROM HESSE     STATUS=OK           615 CALLS     3642 TOTAL
                     EDM=   .82E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.1678        5.6499        .33091E-02   -1.5102    
   2  Prefactor     .10000E-03    9.4422        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.992        25.877        .17440E-02   -1.4559    
   4  norm          .10000E-03    5.1394        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.6465        4.3372        .82310E-02   -1.5451    
   6  norm          4.9820        5.6357        .45040E-02   -1.5262    
   7  norm          10.561        12.555        .30823E-02   -1.5058    
   8  Prefactor     .10000E-03    1.0337        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4622        14.461        .88989E-02   -1.5466    
  10  norm          .10000E-03    2.2152        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.399        8.7580        .28441E-02   -1.5004    
  13  Prefactor     .10525E-03    78.729        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.302        27.676        .18498E-02   -1.4625    
  15  Prefactor     .10473E-03    89.869        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.8289        4.9849        .33723E-02   -1.5114    
  17  Prefactor     .10000E-03    6.7759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          48.148        20.818        .14447E-02   -1.4319    
  19  Prefactor     10.767        15.207        .30527E-02   -1.5052    
  20  norm          2.9664        2.9547        .58939E-02   -1.5363    
  21  Prefactor     .10000E-03    10.979        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.234        18.783        .28631E-02   -1.5008    
  23  Prefactor     .10000E-03    1.2987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.3246        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.357        3.6864        .31127E-02   -1.5064    
  26  norm          6.5077        12.268        .39330E-02   -1.5198    
  27  Prefactor     59.333        53.589        .13021E-02   -1.4166    
  28  Normalizat    1.0708        .19220        .39336E-01   -.90696    
  29  Prefactor     .82034        .19459        .64715E-01   -.98983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24366e-07
Minuit parameter uncertainties:
  1  5.65024
  2  0.000360409
  3  25.8861
  4  0.000204299
  5  4.33798
  6  5.6363
  7  12.5579
  8  1.18395e-05
  9  9.19919
  10  6.35757e-06
  11  0.000528564
  12  8.75887
  13  0.0407273
  14  27.6877
  15  0.0413061
  16  4.98518
  17  9.30425e-05
  18  20.8214
  19  15.2125
  20  2.95482
  21  0.000197072
  22  18.7918
  23  1.78985e-05
  24  0.000249599
  25  3.68651
  26  12.2727
  27  53.6326
  28  0.192321
  29  0.194754
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  8.829e+00  4.985e+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:  8.203e-01  1.948e-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.071e+00  1.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.56
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 7.17e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 2.30e-05 +/- 1.30e-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) = 5559.83655632
delta logL = 0.0386682369235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5559.83301788
delta logL = 0.0422066722494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9411       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5827       1.0000          .0000       10.000    
     3 'Normalizat'    1.0584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83026       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=   5559.833     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      225 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9491        87.301        .35571E-02    .14711E-03
   2  Index         2.5823        6.2910        .16637        .65745E-04
   3  Normalizat    1.0583        .95535E-01    .40028E-01   -.30383E-04
   4  Prefactor     .83029        .83832E-01    .64377E-01   -.39205E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.94909
  Index      = 2.58225
  Normalizat = 1.05828
  Prefactor  = 0.830286
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.833     FROM HESSE     STATUS=OK            33 CALLS      258 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9491        5.8653        .11010E-03   -1.5144    
   2  Index         2.5823        .61843        .61680E-02   -.50470    
   3  Normalizat    1.0583        .21438        .23612E-03   -.91103    
   4  Prefactor     .83029        .22814        .28476E-03   -.98621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50874e-09
Minuit parameter uncertainties:
  1  5.8657
  2  0.620504
  3  0.214556
  4  0.228397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3708': 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) = 5559.8330167
delta logL = 0.0422078513639

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  7.949e+00  5.866e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.582e+00  6.205e-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:  8.303e-01  2.284e-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.058e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.60
Ra Dec: 207.715 30.559
Photon Index (Free Index): 2.58 +/- 0.62
Photon Flux (Free Index): 8.01e-08 +/- 5.18e-08
Energy Flux (Free Index): 2.14e-05 +/- 1.30e-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/3708/cmap_HighResolution_321235201_321494401_4FGL_J1350.8+3033_daily_bin316.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.17e-08', energy_flux2='2.14e-05', photon_flux_error='4.04e-08', dlogl='4.22e-02', energy_flux='2.30e-05', photon_flux2='8.01e-08', job_status='DONE', time_completed='2021-09-08 14:57:38.174756', photon_index_error2='0.62', photon_index2='2.58', ts='5.56', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='1.30e-05', EG='1.07', time_epoch_completed='1631138258.17', return_code='0', job_id='3708', GAL2='0.83', EG2='1.06', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.18e-08', ts2='5.60', photon_index='2.42' WHERE bin_id='316' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:57:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 3708: <4FGL_J1350.8+3033_daily_bin316> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin316> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:45:19 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:46:57 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:46:57 2021
Terminated at Wed Sep  8 14:57:38 2021
Results reported at Wed Sep  8 14:57:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin316 207.715 30.5588 321235201 321494401 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 :                                   620.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            739 sec.

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

