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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin19
RA = 207.715, Dec = 30.5588
tmin = 244252801, tmax = 244512001
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='598', job_status='RUN', time_executed='2021-09-08 14:39:37.773793', time_epoch_executed='1631137177.77' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='19'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598/ft1_4FGL_J1350.8+3033_daily_bin19.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598/ft2_4FGL_J1350.8+3033_daily_bin19.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598/ft1_4FGL_J1350.8+3033_daily_bin19.fits outfile=/scratch/kocevski/598/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin19.fits ra=207.715 dec=30.5588 rad=12.0 tmin=244252801.0 tmax=244512001.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 2.42
user 2.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598/ft2_4FGL_J1350.8+3033_daily_bin19.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/598/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin19.fits evtable="EVENTS" outfile="/scratch/kocevski/598/ft1_filtered_4FGL_J1350.8+3033_daily_bin19.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.52
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598/ft1_filtered_4FGL_J1350.8+3033_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/598/ft2_4FGL_J1350.8+3033_daily_bin19.fits sctable="SC_DATA" expcube=/scratch/kocevski/598/ltcube_244252801_244512001_4FGL_J1350.8+3033_daily_bin19.fits outfile=/scratch/kocevski/598/expmap_244252801_244512001_4FGL_J1350.8+3033_daily_bin19.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/598/ltcube_244252801_244512001_4FGL_J1350.8+3033_daily_bin19.fits
.....................!
real 191.93
user 186.41
sys 5.01

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/598/ft1_filtered_4FGL_J1350.8+3033_daily_bin19.fits scfile=/scratch/kocevski/598/ft2_4FGL_J1350.8+3033_daily_bin19.fits outfile=/scratch/kocevski/598/cmap_244252801_244512001_4FGL_J1350.8+3033_daily_bin19.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/598/ft1_filtered_4FGL_J1350.8+3033_daily_bin19.fits scfile=/scratch/kocevski/598/ft2_4FGL_J1350.8+3033_daily_bin19.fits outfile=/scratch/kocevski/598/cmap_HighResolution_244252801_244512001_4FGL_J1350.8+3033_daily_bin19.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/598/ft1_filtered_4FGL_J1350.8+3033_daily_bin19.fits evtable="EVENTS" scfile=/scratch/kocevski/598/ft2_4FGL_J1350.8+3033_daily_bin19.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/598/Model_4FGL_J1350.8+3033_daily_bin19.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/598/ft1_filtered_4FGL_J1350.8+3033_daily_bin19.fits....................!
real 38.03
user 36.74
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1427       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.1865       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3272       1.0000         .10000E-03   10000.    
     6 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9553       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1491       1.0000         .10000E-03   10000.    
    10 'norm      '    5.4246       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.072       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.9175       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1394       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .31448       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.9971       1.0000         .10000E-03   10000.    
    26 'norm      '    .10687E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    70.975       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1147       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76112       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=   4360.774     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3699 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1428        3.6831        .73424E-06    .52254E-05
   2  Prefactor     .10000E-03    21.086       -.90492E-07** at limit **
   3  Prefactor     .10000E-03    6.4977       -.20688E-07** at limit **
   4  norm          5.1866        4.9307        .95328E-06   -.81391E-04
   5  norm          1.3271        3.5720       -.41114E-06   -.46915E-04
   6  norm          .10000E-03    8.4601       -.32118E-06** at limit **
   7  norm          .10000E-03    9.4935        .96989E-07** at limit **
   8  Prefactor     2.9551        3.0225       -.27494E-06   -.84834E-05
   9  Prefactor     8.1484        12.662        .21710E-05   -.37592E-04
  10  norm          5.4247        6.7236        .91255E-07   -.12325E-04
  11  Prefactor     .10000E-03    17.751       -.18491E-06** at limit **
  12  norm          4.1467        8.9665        .32256E-06   -.59084E-05
  13  Prefactor     14.070        13.261       -.12448E-06    .21661E-05
  14  Prefactor     .10000E-03    18.046       -.69781E-07** at limit **
  15  Prefactor     .10000E-03    27.389        .37433E-06** at limit **
  16  Prefactor     11.940        5.3227        .64683E-08   -.11441E-04
  17  Prefactor     .10000E-03    37.353       -.67226E-06** at limit **
  18  norm          .10000E-03    6.4410        .78303E-07** at limit **
  19  Prefactor     .10000E-03    10.309        .13765E-06** at limit **
  20  norm          6.9181        4.9331        .63988E-07   -.97317E-04
  21  Prefactor     8.1389        9.3249        .10047E-06   -.14221E-04
  22  Prefactor     .10000E-03    6.5013        .29626E-08** at limit **
  23  Prefactor     .30673        3.8018        .43105E-06   -.15318E-03
  24  norm          .10000E-03    4.8743       -.24223E-09** at limit **
  25  norm          4.9973        2.7680        .25808E-07   -.19257E-04
  26  norm          .10000E-03    23.715        .42457E-06** at limit **
  27  Prefactor     70.945        62.626       -.19400E-06   -.89366E-04
  28  Normalizat    1.1151        .19880        .34703E-06   -.79754E-04
  29  Prefactor     .76077        .21248       -.15314E-05    .22719E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.14276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.18657
  norm       = 1.32715
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.95512
  Prefactor  = 8.14836
  norm       = 5.42467
  Prefactor  = 0.0001
  norm       = 4.14673
  Prefactor  = 14.0698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9398
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.91807
  Prefactor  = 8.13888
  Prefactor  = 0.0001
  Prefactor  = 0.306728
  norm       = 0.0001
  norm       = 4.99731
  norm       = 0.0001
  Prefactor  = 70.9453
  Normalizat = 1.11514
  Prefactor  = 0.760766
 **********
 **   18 **HESSE 
 **********

 FCN=   4360.774     FROM HESSE     STATUS=OK           553 CALLS     4252 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1428        3.6112        .21870E-03   -1.5494    
   2  Prefactor     .10000E-03    21.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.5025        .16441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.1866        4.9245        .68889E-03   -1.5252    
   5  norm          1.3271        3.4669        .18493E-03   -1.5478    
   6  norm          .10000E-03    8.4568        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.5147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.9551        3.0010        .10711E-03   -1.5364    
   9  Prefactor     8.1484        12.692        .70222E-03   -1.5137    
  10  norm          5.4247        6.6768        .16922E-03   -1.5242    
  11  Prefactor     .10000E-03    17.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1467        8.9066        .19792E-03   -1.5301    
  13  Prefactor     14.070        13.273        .10677E-03   -1.4958    
  14  Prefactor     .10000E-03    18.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.940        5.3343        .97436E-04   -1.5017    
  17  Prefactor     .10000E-03    38.566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.4629        .16369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.9181        4.9193        .11851E-03   -1.5182    
  21  Prefactor     8.1389        9.3244        .14053E-03   -1.5137    
  22  Prefactor     .10000E-03    6.5080        .16444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .30673        8.3508        .23840E-02   -1.5597    
  24  norm          .10000E-03    4.8748        .14239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.9973        2.7708        .79294E-04   -1.5261    
  26  norm          .10000E-03    24.356        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     70.945        62.623        .47650E-04   -1.4021    
  28  Normalizat    1.1151        .23295        .21485E-03   -.89267    
  29  Prefactor     .76077        .24659        .28188E-03   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62606e-08
