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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin202
RA = 207.715, Dec = 30.5588
tmin = 291686401, tmax = 291945601
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='2038', job_status='RUN', time_executed='2021-09-08 14:42:08.671850', time_epoch_executed='1631137328.67' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2038

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/2038/ft1_4FGL_J1350.8+3033_daily_bin202.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/2038/ft2_4FGL_J1350.8+3033_daily_bin202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2038/ft1_4FGL_J1350.8+3033_daily_bin202.fits outfile=/scratch/kocevski/2038/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin202.fits ra=207.715 dec=30.5588 rad=12.0 tmin=291686401.0 tmax=291945601.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.53
user 3.30
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2038/ft1_filtered_4FGL_J1350.8+3033_daily_bin202.fits evtable="EVENTS" scfile=/scratch/kocevski/2038/ft2_4FGL_J1350.8+3033_daily_bin202.fits sctable="SC_DATA" expcube=/scratch/kocevski/2038/ltcube_291686401_291945601_4FGL_J1350.8+3033_daily_bin202.fits outfile=/scratch/kocevski/2038/expmap_291686401_291945601_4FGL_J1350.8+3033_daily_bin202.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/2038/ltcube_291686401_291945601_4FGL_J1350.8+3033_daily_bin202.fits
.....................!
real 192.87
user 186.44
sys 5.60

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/2038/ft1_filtered_4FGL_J1350.8+3033_daily_bin202.fits scfile=/scratch/kocevski/2038/ft2_4FGL_J1350.8+3033_daily_bin202.fits outfile=/scratch/kocevski/2038/cmap_291686401_291945601_4FGL_J1350.8+3033_daily_bin202.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2038/ft1_filtered_4FGL_J1350.8+3033_daily_bin202.fits scfile=/scratch/kocevski/2038/ft2_4FGL_J1350.8+3033_daily_bin202.fits outfile=/scratch/kocevski/2038/cmap_HighResolution_291686401_291945601_4FGL_J1350.8+3033_daily_bin202.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.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.917       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .17608E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5600       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7931       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7588       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.4531       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0396       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6185       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .25255E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8950       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13802E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.9489       1.0000         .10000E-03   10000.    
    26 'norm      '    4.2956       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96503       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1493       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=   5831.599     FROM MIGRAD    STATUS=CONVERGED    756 CALLS     3223 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.7708        .97617E-07** at limit **
   2  Prefactor     45.898        28.026       -.79188E-06   -.15407E-03
   3  Prefactor     .10000E-03    11.012        .17771E-05** at limit **
   4  norm          .10023E-03    42.401        .64235E-05** at limit **
   5  norm          1.5611        3.1067       -.26051E-07   -.33744E-04
   6  norm          .10000E-03    2.7726       -.94992E-07** at limit **
   7  norm          3.7924        12.295       -.13709E-06   -.59984E-05
   8  Prefactor     3.7574        3.8705       -.99406E-07   -.24702E-03
   9  Prefactor     .10000E-03    12.478       -.14868E-05** at limit **
  10  norm          7.4542        6.6957       -.92879E-06   -.19048E-03
  11  Prefactor     .10000E-03    20.631        .43102E-06** at limit **
  12  norm          .10000E-03    6.8990       -.11042E-05** at limit **
  13  Prefactor     .10000E-03    30.213        .13683E-05** at limit **
  14  Prefactor     3.0424        23.752       -.78567E-06   -.17350E-04
  15  Prefactor     .10000E-03    45.200       -.21236E-05** at limit **
  16  Prefactor     1.6183        3.0145       -.21865E-06   -.68173E-04
  17  Prefactor     .10000E-03    34.563       -.13376E-05** at limit **
  18  norm          .10000E-03    6.3939        .13449E-06** at limit **
  19  Prefactor     .10000E-03    8.5647       -.13444E-05** at limit **
  20  norm          .10000E-03    2.4710       -.44567E-06** at limit **
  21  Prefactor     5.8851        13.577        .81867E-06   -.17823E-03
  22  Prefactor     .10027E-03    68.790       -.70236E-05** at limit **
  23  Prefactor     .10000E-03    1.8889        .27299E-07** at limit **
  24  norm          .10000E-03    7.6653        .13007E-05** at limit **
  25  norm          8.9487        3.1244       -.13184E-07    .67724E-05
  26  norm          4.2946        9.1919       -.31334E-06   -.42706E-04
  27  Prefactor     .10000E-03    32.402        .22212E-06** at limit **
  28  Normalizat    .96486        .17111        .45817E-06   -.89302E-04
  29  Prefactor     1.1495        .18608        .11708E-06   -.15689E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 45.8979
  Prefactor  = 0.0001
  norm       = 0.000100234
  norm       = 1.56107
  norm       = 0.0001
  norm       = 3.79237
  Prefactor  = 3.7574
  Prefactor  = 0.0001
  norm       = 7.45419
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.04244
  Prefactor  = 0.0001
  Prefactor  = 1.61826
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 5.88511
  Prefactor  = 0.000100266
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.9487
  norm       = 4.29458
  Prefactor  = 0.0001
  Normalizat = 0.964864
  Prefactor  = 1.14953
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.599     FROM HESSE     STATUS=OK           561 CALLS     3784 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8130        .12406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.898        28.059        .59170E-04   -1.4352    
   3  Prefactor     .10000E-03    11.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10023E-03    5.6423        .48924E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5611        3.0481        .17472E-03   -1.5458    
   6  norm          .10000E-03    2.7768        .12388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7924        12.275        .20727E-03   -1.5318    
   8  Prefactor     3.7574        3.8483        .13643E-03   -1.5320    
   9  Prefactor     .10000E-03    12.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.4542        6.7135        .73453E-03   -1.5162    
  11  Prefactor     .10000E-03    20.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.9737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    30.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.0424        23.694        .23273E-03   -1.5359    
  15  Prefactor     .10000E-03    45.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6183        2.9846        .17378E-03   -1.5454    
  17  Prefactor     .10000E-03    35.795        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.4143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    12.838        .22319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8851        13.883        .16540E-03   -1.5223    
  22  Prefactor     .10027E-03    112.57        .56081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9134        .10243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.6837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.9487        3.1286        .77477E-04   -1.5110    
  26  norm          4.2946        9.1654        .19438E-03   -1.5293    
  27  Prefactor     .10000E-03    32.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96486        .20232        .23874E-03   -.94217    
  29  Prefactor     1.1495        .22052        .25198E-03   -.87899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72434e-09
