/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 = 7357
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1575
RA = 207.715, Dec = 30.5588
tmin = 647568001, tmax = 647827201
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='10688', job_status='RUN', time_executed='2021-09-08 15:08:21.628054', time_epoch_executed='1631138901.63' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10688

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10688/ft1_4FGL_J1350.8+3033_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10688/ft2_4FGL_J1350.8+3033_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10688/ft1_4FGL_J1350.8+3033_daily_bin1575.fits outfile=/scratch/kocevski/10688/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1575.fits ra=207.715 dec=30.5588 rad=12.0 tmin=647568001.0 tmax=647827201.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.46
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10688/ft1_filtered_4FGL_J1350.8+3033_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/10688/ft2_4FGL_J1350.8+3033_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/10688/ltcube_647568001_647827201_4FGL_J1350.8+3033_daily_bin1575.fits outfile=/scratch/kocevski/10688/expmap_647568001_647827201_4FGL_J1350.8+3033_daily_bin1575.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/10688/ltcube_647568001_647827201_4FGL_J1350.8+3033_daily_bin1575.fits
.....................!
real 190.61
user 185.45
sys 4.57

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/10688/ft1_filtered_4FGL_J1350.8+3033_daily_bin1575.fits scfile=/scratch/kocevski/10688/ft2_4FGL_J1350.8+3033_daily_bin1575.fits outfile=/scratch/kocevski/10688/cmap_647568001_647827201_4FGL_J1350.8+3033_daily_bin1575.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10688/ft1_filtered_4FGL_J1350.8+3033_daily_bin1575.fits scfile=/scratch/kocevski/10688/ft2_4FGL_J1350.8+3033_daily_bin1575.fits outfile=/scratch/kocevski/10688/cmap_HighResolution_647568001_647827201_4FGL_J1350.8+3033_daily_bin1575.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=207.715 yref=30.5588 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.711       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.7153       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7030       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5358       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5592       1.0000         .10000E-03   10000.    
    10 'norm      '    .12997E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    131.41       1.0000         .10000E-03   10000.    
    12 'norm      '    12.942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.283       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.4292       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4506       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7175       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.153       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.4791       1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    183.37       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .54183       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3242       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=   5722.954     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3640 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.711        5.5710       -.13333E-06    .76979E-04
   2  Prefactor     2.7157        19.223        .46638E-05    .87263E-04
   3  Prefactor     .10000E-03    14.470       -.30891E-06** at limit **
   4  norm          4.7037        5.2894        .19349E-05    .80449E-03
   5  norm          1.5350        3.0621       -.26768E-07    .69537E-04
   6  norm          .10000E-03    3.8428        .93447E-07** at limit **
   7  norm          .10000E-03    9.1189        .16328E-06** at limit **
   8  Prefactor     .10000E-03    1.6074        .87156E-06** at limit **
   9  Prefactor     2.5615        13.926        .14660E-05    .14967E-03
  10  norm          .10008E-03    11.723       -.79337E-05** at limit **
  11  Prefactor     131.43        73.626       -.17176E-05    .88635E-05
  12  norm          12.940        8.1542       -.37132E-06   -.64314E-04
  13  Prefactor     .10000E-03    4.9855        .15951E-06** at limit **
  14  Prefactor     25.329        16.208        .10738E-06   -.11634E-03
  15  Prefactor     14.282        34.762        .54231E-06    .42125E-05
  16  Prefactor     .10000E-03    1.5353        .35456E-08** at limit **
  17  Prefactor     .10000E-03    7.4303       -.59835E-07** at limit **
  18  norm          3.4299        7.6020        .24576E-05    .13348E-03
  19  Prefactor     .10000E-03    5.6307       -.23346E-06** at limit **
  20  norm          4.4508        4.2101        .80895E-06    .20732E-03
  21  Prefactor     9.7196        9.5729       -.82575E-07   -.66174E-05
  22  Prefactor     .10000E-03    8.1370        .19035E-06** at limit **
  23  Prefactor     13.153        4.7586        .59390E-07    .13220E-04
  24  norm          .10000E-03    7.0241       -.13791E-06** at limit **
  25  norm          3.4790        2.2696        .82414E-08   -.17266E-05
  26  norm          .10000E-03    2.3706       -.19568E-07** at limit **
  27  Prefactor     183.37        71.224        .51233E-06   -.14983E-04
  28  Normalizat    .54181        .17038       -.26124E-05   -.98514E-04
  29  Prefactor     1.3242        .18819        .70371E-06   -.21624E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.7109
  Prefactor  = 2.71575
  Prefactor  = 0.000100001
  norm       = 4.70372
  norm       = 1.53499
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.56153
  norm       = 0.000100083
  Prefactor  = 131.428
  norm       = 12.9397
  Prefactor  = 0.0001
  Prefactor  = 25.3293
  Prefactor  = 14.2822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.42992
  Prefactor  = 0.0001
  norm       = 4.45081
  Prefactor  = 9.7196
  Prefactor  = 0.0001
  Prefactor  = 13.1532
  norm       = 0.0001
  norm       = 3.47902
  norm       = 0.0001
  Prefactor  = 183.366
  Normalizat = 0.54181
  Prefactor  = 1.32423
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.954     FROM HESSE     STATUS=OK           553 CALLS     4193 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.711        5.5654        .11626E-03   -1.5023    
   2  Prefactor     2.7157        20.420        .12358E-02   -1.5378    
   3  Prefactor     .10000E-03    14.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7037        5.4792        .91026E-03   -1.5274    
   5  norm          1.5350        2.9917        .16956E-03   -1.5460    
   6  norm          .10000E-03    3.8529        .14422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.1279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6791        .94670E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5615        13.484        .25520E-03   -1.5388    
  10  norm          .10008E-03    26.118        .27064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     131.43        73.558        .17563E-03   -1.3410    
  12  norm          12.940        7.7316        .11134E-03   -1.4988    
  13  Prefactor     .10000E-03    4.9963        .16487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.329        16.210        .79592E-04   -1.4701    
  15  Prefactor     14.282        34.779        .10598E-03   -1.4952    
  16  Prefactor     .10000E-03    1.5480        .91491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.5312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.4299        7.9277        .10921E-02   -1.5338    
  19  Prefactor     .10000E-03    5.6318        .17527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4508        4.2806        .72892E-03   -1.5286    
  21  Prefactor     9.7196        9.5685        .12855E-03   -1.5084    
  22  Prefactor     .10000E-03    8.1635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.153        4.7642        .93497E-04   -1.4982    
  24  norm          .10000E-03    7.0311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.4790        2.2744        .89298E-04   -1.5335    
  26  norm          .10000E-03    2.3715        .11375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     183.37        71.268        .29814E-04   -1.2991    
  28  Normalizat    .54181        .19710        .28967E-03   -1.1052    
  29  Prefactor     1.3242        .22018        .22686E-03   -.82589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55996e-09
