/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 179 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7439
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1507.2+1721_daily_bin1523
RA = 226.821, Dec = 17.3519
tmin = 634089601, tmax = 634348801
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='72233', job_status='RUN', time_executed='2021-09-11 01:09:32.686278', time_epoch_executed='1631347772.69' WHERE source_name='4FGL J1507.2+1721' and cadence='daily' and bin_id='1523'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72233/ft1_4FGL_J1507.2+1721_daily_bin1523.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72233/ft2_4FGL_J1507.2+1721_daily_bin1523.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72233/ft1_4FGL_J1507.2+1721_daily_bin1523.fits outfile=/scratch/kocevski/72233/ft1_filteredMKT_4FGL_J1507.2+1721_daily_bin1523.fits ra=226.821 dec=17.3519 rad=12.0 tmin=634089601.0 tmax=634348801.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 4.90
user 4.61
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72233/ft1_filtered_4FGL_J1507.2+1721_daily_bin1523.fits evtable="EVENTS" scfile=/scratch/kocevski/72233/ft2_4FGL_J1507.2+1721_daily_bin1523.fits sctable="SC_DATA" expcube=/scratch/kocevski/72233/ltcube_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.fits outfile=/scratch/kocevski/72233/expmap_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.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/72233/ltcube_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.fits
.....................!
real 189.83
user 184.92
sys 4.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 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/72233/ft1_filtered_4FGL_J1507.2+1721_daily_bin1523.fits scfile=/scratch/kocevski/72233/ft2_4FGL_J1507.2+1721_daily_bin1523.fits outfile=/scratch/kocevski/72233/cmap_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72233/ft1_filtered_4FGL_J1507.2+1721_daily_bin1523.fits scfile=/scratch/kocevski/72233/ft2_4FGL_J1507.2+1721_daily_bin1523.fits outfile=/scratch/kocevski/72233/cmap_HighResolution_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.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.39
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72233/ft1_filtered_4FGL_J1507.2+1721_daily_bin1523.fits', '/scratch/kocevski/72233/ft2_4FGL_J1507.2+1721_daily_bin1523.fits', expMap='/scratch/kocevski/72233/expmap_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.fits', expCube='/scratch/kocevski/72233/ltcube_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72233/Model_4FGL_J1507.2+1721_daily_bin1523.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/72233/ft1_filtered_4FGL_J1507.2+1721_daily_bin1523.fits
Spacecraft file(s): /scratch/kocevski/72233/ft2_4FGL_J1507.2+1721_daily_bin1523.fits
Exposure map: /scratch/kocevski/72233/expmap_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.fits
Exposure cube: /scratch/kocevski/72233/ltcube_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72233/Model_4FGL_J1507.2+1721_daily_bin1523.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) = 6687.07025862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1087       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18679E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    1.8118       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9438       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9659       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6263       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5023       1.0000         .10000E-03   10000.    
    12 'norm      '    .51547       1.0000         .10000E-03   10000.    
    13 'norm      '    5.8807       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.817       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43304       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .96991       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.8556       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0508       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91999       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=   6687.055     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2389 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5292        .45573E-07** at limit **
   2  norm          1.1086        2.1988        .36589E-06    .27296E-04
   3  Prefactor     .10004E-03    5.4033        .73691E-06** at limit **
   4  norm          1.8143        2.7979        .14572E-06   -.21938E-03
   5  norm          5.9417        5.0130        .22417E-05   -.57678E-03
   6  Prefactor     .10000E-03    6.7413       -.15561E-07** at limit **
   7  Prefactor     3.9611        15.768       -.12762E-07   -.56211E-04
   8  Prefactor     .10000E-03    2.8123       -.24682E-07** at limit **
   9  Prefactor     2.6106        33.196       -.12989E-05   -.94008E-04
  10  Prefactor     .10000E-03    17.346        .86482E-06** at limit **
  11  Prefactor     7.4995        8.2879        .15865E-05   -.19755E-03
  12  norm          .51538        .19440        .13036E-07    .46695E-03
  13  norm          5.8804        6.1337        .32752E-07    .70600E-05
  14  norm          .10000E-03    14.396       -.15251E-05** at limit **
  15  Prefactor     34.792        33.697       -.43431E-05   -.52698E-03
  16  Prefactor     .43087        4.4531        .26554E-06   -.13062E-03
  17  Prefactor     .90281        18.066       -.25794E-05    .40687E-03
  18  Prefactor     .10000E-03    9.1626       -.61094E-06** at limit **
  19  norm          8.8547        3.3542       -.52885E-07   -.25764E-03
  20  Prefactor     .10000E-03    10.352        .12348E-05** at limit **
  21  Normalizat    1.0512        .20338       -.87901E-06    .27919E-04
  22  Prefactor     .91984        .12534       -.17321E-06    .88181E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.10863
  Prefactor  = 0.000100042
  norm       = 1.81428
  norm       = 5.94173
  Prefactor  = 0.0001
  Prefactor  = 3.96113
  Prefactor  = 0.0001
  Prefactor  = 2.6106
  Prefactor  = 0.000100001
  Prefactor  = 7.49954
  norm       = 0.515384
  norm       = 5.8804
  norm       = 0.000100001
  Prefactor  = 34.7923
  Prefactor  = 0.430869
  Prefactor  = 0.902805
  Prefactor  = 0.0001
  norm       = 8.85472
  Prefactor  = 0.000100001
  Normalizat = 1.05125
  Prefactor  = 0.919842
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.055     FROM HESSE     STATUS=OK           356 CALLS     2745 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5334        .12697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1086        1.9347        .16606E-02   -1.5497    
   3  Prefactor     .10004E-03    46.935        .35512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.8143        2.7639        .16072E-03   -1.5439    
   5  norm          5.9417        5.1454        .82354E-03   -1.5220    
   6  Prefactor     .10000E-03    6.7454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.9611        15.797        .20254E-03   -1.5310    
   8  Prefactor     .10000E-03    2.8129        .13392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6106        33.802        .25165E-03   -1.5385    
  10  Prefactor     .10000E-03    17.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.4995        8.3386        .73210E-03   -1.5160    
  12  norm          .51538        .19385        .20998E-04   -1.5564    
  13  norm          5.8804        6.1360        .16560E-03   -1.5223    
  14  norm          .10000E-03    14.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.792        35.849        .67916E-04   -1.4528    
  16  Prefactor     .43087        12.509        .33345E-02   -1.5577    
  17  Prefactor     .90281        112.33        .63682E-02   -1.5518    
  18  Prefactor     .10000E-03    9.1894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.8547        3.3596        .89270E-04   -1.5113    
  20  Prefactor     .10000E-03    10.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0512        .24002        .28553E-03   -.91333    
  22  Prefactor     .91984        .15176        .19524E-03   -.95451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.59337e-08
