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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin57
RA = 207.715, Dec = 30.5588
tmin = 254102401, tmax = 254361601
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='1816', job_status='RUN', time_executed='2021-09-08 14:43:08.404645', time_epoch_executed='1631137388.4' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/1816

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/1816/ft1_4FGL_J1350.8+3033_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/1816/ft2_4FGL_J1350.8+3033_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/1816/ft1_4FGL_J1350.8+3033_daily_bin57.fits outfile=/scratch/kocevski/1816/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin57.fits ra=207.715 dec=30.5588 rad=12.0 tmin=254102401.0 tmax=254361601.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.09
user 1.85
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/1816/ft1_filtered_4FGL_J1350.8+3033_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/1816/ft2_4FGL_J1350.8+3033_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/1816/ltcube_254102401_254361601_4FGL_J1350.8+3033_daily_bin57.fits outfile=/scratch/kocevski/1816/expmap_254102401_254361601_4FGL_J1350.8+3033_daily_bin57.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/1816/ltcube_254102401_254361601_4FGL_J1350.8+3033_daily_bin57.fits
.....................!
real 194.07
user 186.85
sys 5.27

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/1816/ft1_filtered_4FGL_J1350.8+3033_daily_bin57.fits scfile=/scratch/kocevski/1816/ft2_4FGL_J1350.8+3033_daily_bin57.fits outfile=/scratch/kocevski/1816/cmap_254102401_254361601_4FGL_J1350.8+3033_daily_bin57.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/1816/ft1_filtered_4FGL_J1350.8+3033_daily_bin57.fits scfile=/scratch/kocevski/1816/ft2_4FGL_J1350.8+3033_daily_bin57.fits outfile=/scratch/kocevski/1816/cmap_HighResolution_254102401_254361601_4FGL_J1350.8+3033_daily_bin57.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.123       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0925       1.0000         .10000E-03   10000.    
     6 'norm      '    6.6885       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9857       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    47.292       1.0000         .10000E-03   10000.    
    12 'norm      '    8.5978       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .92587E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1508       1.0000         .10000E-03   10000.    
    18 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2096       1.0000         .10000E-03   10000.    
    24 'norm      '    21.788       1.0000         .10000E-03   10000.    
    25 'norm      '    6.8623       1.0000         .10000E-03   10000.    
    26 'norm      '    .27521       1.0000         .10000E-03   10000.    
    27 'Prefactor '    63.813       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4622       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .46591       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=   4752.910     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3773 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6014       -.22471E-06** at limit **
   2  Prefactor     18.123        25.634       -.39904E-06    .29317E-04
   3  Prefactor     .10000E-03    8.5944       -.26059E-06** at limit **
   4  norm          .10000E-03    2.1948       -.42510E-06** at limit **
   5  norm          6.0960        5.7532        .72576E-07    .18136E-03
   6  norm          6.6837        9.0170       -.17209E-06    .85803E-05
   7  norm          3.9836        22.311       -.26802E-06   -.25644E-04
   8  Prefactor     .10000E-03    1.0519       -.11934E-05** at limit **
   9  Prefactor     .10000E-03    5.3140       -.90958E-06** at limit **
  10  norm          .10000E-03    4.6400        .12699E-06** at limit **
  11  Prefactor     47.308        63.035        .39802E-06    .28265E-04
  12  norm          8.5977        7.8406       -.35745E-06   -.37727E-04
  13  Prefactor     .10000E-03    13.309       -.10458E-06** at limit **
  14  Prefactor     .10000E-03    11.689        .35745E-07** at limit **
  15  Prefactor     .10000E-03    46.955       -.44738E-06** at limit **
  16  Prefactor     .10012E-03    9.6914        .28002E-05** at limit **
  17  Prefactor     1.1510        3.9364        .12879E-05   -.19656E-03
  18  norm          .10000E-03    46.738        .37875E-05** at limit **
  19  Prefactor     .10000E-03    6.4910        .16759E-06** at limit **
  20  norm          .10000E-03    1.0065        .12077E-06** at limit **
  21  Prefactor     .10000E-03    4.5229        .36813E-06** at limit **
  22  Prefactor     .10000E-03    4.9487        .27975E-06** at limit **
  23  Prefactor     3.2097        2.8810       -.90702E-07   -.12084E-04
  24  norm          21.785        15.467        .12206E-06    .25569E-04
  25  norm          6.8624        3.0117        .17747E-08    .41628E-04
  26  norm          .31169        33.557       -.37517E-05   -.36943E-03
  27  Prefactor     63.815        58.158       -.56484E-06   -.26803E-05
  28  Normalizat    1.4620        .20554        .32912E-05   -.12733E-04
  29  Prefactor     .46599        .21432       -.44754E-05    .55188E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 18.1231
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.09598
  norm       = 6.68367
  norm       = 3.98355
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.3083
  norm       = 8.59773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100121
  Prefactor  = 1.15103
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.20972
  norm       = 21.7852
  norm       = 6.86243
  norm       = 0.311687
  Prefactor  = 63.8154
  Normalizat = 1.46205
  Prefactor  = 0.465994
 **********
 **   18 **HESSE 
 **********

 FCN=   4752.910     FROM HESSE     STATUS=OK           553 CALLS     4326 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6084        .10853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.123        25.578        .94083E-04   -1.4856    
   3  Prefactor     .10000E-03    8.6022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.2204        .99882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.0960        5.8806        .12047E-03   -1.5214    
   6  norm          6.6837        9.2062        .15516E-03   -1.5191    
   7  norm          3.9836        22.654        .10101E-02   -1.5309    
   8  Prefactor     .10000E-03    1.1023        .70560E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3534        .15563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.6796        .14490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     47.308        63.236        .58307E-04   -1.4331    
  12  norm          8.5977        7.8334        .13671E-03   -1.5121    
  13  Prefactor     .10000E-03    13.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    47.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10012E-03    25.212        .18279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1510        21.793        .21567E-02   -1.5493    
  18  norm          .10000E-03    48.138        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.4942        .17153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0080        .67535E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5278        .14316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.9518        .14976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2097        2.8819        .10699E-03   -1.5350    
  24  norm          21.785        15.459        .85811E-04   -1.4774    
  25  norm          6.8624        3.0133        .76653E-04   -1.5184    
  26  norm          .31169        49.437        .37649E-02   -1.5596    
  27  Prefactor     63.815        58.167        .50235E-04   -1.4109    
  28  Normalizat    1.4620        .21794        .19488E-03   -.78850    
  29  Prefactor     .46599        .22943        .34967E-03   -1.1356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.23706e-09