Minuit parameter uncertainties:
  1  8.02225e-06
  2  28.0675
  3  4.80402e-05
  4  0.00229869
  5  3.04839
  6  1.41615e-06
  7  12.2832
  8  3.84859
  9  2.77136e-05
  10  6.71419
  11  1.90768e-05
  12  8.87215e-06
  13  4.53623e-05
  14  16.9901
  15  0.000125112
  16  2.98484
  17  2.09244e-05
  18  1.04214e-06
  19  3.81698e-05
  20  0.000367797
  21  13.891
  22  0.0109589
  23  6.12636e-08
  24  2.41401e-05
  25  3.12865
  26  9.16841
  27  8.78349e-06
  28  0.202483
  29  0.220695
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  1.150e+00  2.207e-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:  9.649e-01  2.025e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.42
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 8.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2038/likelihoodResults_291686401_291945601_4FGL_J1350.8+3033_daily_bin202.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): 0
logL (Free Index) = 5831.58223862
delta logL = 0.0162651339915

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5831.58021715
delta logL = 0.0182866114837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4518       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6565       1.0000          .0000       10.000    
     3 'Normalizat'    .96118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1519       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=   5831.580     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4522        104.27        .89374E-02    .59497E-03
   2  Index         2.6565        5.5703        .23021        .45720E-04
   3  Normalizat    .96119        .48955E-01    .45679E-01    .10118E-04
   4  Prefactor     1.1519        .53448E-01    .56933E-01    .56303E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.45222
  Index      = 2.65652
  Normalizat = 0.961189
  Prefactor  = 1.15192
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.580     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4522        3.0812        .15668E-03   -1.5467    
   2  Index         2.6565        1.3632        .14405E-01   -.48781    
   3  Normalizat    .96119        .19127        .23916E-03   -.94342    
   4  Prefactor     1.1519        .21718        .25175E-03   -.87824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35716e-09
Minuit parameter uncertainties:
  1  3.08153
  2  1.38578
  3  0.191407
  4  0.217352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2038': 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) = 5831.58021713
delta logL = 0.0182866290315

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.452e+00  3.082e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.657e+00  1.386e+00  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.152e+00  2.174e-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:  9.612e-01  1.914e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/2038/cmap_HighResolution_291686401_291945601_4FGL_J1350.8+3033_daily_bin202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', job_status='DONE', photon_flux_upper_limit='8.16e-08', time_completed='2021-09-08 14:54:21.014413', job_id='2038', GAL2='1.15', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1631138061.01', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.83e-02', ts2='0.46', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='202' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 14:54:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 2038: <4FGL_J1350.8+3033_daily_bin202> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin202 207.715 30.5588 291686401 291945601 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 :                                   726.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            826 sec.

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