Minuit parameter uncertainties:
  1  1.30569e-07
  2  1.93477
  3  0.00279461
  4  2.76412
  5  5.14575
  6  8.74656e-06
  7  15.8139
  8  1.09821e-06
  9  18.8002
  10  0.00021559
  11  8.33992
  12  0.193852
  13  6.13663
  14  0.000267049
  15  35.8711
  16  4.64371
  17  20.1783
  18  8.23053e-05
  19  3.35971
  20  0.000183776
  21  0.240264
  22  0.151827
Done.

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

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  2.670e-04  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.198e-01  1.518e-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.051e+00  2.403e-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.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72233/likelihoodResults_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.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) = 6687.05547635
delta logL = -0.000320402038597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6687.05515594
delta logL = 9.62700141827e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5238       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91985       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6687.055     FROM MIGRAD    STATUS=FAILED        83 CALLS      231 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10139E-03    1741.5        .18142E-02** at limit **
   2  alpha         1.4026        2.7991        .18422        .17370E-05
   3  Normalizat    1.0512        .64710E-01    .28553E-03    .21923E-03
   4  Prefactor     .91985        .41928E-01    .19524E-03    .63270E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6687.055     FROM SIMPLEX   STATUS=UNCHANGED    147 CALLS      378 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10139E-03    1741.5        .60139E-03** at limit **
   2  alpha         1.4026        2.7991        .14386E-04    .17370E-05
   3  Normalizat    1.0512        .64710E-01    .60870E-06    .21923E-03
   4  Prefactor     .91985        .41928E-01    .22962E-06    .63270E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6687.055     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      422 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.663        .36285E-03** at limit **
   2  alpha         1.2275        3.9075        .73690E-01   -.46283E-09
   3  Normalizat    1.0512        .23214        .11421E-04   -.43399E-04
   4  Prefactor     .91984        .15048        .39047E-04    .10627E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.22749
  Normalizat = 1.05124
  Prefactor  = 0.919844
 **********
 **   18 **HESSE 
 **********

 FCN=   6687.055     FROM HESSE     STATUS=OK            23 CALLS      445 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.430        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.2275        3.7782        .29476E-02   -.53403    
   3  Normalizat    1.0512        .23212        .22843E-05   -.91333    
   4  Prefactor     .91984        .15048        .78095E-05   -.95451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45788e-11
Minuit parameter uncertainties:
  1  1.33523e-05
  2  480.001
  3  0.232344
  4  0.150548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72233': 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) = 6687.05515574
delta logL = 2.05108335649e-07

Extracting fit parameters...

4FGL J1507.2+1721
   Spectrum: LogParabola
219         norm:  1.000e-04  1.335e-05  1.000e-04  1.000e+04 ( 1.000e-14)
220        alpha:  1.227e+00  4.800e+02  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.198e-01  1.505e-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.051e+00  2.323e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 226.821 17.352

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/72233/cmap_HighResolution_634089601_634348801_4FGL_J1507.2+1721_daily_bin1523.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-05', job_status='DONE', photon_flux_upper_limit='1.45e-08', time_completed='2021-09-11 01:21:34.652814', job_id='72233', GAL2='0.92', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1631348494.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.53' WHERE bin_id='1523' AND source_name='4FGL J1507.2+1721' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 01:21:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 72233: <4FGL_J1507.2+1721_daily_bin1523> in cluster <slac> Done

Job <4FGL_J1507.2+1721_daily_bin1523> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 11 01:06:18 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 01:06:20 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:06:20 2021
Terminated at Sat Sep 11 01:21:35 2021
Results reported at Sat Sep 11 01:21:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1507.2+1721_daily_bin1523 226.821 17.3519 634089601 634348801 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 :                                   597.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             241.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

