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


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1130
RA = 226.821, Dec = 17.3519
tmin = 532224001, tmax = 532483201
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='70396', job_status='RUN', time_executed='2021-09-11 01:05:11.767723', time_epoch_executed='1631347511.77' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/70396

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/70396/ft1_4FGL_J1507.2+1721_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/70396/ft1_4FGL_J1507.2+1721_daily_bin1130.fits outfile=/scratch/kocevski/70396/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1130.fits ra=226.821 dec=17.3519 rad=12.0 tmin=532224001.0 tmax=532483201.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.26
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.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/70396/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1130.fits evtable="EVENTS" outfile="/scratch/kocevski/70396/ft1_filtered_4FGL_J1507.2+1721_daily_bin1130.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/70396/ft1_filtered_4FGL_J1507.2+1721_daily_bin1130.fits" evtable="EVENTS" scfile=/scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits sctable="SC_DATA" outfile=/scratch/kocevski/70396/ltcube_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.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/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits
.....................!
real 11.77
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/70396/ft1_filtered_4FGL_J1507.2+1721_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/70396/ltcube_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.fits outfile=/scratch/kocevski/70396/expmap_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.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/70396/ltcube_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.fits
.....................!
real 194.23
user 189.49
sys 4.34

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

Setting source of interest to:
4FGL J1507.2+1721 @ 226.821 17.3519

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/70396/ft1_filtered_4FGL_J1507.2+1721_daily_bin1130.fits scfile=/scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits outfile=/scratch/kocevski/70396/cmap_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.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=226.821 yref=17.3519 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/70396/ft1_filtered_4FGL_J1507.2+1721_daily_bin1130.fits scfile=/scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits outfile=/scratch/kocevski/70396/cmap_HighResolution_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.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=226.821 yref=17.3519 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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/70396/ft1_filtered_4FGL_J1507.2+1721_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/70396/Model_4FGL_J1507.2+1721_daily_bin1130.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/70396/ft1_filtered_4FGL_J1507.2+1721_daily_bin1130.fits.....................!
real 63.65
user 62.39
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/70396/ft1_filtered_4FGL_J1507.2+1721_daily_bin1130.fits', '/scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits', expMap='/scratch/kocevski/70396/expmap_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.fits', expCube='/scratch/kocevski/70396/ltcube_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/70396/Model_4FGL_J1507.2+1721_daily_bin1130.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1507.2+1721'

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  3.297e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/70396/ft1_filtered_4FGL_J1507.2+1721_daily_bin1130.fits
Spacecraft file(s): /scratch/kocevski/70396/ft2_4FGL_J1507.2+1721_daily_bin1130.fits
Exposure map: /scratch/kocevski/70396/expmap_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.fits
Exposure cube: /scratch/kocevski/70396/ltcube_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/70396/Model_4FGL_J1507.2+1721_daily_bin1130.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) = 8500.92052235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.133       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7169       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1088       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7173       1.0000         .10000E-03   10000.    
     5 'norm      '    4.9386       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.928       1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.774       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.187       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.291       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9615       1.0000         .10000E-03   10000.    
    13 'norm      '    2.3629       1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.909       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25169E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.597       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3290       1.0000         .10000E-03   10000.    
    20 'Prefactor '    119.79       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3556       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91967       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8500.897     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2382 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.139        13.269       -.27486E-07   -.16441E-03
   2  norm          1.7169        1.6661       -.23885E-07   -.17502E-04
   3  Prefactor     7.1108        10.989       -.39776E-06    .12052E-03
   4  norm          5.7181        3.0450       -.90604E-08    .19699E-04
   5  norm          4.9393        3.9353        .72577E-06    .10173E-03
   6  Prefactor     47.967        35.126       -.15703E-05   -.40133E-03
   7  Prefactor     49.790        33.999       -.10415E-05   -.27678E-03
   8  Prefactor     .10000E-03    11.184       -.71191E-06** at limit **
   9  Prefactor     .10000E-03    11.992       -.10044E-05** at limit **
  10  Prefactor     42.198        49.837       -.12234E-06   -.33075E-04
  11  Prefactor     11.296        9.2700       -.16689E-06    .67054E-04
  12  norm          1.9617        .32512       -.26432E-07    .23217E-04
  13  norm          2.3620        3.8493        .51299E-05    .30894E-03
  14  norm          .10000E-03    21.657       -.24975E-07** at limit **
  15  Prefactor     23.712        55.061       -.33451E-05   -.17994E-03
  16  Prefactor     .10013E-03    5.3980       -.19578E-05** at limit **
  17  Prefactor     19.644        42.438       -.84379E-06    .29283E-04
  18  Prefactor     .10000E-03    15.004        .24348E-06** at limit **
  19  norm          1.3285        2.2231        .40045E-06    .66747E-04
  20  Prefactor     119.79        50.129       -.21392E-06   -.67581E-05
  21  Normalizat    1.3545        .25607        .50987E-05   -.58203E-04
  22  Prefactor     .92034        .14415       -.35539E-05    .41418E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1395
  norm       = 1.71693
  Prefactor  = 7.11078
  norm       = 5.7181
  norm       = 4.93935
  Prefactor  = 47.9667
  Prefactor  = 49.7899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.1979
  Prefactor  = 11.2957
  norm       = 1.9617
  norm       = 2.36195
  norm       = 0.0001
  Prefactor  = 23.7119
  Prefactor  = 0.000100132
  Prefactor  = 19.6439
  Prefactor  = 0.0001
  norm       = 1.32855
  Prefactor  = 119.793
  Normalizat = 1.35449
  Prefactor  = 0.920341
 **********
 **   18 **HESSE 
 **********

 FCN=   8500.897     FROM HESSE     STATUS=OK           344 CALLS     2726 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.139        13.159        .12007E-03   -1.5040    
   2  norm          1.7169        1.6670        .11427E-03   -1.5446    
   3  Prefactor     7.1108        10.928        .15045E-03   -1.5175    
   4  norm          5.7181        3.0422        .11240E-03   -1.5230    
   5  norm          4.9393        3.9409        .79175E-03   -1.5263    
   6  Prefactor     47.967        35.294        .57921E-04   -1.4322    
   7  Prefactor     49.790        34.119        .56842E-04   -1.4296    
   8  Prefactor     .10000E-03    11.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.198        49.831        .61719E-04   -1.4408    
  11  Prefactor     11.296        9.2761        .11923E-03   -1.5036    
  12  norm          1.9617        .32576        .19999E-04   -1.5428    
  13  norm          2.3620        3.8964        .11449E-02   -1.5401    
  14  norm          .10000E-03    21.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.712        55.308        .81921E-04   -1.4734    
  16  Prefactor     .10013E-03    25.310        .40041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.644        42.619        .90476E-04   -1.4821    
  18  Prefactor     .10000E-03    15.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3285        2.1782        .17044E-03   -1.5477    
  20  Prefactor     119.79        49.994        .36767E-04   -1.3515    
  21  Normalizat    1.3545        .29871        .33566E-03   -.81954    
  22  Prefactor     .92034        .16626        .24193E-03   -.95434    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90763e-09
