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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin397
RA = 207.715, Dec = 30.5588
tmin = 342230401, tmax = 342489601
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='3842', job_status='RUN', time_executed='2021-09-08 14:47:52.929788', time_epoch_executed='1631137672.93' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3842

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3842/ft1_4FGL_J1350.8+3033_daily_bin397.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3842/ft2_4FGL_J1350.8+3033_daily_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3842/ft1_4FGL_J1350.8+3033_daily_bin397.fits outfile=/scratch/kocevski/3842/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin397.fits ra=207.715 dec=30.5588 rad=12.0 tmin=342230401.0 tmax=342489601.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.54
user 3.31
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3842/ft1_filtered_4FGL_J1350.8+3033_daily_bin397.fits" evtable="EVENTS" scfile=/scratch/kocevski/3842/ft2_4FGL_J1350.8+3033_daily_bin397.fits sctable="SC_DATA" outfile=/scratch/kocevski/3842/ltcube_342230401_342489601_4FGL_J1350.8+3033_daily_bin397.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/3842/ft2_4FGL_J1350.8+3033_daily_bin397.fits
.....................!
real 13.44
user 13.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3842/ft1_filtered_4FGL_J1350.8+3033_daily_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/3842/ft2_4FGL_J1350.8+3033_daily_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/3842/ltcube_342230401_342489601_4FGL_J1350.8+3033_daily_bin397.fits outfile=/scratch/kocevski/3842/expmap_342230401_342489601_4FGL_J1350.8+3033_daily_bin397.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/3842/ltcube_342230401_342489601_4FGL_J1350.8+3033_daily_bin397.fits
.....................!
real 191.97
user 186.16
sys 4.93

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/3842/ft1_filtered_4FGL_J1350.8+3033_daily_bin397.fits scfile=/scratch/kocevski/3842/ft2_4FGL_J1350.8+3033_daily_bin397.fits outfile=/scratch/kocevski/3842/cmap_342230401_342489601_4FGL_J1350.8+3033_daily_bin397.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.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.852       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .39559E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6684       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.553       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11467E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11173E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.779       1.0000         .10000E-03   10000.    
    18 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9419       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2733       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.9281       1.0000         .10000E-03   10000.    
    26 'norm      '    9.9454       1.0000         .10000E-03   10000.    
    27 'Prefactor '    77.755       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3356       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73623       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=   5891.853     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3802 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9228       -.67645E-07** at limit **
   2  Prefactor     17.863        19.244        .14656E-05    .42475E-04
   3  Prefactor     .10000E-03    14.352       -.84958E-06** at limit **
   4  norm          .10000E-03    2.8608       -.35496E-07** at limit **
   5  norm          4.6701        3.1795       -.28952E-06    .13304E-04
   6  norm          .10000E-03    2.1423       -.78337E-08** at limit **
   7  norm          .10000E-03    7.5754       -.12836E-05** at limit **
   8  Prefactor     .10000E-03    .95488       -.24710E-07** at limit **
   9  Prefactor     .10000E-03    8.8370        .16147E-06** at limit **
  10  norm          12.555        7.2780       -.33494E-06    .29864E-04
  11  Prefactor     .10000E-03    20.614        .97615E-07** at limit **
  12  norm          .10000E-03    17.847       -.28427E-06** at limit **
  13  Prefactor     .10000E-03    12.843       -.17124E-06** at limit **
  14  Prefactor     .10088E-03    15.562       -.67230E-06** at limit **
  15  Prefactor     36.534        57.636       -.35681E-04    .16199E-04
  16  Prefactor     .10000E-03    1.7817       -.77760E-07** at limit **
  17  Prefactor     21.779        16.595       -.87632E-06    .16647E-04
  18  norm          .10000E-03    6.2675        .13408E-05** at limit **
  19  Prefactor     .10000E-03    7.2341        .13372E-05** at limit **
  20  norm          4.9424        3.4815        .53529E-07    .66009E-04
  21  Prefactor     7.2762        8.8393       -.37572E-10    .15105E-04
  22  Prefactor     .10000E-03    6.3412       -.16185E-05** at limit **
  23  Prefactor     .10000E-03    2.4815        .13444E-08** at limit **
  24  norm          .10000E-03    3.9096        .13871E-07** at limit **
  25  norm          5.9269        2.8997       -.78388E-07    .34800E-04
  26  norm          9.9469        7.9519        .14455E-07    .34194E-04
  27  Prefactor     77.725        59.166       -.15520E-04    .14402E-04
  28  Normalizat    1.3349        .17515        .41286E-05   -.10791E-03
  29  Prefactor     .73708        .18563       -.93513E-06    .23699E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 17.8634
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 4.67014
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.5545
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010088
  Prefactor  = 36.5339
  Prefactor  = 0.0001
  Prefactor  = 21.7787
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.94238
  Prefactor  = 7.27616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.92686
  norm       = 9.94689
  Prefactor  = 77.7247
  Normalizat = 1.33494
  Prefactor  = 0.73708
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.853     FROM HESSE     STATUS=OK           559 CALLS     4361 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9363        .10387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.863        19.173        .94793E-04   -1.4862    
   3  Prefactor     .10000E-03    92.395        .55884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8957        .12661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6701        3.1776        .10753E-03   -1.5276    
   6  norm          .10000E-03    2.1436        .10961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.5863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .96165        .73204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.9265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.555        7.2531        .11306E-03   -1.4999    
  11  Prefactor     .10000E-03    20.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    18.450        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10088E-03    19.114        .94414E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.534        57.750        .66257E-04   -1.4498    
  16  Prefactor     .10000E-03    1.8049        .10001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.779        16.600        .85828E-04   -1.4774    
  18  norm          .10000E-03    6.2777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.2432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9424        3.4827        .11633E-03   -1.5263    
  21  Prefactor     7.2762        8.8439        .14873E-03   -1.5168    
  22  Prefactor     .10000E-03    6.3489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5545        .23592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.9101        .14823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.9269        2.9036        .88469E-04   -1.5221    
  26  norm          9.9469        7.9545        .12706E-03   -1.5077    
  27  Prefactor     77.725        59.207        .45541E-04   -1.3942    
  28  Normalizat    1.3349        .20423        .21346E-03   -.82529    
  29  Prefactor     .73708        .21642        .30636E-03   -1.0209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.26408e-10
