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


Performing analysis on: 4FGL_J1501.0+2238_daily_bin349
RA = 225.257, Dec = 22.6364
tmin = 329788801, tmax = 330048001
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='933273', job_status='RUN', time_executed='2021-09-10 17:36:18.998901', time_epoch_executed='1631320579.0' WHERE source_name='4FGL J1501.0+2238' and cadence='daily' and bin_id='349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933273

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933273/ft1_4FGL_J1501.0+2238_daily_bin349.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933273/ft1_4FGL_J1501.0+2238_daily_bin349.fits outfile=/scratch/kocevski/933273/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin349.fits ra=225.257 dec=22.6364 rad=12.0 tmin=329788801.0 tmax=330048001.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.48
user 3.25
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.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/933273/ft1_filteredMKT_4FGL_J1501.0+2238_daily_bin349.fits evtable="EVENTS" outfile="/scratch/kocevski/933273/ft1_filtered_4FGL_J1501.0+2238_daily_bin349.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933273/ft1_filtered_4FGL_J1501.0+2238_daily_bin349.fits" evtable="EVENTS" scfile=/scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits sctable="SC_DATA" outfile=/scratch/kocevski/933273/ltcube_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.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/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits
.....................!
real 12.04
user 11.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933273/ft1_filtered_4FGL_J1501.0+2238_daily_bin349.fits evtable="EVENTS" scfile=/scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits sctable="SC_DATA" expcube=/scratch/kocevski/933273/ltcube_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.fits outfile=/scratch/kocevski/933273/expmap_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.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/933273/ltcube_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.fits
.....................!
real 192.16
user 186.16
sys 5.59

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J1501.0+2238 @ 225.257 22.6364

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933273/ft1_filtered_4FGL_J1501.0+2238_daily_bin349.fits scfile=/scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits outfile=/scratch/kocevski/933273/cmap_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.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=225.257 yref=22.6364 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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933273/ft1_filtered_4FGL_J1501.0+2238_daily_bin349.fits scfile=/scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits outfile=/scratch/kocevski/933273/cmap_HighResolution_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.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=225.257 yref=22.6364 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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933273/ft1_filtered_4FGL_J1501.0+2238_daily_bin349.fits evtable="EVENTS" scfile=/scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933273/Model_4FGL_J1501.0+2238_daily_bin349.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/933273/ft1_filtered_4FGL_J1501.0+2238_daily_bin349.fits.....................!
real 61.37
user 59.96
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933273/ft1_filtered_4FGL_J1501.0+2238_daily_bin349.fits', '/scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits', expMap='/scratch/kocevski/933273/expmap_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.fits', expCube='/scratch/kocevski/933273/ltcube_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933273/Model_4FGL_J1501.0+2238_daily_bin349.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1501.0+2238'

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933273/ft1_filtered_4FGL_J1501.0+2238_daily_bin349.fits
Spacecraft file(s): /scratch/kocevski/933273/ft2_4FGL_J1501.0+2238_daily_bin349.fits
Exposure map: /scratch/kocevski/933273/expmap_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.fits
Exposure cube: /scratch/kocevski/933273/ltcube_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933273/Model_4FGL_J1501.0+2238_daily_bin349.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) = 7699.65610016

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    9.0880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23561E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    20.705       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.040       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.832       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.645       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .84576       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.6416       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .63216       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7699.652     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2330 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2949       -.98289E-07** at limit **
   2  norm          9.0885        3.1571       -.16375E-07    .99343E-04
   3  Prefactor     .10000E-03    4.5254       -.25694E-08** at limit **
   4  norm          .10000E-03    .99566        .77585E-07** at limit **
   5  norm          .10000E-03    1.4117       -.19565E-07** at limit **
   6  Prefactor     .10000E-03    29.884        .10279E-05** at limit **
   7  Prefactor     .10000E-03    10.057       -.67695E-06** at limit **
   8  Prefactor     13.327        16.954        .31548E-05   -.23542E-06
   9  Prefactor     .10000E-03    71.219       -.11255E-04** at limit **
  10  Prefactor     .10000E-03    32.725        .20647E-04** at limit **
  11  Prefactor     .10000E-03    21.034       -.69295E-05** at limit **
  12  norm          20.705        25.988       -.42070E-06    .21272E-05
  13  Prefactor     31.033        53.538       -.97782E-05    .37535E-04
  14  Prefactor     .10000E-03    8.7326        .26426E-06** at limit **
  15  norm          18.833        2.9345       -.52152E-08    .17494E-04
  16  Prefactor     .10000E-03    26.606       -.19124E-04** at limit **
  17  Prefactor     15.646        13.822       -.92339E-07   -.25179E-04
  18  Prefactor     .10000E-03    20.131        .12884E-04** at limit **
  19  Prefactor     .84600        2.2961       -.10520E-05   -.15029E-02
  20  Prefactor     .10000E-03    21.150       -.32075E-05** at limit **
  21  Normalizat    1.6416        .20331        .88580E-06    .22258E-03
  22  Prefactor     .63207        .13144        .40864E-06    .23536E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 9.08853
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3267
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.7046
  Prefactor  = 31.0331
  Prefactor  = 0.0001
  norm       = 18.8326
  Prefactor  = 0.0001
  Prefactor  = 15.6461
  Prefactor  = 0.0001
  Prefactor  = 0.846001
  Prefactor  = 0.0001
  Normalizat = 1.64155
  Prefactor  = 0.632071
 **********
 **   18 **HESSE 
 **********

 FCN=   7699.652     FROM HESSE     STATUS=OK           334 CALLS     2664 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2966        .12982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          9.0885        3.1584        .89187E-04   -1.5105    
   3  Prefactor     .10000E-03    4.5952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.0106        .85473E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4161        .10181E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.327        16.913        .10959E-03   -1.4978    
   9  Prefactor     .10000E-03    72.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          20.705        25.990        .88023E-04   -1.4798    
  13  Prefactor     31.033        53.579        .71917E-04   -1.4593    
  14  Prefactor     .10000E-03    9.0808        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.833        2.9473        .52170E-04   -1.4840    
  16  Prefactor     .10000E-03    26.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.646        13.843        .10126E-03   -1.4917    
  18  Prefactor     .10000E-03    20.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .84600        2.2882        .21406E-03   -1.5524    
  20  Prefactor     .10000E-03    21.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.6416        .24410        .26892E-03   -.73875    
  22  Prefactor     .63207        .15691        .26641E-03   -1.0625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54991e-09
