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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1015
RA = 207.715, Dec = 30.5588
tmin = 502416001, tmax = 502675201
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='8581', job_status='RUN', time_executed='2021-09-08 15:03:10.950934', time_epoch_executed='1631138590.95' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8581/ft1_4FGL_J1350.8+3033_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8581/ft2_4FGL_J1350.8+3033_daily_bin1015.fits


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

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8581/ft2_4FGL_J1350.8+3033_daily_bin1015.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/8581/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/8581/ft1_filtered_4FGL_J1350.8+3033_daily_bin1015.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.56
user 0.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8581/ft1_filtered_4FGL_J1350.8+3033_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/8581/ft2_4FGL_J1350.8+3033_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/8581/ltcube_502416001_502675201_4FGL_J1350.8+3033_daily_bin1015.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/8581/ft2_4FGL_J1350.8+3033_daily_bin1015.fits
.....................!
real 17.45
user 17.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8581/ft1_filtered_4FGL_J1350.8+3033_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/8581/ft2_4FGL_J1350.8+3033_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/8581/ltcube_502416001_502675201_4FGL_J1350.8+3033_daily_bin1015.fits outfile=/scratch/kocevski/8581/expmap_502416001_502675201_4FGL_J1350.8+3033_daily_bin1015.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/8581/ltcube_502416001_502675201_4FGL_J1350.8+3033_daily_bin1015.fits
.....................!
real 192.30
user 187.32
sys 4.41

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/8581/ft1_filtered_4FGL_J1350.8+3033_daily_bin1015.fits scfile=/scratch/kocevski/8581/ft2_4FGL_J1350.8+3033_daily_bin1015.fits outfile=/scratch/kocevski/8581/cmap_502416001_502675201_4FGL_J1350.8+3033_daily_bin1015.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8581/ft1_filtered_4FGL_J1350.8+3033_daily_bin1015.fits scfile=/scratch/kocevski/8581/ft2_4FGL_J1350.8+3033_daily_bin1015.fits outfile=/scratch/kocevski/8581/cmap_HighResolution_502416001_502675201_4FGL_J1350.8+3033_daily_bin1015.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.56
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8173       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .18693       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.3031       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    16.087       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.0326       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10340E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .68799       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7917       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5709       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.146       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.353       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.163       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3010       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66927       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=   5692.222     FROM MIGRAD    STATUS=CONVERGED    125 CALLS     2530 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8273        1.5642       -.33738E-06    .11129E-02
   2  Prefactor     .10068E-03    666.61        .23696E-04** at limit **
   3  Prefactor     .10008E-03    6.9598        .65711E-05** at limit **
   4  norm          .10000E-03    1.9122        .14763E-05** at limit **
   5  norm          2.3040        2.8403       -.34485E-06   -.84398E-03
   6  norm          .10000E-03    2.9229        .50918E-06** at limit **
   7  norm          16.094        3.8392       -.25103E-05    .50442E-02
   8  Prefactor     3.0310        2.9008        .27642E-05    .10803E-02
   9  Prefactor     .10000E-03    6.9084       -.73555E-05** at limit **
  10  norm          .10000E-03    3.1640       -.14350E-05** at limit **
  11  Prefactor     .10009E-03    21.501        .13002E-04** at limit **
  12  norm          .65840        1.2748        .32298E-06   -.22911E-03
  13  Prefactor     7.7895        1.1853        .60949E-06   -.51222E-03
  14  Prefactor     .10017E-03    15.024       -.79579E-05** at limit **
  15  Prefactor     3.5459        1.9573       -.47312E-06    .66928E-03
  16  Prefactor     .10000E-03    1.8394        .30954E-06** at limit **
  17  Prefactor     .10013E-03    5.3800       -.60532E-05** at limit **
  18  norm          16.126        6.1423        .40905E-05   -.10139E-01
  19  Prefactor     .10000E-03    5.7029        .24294E-06** at limit **
  20  norm          .10000E-03    1.0976        .47642E-06** at limit **
  21  Prefactor     .10000E-03    4.0562        .14088E-05** at limit **
  22  Prefactor     14.353        1.0091        .19029E-07    .33872E-03
  23  Prefactor     .10000E-03    .83828        .40989E-06** at limit **
  24  norm          .10000E-03    3.7685        .77731E-06** at limit **
  25  norm          10.162        1.9574        .74140E-06   -.14545E-02
  26  norm          .10000E-03    1.9124       -.19635E-05** at limit **
  27  Prefactor     .10011E-03    9.3114        .37584E-05** at limit **
  28  Normalizat    1.3010        .19168        .25849E-05    .11643E-03
  29  Prefactor     .66953        .21104       -.20908E-05    .55947E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.82735
  Prefactor  = 0.000100675
  Prefactor  = 0.000100077
  norm       = 0.000100001
  norm       = 2.30401
  norm       = 0.0001
  norm       = 16.0943
  Prefactor  = 3.03097
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100086
  norm       = 0.658402
  Prefactor  = 7.7895
  Prefactor  = 0.000100169
  Prefactor  = 3.5459
  Prefactor  = 0.0001
  Prefactor  = 0.000100127
  norm       = 16.1261
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3532
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.1623
  norm       = 0.000100001
  Prefactor  = 0.000100114
  Normalizat = 1.30097
  Prefactor  = 0.669534
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.222     FROM HESSE     STATUS=OK           613 CALLS     3143 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8273        4.8432        .60581E-02   -1.5372    
   2  Prefactor     .10068E-03    20.559        .99178E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10008E-03    8.0863        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.0234        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.3040        3.1462        .67600E-02   -1.5404    
   6  norm          .10000E-03    2.9195        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          16.094        15.166        .24965E-02   -1.4905    
   8  Prefactor     3.0310        3.0448        .58254E-02   -1.5360    
   9  Prefactor     .10000E-03    10.455        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.1619        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10009E-03    22.000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .65840        5.2740        .93368E-01   -1.5546    
  13  Prefactor     7.7895        12.303        .35913E-02   -1.5150    
  14  Prefactor     .10017E-03    16.024        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.5459        171.27        .53467E-02   -1.5331    
  16  Prefactor     .10000E-03    1.8009        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10013E-03    8.6788        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.126        17.793        .24919E-02   -1.4905    
  19  Prefactor     .10000E-03    5.7159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.0926        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.0505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.353        10.232        .26431E-02   -1.4950    
  23  Prefactor     .10000E-03    .83701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    3.7739        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.162        3.2821        .31422E-02   -1.5070    
  26  norm          .10000E-03    2.0449        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10011E-03    12.107        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3010        .17207        .32787E-01   -.83537    
  29  Prefactor     .66953        .18502        .67738E-01   -1.0473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.27981e-07