Minuit parameter uncertainties:
  1  8.9461e-06
  2  19.1798
  3  0.000695389
  4  9.04377e-06
  5  3.17772
  6  8.06586e-07
  7  5.5083e-06
  8  1.94393e-06
  9  2.14505e-05
  10  7.25366
  11  1.82666e-06
  12  9.45321e-05
  13  5.27365e-05
  14  0.00820595
  15  57.8384
  16  9.25243e-06
  17  16.6031
  18  1.24904e-05
  19  5.15137e-06
  20  3.48284
  21  8.8455
  22  5.95216e-06
  23  2.0558e-06
  24  1.38456e-06
  25  2.90371
  26  7.9553
  27  59.2519
  28  0.204354
  29  0.216668
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  9.252e-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.371e-01  2.167e-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.335e+00  2.044e-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: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/3842/likelihoodResults_342230401_342489601_4FGL_J1350.8+3033_daily_bin397.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) = 5891.85586183
delta logL = -0.00262411065069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5891.85323777
delta logL = -4.80067683384e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4079       1.0000          .0000       10.000    
     3 'Normalizat'    1.3350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73709       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=   5891.853     FROM MIGRAD    STATUS=FAILED        87 CALLS      242 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    92.377        .10025E-02** at limit **
   2  Index         2.3531        5.9476        .50000        .25282E-04
   3  Normalizat    1.3349        .32451E-01    .21346E-03   -.13890E-04
   4  Prefactor     .73707        .35861E-01    .30637E-03    .22265E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5891.853     FROM SIMPLEX   STATUS=UNCHANGED    138 CALLS      380 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10053E-03    92.377        .23628E-03** at limit **
   2  Index         2.3531        5.9476        .79982E-04    .25282E-04
   3  Normalizat    1.3349        .32451E-01    .81988E-06   -.13890E-04
   4  Prefactor     .73707        .35861E-01    .13967E-05    .22265E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5891.853     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      421 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    393.74        .20049E-03** at limit **
   2  Index         2.2129        7.7401        .50000        .20350E-07
   3  Normalizat    1.3349        .10937        .42693E-04    .56614E-04
   4  Prefactor     .73707        .12071        .12255E-04    .48612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21288
  Normalizat = 1.33494
  Prefactor  = 0.737075
 **********
 **   18 **HESSE 
 **********

 FCN=   5891.853     FROM HESSE     STATUS=OK            29 CALLS      450 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0068        .40098E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2129        5.1118        .50000       -.59128    
   3  Normalizat    1.3349        .19302        .85385E-05   -.82529    
   4  Prefactor     .73707        .21319        .24509E-05   -1.0209    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06899e-12
Minuit parameter uncertainties:
  1  3.12091e-07
  2  86.5992
  3  0.19312
  4  0.21343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3842': 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) = 5891.85323686
delta logL = 8.65686160978e-07

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  3.121e-07  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.213e+00  8.660e+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.371e-01  2.134e-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.335e+00  1.931e-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/3842/cmap_HighResolution_342230401_342489601_4FGL_J1350.8+3033_daily_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-08 15:01:16.739863', job_id='3842', GAL2='0.74', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631138476.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='8.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='397' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:01:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 3842: <4FGL_J1350.8+3033_daily_bin397> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin397> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 14:45:27 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 14:47:40 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:47:40 2021
Terminated at Wed Sep  8 15:01:17 2021
Results reported at Wed Sep  8 15:01:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin397 207.715 30.5588 342230401 342489601 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 :                                   798.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             330.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            950 sec.

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