Minuit parameter uncertainties:
  1  3.61184
  2  7.6456e-06
  3  4.86165e-06
  4  4.92485
  5  3.46744
  6  1.41597e-05
  7  1.88148e-05
  8  3.00116
  9  12.6965
  10  6.67774
  11  8.00583e-05
  12  8.90944
  13  13.2758
  14  6.08129e-05
  15  0.000165366
  16  5.33452
  17  0.000127406
  18  7.54188e-06
  19  3.17285e-05
  20  4.91959
  21  9.32606
  22  1.87181e-06
  23  3.20086
  24  1.13424e-07
  25  2.77088
  26  0.000127298
  27  62.6814
  28  0.23316
  29  0.246945
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  7.608e-01  2.469e-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.115e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.32
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 9.69e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 3.11e-05 +/- 1.39e-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) = 4359.7547594
delta logL = 1.01884078653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4359.7250938
delta logL = 1.04850638264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.545       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8440       1.0000          .0000       10.000    
     3 'Normalizat'    1.1653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72443       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=   4359.725     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.546        6.3730        .26277E-05   -.72416E-03
   2  Index         1.8442        .29964       -.27098E-05   -.70798E-03
   3  Normalizat    1.1653        .19043       -.27340E-06    .43104E-04
   4  Prefactor     .72443        .20909       -.30359E-06   -.11636E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5459
  Index      = 1.84423
  Normalizat = 1.16526
  Prefactor  = 0.724433
 **********
 **   18 **HESSE 
 **********

 FCN=   4359.725     FROM HESSE     STATUS=OK            29 CALLS      242 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.546        6.5719        .10883E-03   -1.4972    
   2  Index         1.8442        .36787        .54905E-02   -.68304    
   3  Normalizat    1.1653        .22200        .21086E-03   -.87683    
   4  Prefactor     .72443        .24328        .28803E-03   -1.0258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21602e-09
Minuit parameter uncertainties:
  1  6.57229
  2  0.368429
  3  0.22218
  4  0.243638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598': 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) = 4359.72509344
delta logL = 1.04850674465

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.355e+01  6.572e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  1.844e+00  3.684e-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.244e-01  2.436e-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.165e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.42
Ra Dec: 207.715 30.559
Photon Index (Free Index): 1.84 +/- 0.37
Photon Flux (Free Index): 5.98e-08 +/- 3.72e-08
Energy Flux (Free Index): 6.29e-05 +/- 5.11e-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/598/cmap_HighResolution_244252801_244512001_4FGL_J1350.8+3033_daily_bin19.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.69e-08', energy_flux2='6.29e-05', photon_flux_error='4.33e-08', dlogl='1.05e+00', energy_flux='3.11e-05', photon_flux2='5.98e-08', job_status='DONE', time_completed='2021-09-08 14:49:25.130028', photon_index_error2='0.37', photon_index2='1.84', ts='14.32', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', energy_flux_error2='5.11e-05', EG='1.12', time_epoch_completed='1631137765.13', return_code='0', job_id='598', GAL2='0.72', EG2='1.17', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='3.72e-08', ts2='16.42', photon_index='2.42' WHERE bin_id='19' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:49:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 598: <4FGL_J1350.8+3033_daily_bin19> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin19 207.715 30.5588 244252801 244512001 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 :                                   587.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            830 sec.

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