Minuit parameter uncertainties:
  1  5.56561
  2  14.9005
  3  0.000185725
  4  5.47982
  5  2.99199
  6  2.20449e-05
  7  1.88814e-05
  8  8.40839e-05
  9  11.7578
  10  0.0029412
  11  73.6093
  12  7.7322
  13  2.89385e-05
  14  16.2132
  15  34.8283
  16  1.4163e-06
  17  1.31411e-05
  18  7.93011
  19  2.03896e-05
  20  4.28085
  21  9.56999
  22  1.1742e-05
  23  4.76434
  24  1.74268e-05
  25  2.27442
  26  1.14681e-06
  27  71.3016
  28  0.197354
  29  0.220332
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  1.416e-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:  1.324e+00  2.203e-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:  5.418e-01  1.974e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/10688/likelihoodResults_647568001_647827201_4FGL_J1350.8+3033_daily_bin1575.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) = 5722.95754701
delta logL = -0.00304763974691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5722.95449947
delta logL = -1.04324499262e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4074       1.0000          .0000       10.000    
     3 'Normalizat'    .54188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3242       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=   5722.954     FROM MIGRAD    STATUS=FAILED        87 CALLS      237 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    57.310        .91733E-03** at limit **
   2  Index         2.3601        6.6079        .50000        .34144E-04
   3  Normalizat    .54181        .24662E-01    .28967E-03   -.33359E-04
   4  Prefactor     1.3242        .29238E-01    .22686E-03   -.13531E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5722.954     FROM SIMPLEX   STATUS=UNCHANGED    136 CALLS      373 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10051E-03    57.310        .23780E-03** at limit **
   2  Index         2.3601        6.6079        .25281E-03    .34144E-04
   3  Normalizat    .54181        .24662E-01    .53515E-05   -.33359E-04
   4  Prefactor     1.3242        .29238E-01    .46623E-05   -.13531E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5722.954     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      414 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    283.52        .18347E-03** at limit **
   2  Index         2.1914        5.8331        .50000        .39336E-07
   3  Normalizat    .54181        .74557E-01    .11587E-04    .13658E-03
   4  Prefactor     1.3242        .88347E-01    .45371E-04    .19594E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19139
  Normalizat = 0.541811
  Prefactor  = 1.32423
 **********
 **   18 **HESSE 
 **********

 FCN=   5722.954     FROM HESSE     STATUS=OK            29 CALLS      443 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.8492        .36693E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1914        5.1005        .50000       -.59647    
   3  Normalizat    .54181        .18369        .23174E-05   -1.1051    
   4  Prefactor     1.3242        .21787        .90743E-05   -.82589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66849e-11
Minuit parameter uncertainties:
  1  5.43702e-08
  2  77.7758
  3  0.183895
  4  0.21802
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10688': 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) = 5722.95449819
delta logL = 1.18419393402e-06

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  5.437e-08  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.191e+00  7.778e+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:  1.324e+00  2.180e-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:  5.418e-01  1.839e-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/10688/cmap_HighResolution_647568001_647827201_4FGL_J1350.8+3033_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.19e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-09-08 15:21:17.769437', job_id='10688', GAL2='1.32', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1631139677.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1575' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:21:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 10688: <4FGL_J1350.8+3033_daily_bin1575> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin1575> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 15:06:04 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:08:11 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:08:11 2021
Terminated at Wed Sep  8 15:21:18 2021
Results reported at Wed Sep  8 15:21:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1575 207.715 30.5588 647568001 647827201 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 :                                   770.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            914 sec.

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