Minuit parameter uncertainties:
  1  4.84386
  2  0.00745303
  3  0.00157475
  4  7.68774e-05
  5  3.14642
  6  8.97761e-06
  7  15.1691
  8  3.045
  9  0.000293237
  10  1.79074e-05
  11  0.00274636
  12  3.72704
  13  12.3068
  14  0.00329559
  15  49.4375
  16  6.75008e-07
  17  0.00209805
  18  17.7987
  19  9.15054e-05
  20  1.27202e-06
  21  6.36959e-05
  22  10.233
  23  1.57315e-06
  24  5.37278e-05
  25  3.28212
  26  7.96093e-05
  27  0.00235143
  28  0.172141
  29  0.185186
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  6.750e-07  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:  6.695e-01  1.852e-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.301e+00  1.721e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8581/likelihoodResults_502416001_502675201_4FGL_J1350.8+3033_daily_bin1015.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) = 5692.22460962
delta logL = -0.00258003047384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5692.22202962
delta logL = -3.88617991121e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4284       1.0000          .0000       10.000    
     3 'Normalizat'    1.3010       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66952       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=   5692.222     FROM MIGRAD    STATUS=FAILED        85 CALLS      236 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    3.3638        .99435E-03** at limit **
   2  Index         2.4421        6.1026        .50000       -.65435E-04
   3  Normalizat    1.3010        .18748        .19982E-03   -.64383E-04
   4  Prefactor     .66954        .20913        .29974E-03    .43541E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5692.222     FROM SIMPLEX   STATUS=UNCHANGED    127 CALLS      363 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    3.3638        .21906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4421        6.1026        .35423E-03   -.53703    
   3  Normalizat    1.3010        .18748        .43873E-04   -.83537    
   4  Prefactor     .66954        .20913        .48498E-04   -1.0473    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5692.108     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      484 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22636E-01    1.2852        .19887E-02    .67883E-02
   2  Index         5.2764        7.2821        .20000        .84318E-04
   3  Normalizat    1.2769        .29574E-01    .39963E-04   -.42785E-04
   4  Prefactor     .68666        .33015E-01    .11990E-04   -.24653E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0226357
  Index      = 5.27637
  Normalizat = 1.27688
  Prefactor  = 0.686661
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.108     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      513 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22636E-01    5.6327        .24258E-04   -1.5678    
   2  Index         5.2764        5.6961        .11616E-01    .55303E-01
   3  Normalizat    1.2769        .14488        .79927E-05   -.84259    
   4  Prefactor     .68666        .15940        .23979E-05   -1.0405    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28559e-09
Minuit parameter uncertainties:
  1  0.712632
  2  17.6587
  3  0.144928
  4  0.159502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8581': 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) = 5692.10830979
delta logL = 0.113719792683

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  2.264e-02  7.126e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  5.276e+00  1.766e+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:  6.867e-01  1.595e-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.277e+00  1.449e-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/8581/cmap_HighResolution_502416001_502675201_4FGL_J1350.8+3033_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.05e-03', job_status='DONE', photon_flux_upper_limit='5.23e-08', time_completed='2021-09-08 15:15:09.193580', job_id='8581', GAL2='0.69', fit_tolerance='1e-08', EG2='1.28', EG='1.30', time_epoch_completed='1631139309.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='1.14e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1015' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:15:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 8581: <4FGL_J1350.8+3033_daily_bin1015> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1015 207.715 30.5588 502416001 502675201 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 :                                   712.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             256.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            890 sec.

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