Minuit parameter uncertainties:
  1  1.60061e-06
  2  3.15846
  3  1.29473e-05
  4  2.0733e-06
  5  1.07196e-06
  6  2.71632e-05
  7  1.15449e-05
  8  16.919
  9  0.000298819
  10  6.68664e-05
  11  0.000110036
  12  26.0044
  13  53.6617
  14  6.44882e-06
  15  2.9473
  16  4.76929e-05
  17  13.8455
  18  4.44853e-06
  19  2.28839
  20  7.69998e-06
  21  0.244277
  22  0.157019
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.000e-04  1.100e-04  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  6.321e-01  1.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.642e+00  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 225.257 22.636
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933273/likelihoodResults_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.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) = 7699.65228727
delta logL = -0.000220938772145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7699.65206457
delta logL = 1.7624697648e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38744E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1383       1.0000          .0000       10.000    
     3 'Normalizat'    1.6415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63211       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7699.441     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      304 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71137        77.015        .10639E-01   -.16876E-02
   2  Index         3.2793        6.6278        .11000        .20470E-03
   3  Normalizat    1.6056        .19209        .61363E-01   -.86632E-04
   4  Prefactor     .63979        .78372E-01    .59883E-01   -.95637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.711369
  Index      = 3.27927
  Normalizat = 1.60561
  Prefactor  = 0.639795
 **********
 **   18 **HESSE 
 **********

 FCN=   7699.441     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      335 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71137        83.707        .11148E-03   -1.5877    
   2  Index         3.2793        6.1529        .81982E-02   -.35133    
   3  Normalizat    1.6056        .20302        .27136E-03   -.74852    
   4  Prefactor     .63979        .13930        .26489E-03   -1.0594    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.31554e-06
Minuit parameter uncertainties:
  1  15.4544
  2  8.70393
  3  0.203127
  4  0.139374
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933273': 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) = 7699.4414487
delta logL = 0.210617627673

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  7.114e-01  1.545e+01  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  3.279e+00  8.704e+00  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  6.398e-01  1.394e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.606e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 225.257 22.636

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/933273/cmap_HighResolution_329788801_330048001_4FGL_J1501.0+2238_daily_bin349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.18e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-10 17:47:31.246226', job_id='933273', GAL2='0.64', fit_tolerance='1e-08', EG2='1.61', EG='1.64', time_epoch_completed='1631321251.25', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='2.11e-01', ts2='0.44', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='349' AND source_name='4FGL J1501.0+2238' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 17:47:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 933273: <4FGL_J1501.0+2238_daily_bin349> in cluster <slac> Done

Job <4FGL_J1501.0+2238_daily_bin349> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 10 17:36:07 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 17:36:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 17:36:08 2021
Terminated at Fri Sep 10 17:47:32 2021
Results reported at Fri Sep 10 17:47:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_daily_bin349 225.257 22.6364 329788801 330048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1501.0+2238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   670.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            685 sec.

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