Minuit parameter uncertainties:
  1  13.1626
  2  1.66705
  3  10.9307
  4  3.04232
  5  3.94107
  6  35.3095
  7  34.1326
  8  1.1597e-06
  9  2.36449e-05
  10  49.88
  11  9.27729
  12  0.325758
  13  3.89677
  14  9.75676e-07
  15  55.4275
  16  0.00366103
  17  42.6848
  18  2.91019e-05
  19  2.17831
  20  50.0111
  21  0.299093
  22  0.166354
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  9.757e-07  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.534e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.203e-01  1.664e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.354e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 226.821 17.352
Photon Flux Upper Limit: 1.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.13e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/70396/likelihoodResults_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.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) = 8500.8975107
delta logL = -0.000219726140131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8500.39902958
delta logL = 0.498261392062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66788E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+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.

 FCN=   8500.399     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      305 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66849E-01    .75255E-01    .23931E-04   -.24894E-03
   2  alpha         5.0000        .81777        .50000    ** at limit **
   3  Normalizat    1.2744        .28353        .34423E-03   -.24559E-03
   4  Prefactor     .94400        .16563        .23908E-03   -.28349E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0668491
  alpha      = 5
  Normalizat = 1.27437
  Prefactor  = 0.944004
 **********
 **   18 **HESSE 
 **********

 FCN=   8500.399     FROM HESSE     STATUS=OK            29 CALLS      334 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66849E-01    .75093E-01    .95722E-06   -1.5656    
   2  alpha         5.0000        .81474        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2744        .28391        .13769E-04   -.84335    
   4  Prefactor     .94400        .16581        .47816E-04   -.94620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11048e-10
Minuit parameter uncertainties:
  1  0.0750931
  2  4.12142e-06
  3  0.284258
  4  0.165904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/70396': 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) = 8500.3990292
delta logL = 0.49826177266

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  6.685e-02  7.509e-02  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  5.000e+00  4.121e-06  0.000e+00  5.000e+00 ( 1.000e+00)
221         beta:  2.414e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
222           Eb:  3.634e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  9.440e-01  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  1.274e+00  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.06
Ra Dec: 226.821 17.352
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.68e-08 +/- 8.61e-08
Energy Flux (Free Index): 1.22e-05 +/- 1.37e-05

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/70396/cmap_HighResolution_532224001_532483201_4FGL_J1507.2+1721_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-05', comment='SUCCESS', energy_flux2='1.22e-05', dlogl='4.98e-01', photon_flux2='7.68e-08', job_status='DONE', time_completed='2021-09-11 01:17:19.365194', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.83e-08', energy_flux_error2='1.37e-05', EG='1.35', time_epoch_completed='1631348239.37', return_code='0', job_id='70396', GAL2='0.94', EG2='1.27', return_code2='0', photon_flux_error2='8.61e-08', ts2='1.06', photon_index='1.53' WHERE bin_id='1130' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:17:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0170>
Subject: Job 70396: <4FGL_J1507.2+1721_daily_bin1130> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1130> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep 11 01:01:14 2021
Job was executed on host(s) <bullet0170>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:01:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 01:01:16 2021
Terminated at Sat Sep 11 01:17:19 2021
Results reported at Sat Sep 11 01:17:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1130 226.821 17.3519 532224001 532483201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1507.2+1721 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   661.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             270.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            965 sec.

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