Minuit parameter uncertainties:
  1  8.23238e-06
  2  25.593
  3  4.51229e-05
  4  1.40441e-05
  5  5.88118
  6  9.20811
  7  19.0102
  8  2.76079e-05
  9  4.42748e-05
  10  2.41055e-06
  11  63.3255
  12  7.83428
  13  2.79745e-05
  14  1.0989e-05
  15  0.000105734
  16  0.00349803
  17  10.0206
  18  0.000387985
  19  1.67054e-05
  20  1.33419e-06
  21  1.70497e-05
  22  3.13254e-07
  23  2.88203
  24  15.4622
  25  3.01333
  26  7.85615
  27  58.2192
  28  0.218083
  29  0.22989
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.001e-04  3.498e-03  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:  4.660e-01  2.299e-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.462e+00  2.181e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/1816/likelihoodResults_254102401_254361601_4FGL_J1350.8+3033_daily_bin57.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) = 4752.90975997
delta logL = -0.000189651700566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4752.90957071
delta logL = -3.88867192669e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11203E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4518       1.0000          .0000       10.000    
     3 'Normalizat'    1.4622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46589       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=   4752.910     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      247 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27639        .55760E-01** at limit **
   2  Index         2.4774        5.8353        .50000       -.55429E-05
   3  Normalizat    1.4620        .17875E-02    .44091E-01   -.28722E-04
   4  Prefactor     .46599        .19199E-02    .78944E-01    .18345E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47742
  Normalizat = 1.46205
  Prefactor  = 0.465993
 **********
 **   18 **HESSE 
 **********

 FCN=   4752.910     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      284 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    124.74        .18041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4774        6.7710        .50000       -.52882    
   3  Normalizat    1.4620        .98314E-02    .19488E-03   -.78850    
   4  Prefactor     .46599        .10531E-01    .34967E-03   -1.1356    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12372e-08
Minuit parameter uncertainties:
  1  0.00010202
  2  159.578
  3  0.00983137
  4  0.0105315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/1816': 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) = 4752.90957017
delta logL = 1.44806108437e-07

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  1.020e-04  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.477e+00  1.596e+02  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:  4.660e-01  1.053e-02  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.462e+00  9.831e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/1816/cmap_HighResolution_254102401_254361601_4FGL_J1350.8+3033_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-08 14:54:49.540620', job_id='1816', GAL2='0.47', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1631138089.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.47', dlogl='1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='57' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:54:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 1816: <4FGL_J1350.8+3033_daily_bin57> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin57 207.715 30.5588 254102401 254361601 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 :                                   691.25 sec.
    Max Memory :                                 1061 MB
    Average Memory :                             272.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            872 sec.

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

