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


Performing analysis on: 4FGL_J2022.5+7612_daily_bin1205
RA = 305.646, Dec = 76.2007
tmin = 551664001, tmax = 551923201
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='870085', job_status='RUN', time_executed='2021-09-25 01:59:58.577728', time_epoch_executed='1632560398.58' WHERE source_name='4FGL J2022.5+7612' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/870085

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/870085/ft1_4FGL_J2022.5+7612_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/870085/ft1_4FGL_J2022.5+7612_daily_bin1205.fits outfile=/scratch/kocevski/870085/ft1_filteredMKT_4FGL_J2022.5+7612_daily_bin1205.fits ra=305.646 dec=76.2007 rad=12.0 tmin=551664001.0 tmax=551923201.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.79
user 3.55
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.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/870085/ft1_filteredMKT_4FGL_J2022.5+7612_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/870085/ft1_filtered_4FGL_J2022.5+7612_daily_bin1205.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/870085/ft1_filtered_4FGL_J2022.5+7612_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/870085/ltcube_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.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/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits
.....................!
real 13.33
user 12.96
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/870085/ft1_filtered_4FGL_J2022.5+7612_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/870085/ltcube_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.fits outfile=/scratch/kocevski/870085/expmap_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.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/870085/ltcube_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.fits
.....................!
real 192.18
user 187.35
sys 4.36

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
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Added 206 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2022.5+7612 @ 305.646 76.2007

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/870085/ft1_filtered_4FGL_J2022.5+7612_daily_bin1205.fits scfile=/scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits outfile=/scratch/kocevski/870085/cmap_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.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=305.646 yref=76.2007 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/870085/ft1_filtered_4FGL_J2022.5+7612_daily_bin1205.fits scfile=/scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits outfile=/scratch/kocevski/870085/cmap_HighResolution_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.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=305.646 yref=76.2007 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/870085/ft1_filtered_4FGL_J2022.5+7612_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/870085/Model_4FGL_J2022.5+7612_daily_bin1205.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 FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
Working on...
/scratch/kocevski/870085/ft1_filtered_4FGL_J2022.5+7612_daily_bin1205.fits......!
real 14.97
user 13.16
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/870085/ft1_filtered_4FGL_J2022.5+7612_daily_bin1205.fits', '/scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits', expMap='/scratch/kocevski/870085/expmap_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.fits', expCube='/scratch/kocevski/870085/ltcube_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/870085/Model_4FGL_J2022.5+7612_daily_bin1205.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2022.5+7612'

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  8.450e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
472        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/870085/ft1_filtered_4FGL_J2022.5+7612_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/870085/ft2_4FGL_J2022.5+7612_daily_bin1205.fits
Exposure map: /scratch/kocevski/870085/expmap_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.fits
Exposure cube: /scratch/kocevski/870085/ltcube_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/870085/Model_4FGL_J2022.5+7612_daily_bin1205.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) = 60.4163036673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14519E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11969       1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.882       1.0000         .10000E-03   10000.    
     4 'norm      '    .10470E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .46756       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27229       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43517E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .35642E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .95086E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37174E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15566E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12945E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .67094E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    .13778E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10385       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51345E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .16615E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16788       1.0000         .10000E-03   10000.    
    19 'norm      '    .17180E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    107.14       1.0000         .10000E-03   10000.    
    21 'Prefactor '    894.10       1.0000         .10000E-03   10000.    
    22 'norm      '    1508.8       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .33306       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .60486       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .59443       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   58.05587     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1998 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    141.42       -.11093E-04** at limit **
   2  Prefactor     .10000E-03    911.15        .21080E-04** at limit **
   3  Prefactor     5287.9        7450.0       -.21427E-04   -.10629E-03
   4  norm          .10000E-03    20.508        .93980E-06** at limit **
   5  norm          .10000E-03    185.57       -.93055E-06** at limit **
   6  Prefactor     .10000E-03    268.71        .51725E-05** at limit **
   7  Prefactor     .10000E-03    515.79       -.18411E-04** at limit **
   8  Prefactor     .10000E-03    6371.2       -.59449E-04** at limit **
   9  norm          .10000E-03    114.60       -.24868E-05** at limit **
  10  Prefactor     .10000E-03    382.89       -.51222E-05** at limit **
  11  Prefactor     .10000E-03    88.961        .91016E-05** at limit **
  12  norm          .10000E-03    38.254        .13489E-05** at limit **
  13  norm          .10000E-03    1595.9        .98803E-05** at limit **
  14  norm          .10000E-03    108.51       -.24960E-04** at limit **
  15  norm          .10000E-03    596.64        .16602E-04** at limit **
  16  Prefactor     .10000E-03    334.58        .10534E-04** at limit **
  17  norm          .10000E-03    65.317        .45139E-06** at limit **
  18  Prefactor     .10000E-03    298.68       -.74446E-05** at limit **
  19  norm          .10000E-03    227.53        .35196E-06** at limit **
  20  Prefactor     137.39        188.36        .14610E-04   -.35236E-04
  21  Prefactor     949.88        1096.4        .52663E-04    .95819E-02
  22  norm          1511.8        386.86        .14917E-04   -.33985E-01
  23  Prefactor     .10000E-03    253.83        .11691E-05** at limit **
  24  Normalizat    .10000E-01    1.4179       -.47542E-05** at limit **
  25  Prefactor     .47508        .46489        .79881E-04   -.79867E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5287.89
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 137.385
  Prefactor  = 949.884
  norm       = 1511.81
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.475079
 **********
 **   18 **HESSE 
 **********

 FCN=   58.05587     FROM HESSE     STATUS=OK           453 CALLS     2451 TOTAL
                     EDM=   .30E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    140.15        .90954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    901.94        .96047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5287.9        7449.7        .12552E-02    .57611E-01
   4  norm          .10000E-03    20.508        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    184.66        .11138E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    268.37        .10303E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    515.24        .96939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6370.6        .91998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    114.19        .94878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    382.90        .92073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    88.527        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    38.230        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1588.2        .93532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    108.59        .90918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    594.72        .95296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    334.02        .95828E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    64.333        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    299.97        .98301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    227.27        .91086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     137.39        186.05        .97131E-03   -1.3358    
  21  Prefactor     949.88        1130.0        .35047E-03   -.94419    
  22  norm          1511.8        1711.3        .27938E-03   -.77209    
  23  Prefactor     .10000E-03    251.39        .10569E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    1.4116        .13029       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .47508        .46196        .40978E-01   -1.1313    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000303497
Minuit parameter uncertainties:
  1  0.000234018
  2  0.00215036
  3  6147.91
  4  1.15551e-05
  5  2.81123e-05
  6  0.000145414
  7  0.00083279
  8  0.00161113
  9  1.19997e-05
  10  0.000487325
  11  0.000221717
  12  9.66975e-06
  13  0.00183329
  14  0.000126504
  15  0.000144328
  16  0.000157018
  17  2.88474e-05
  18  0.000761097
  19  5.05881e-05
  20  186.846
  21  1160.02
  22  1784.13
  23  6.30369e-05
  24  1.60771e-07
  25  0.465668
Done.

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

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  1.000e-04  7.611e-04  1.000e-04  1.000e+04 ( 1.000e-13)
472        Index:  2.269e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  4.751e-01  4.657e-01  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
678   Normalization:  1.000e-02  1.608e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 305.646 76.201
Photon Flux Upper Limit: 4.89e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/870085/likelihoodResults_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.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) = 58.055882552
delta logL = -1.56114582595e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 58.0558834503
delta logL = -1.65097145697e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95095E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2684       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47556       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   58.05587     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      194 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    475.64        .90836E-02** at limit **
   2  Index         2.2313        6.8924        .50000        .99136E-06
   3  Normalizat    .10000E-01    .44543E-02    .13030    ** at limit **
   4  Prefactor     .47507        .22433E-01    .39329E-01   -.12445E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100181
  Index      = 2.23134
  Normalizat = 0.01
  Prefactor  = 0.47507
 **********
 **   18 **HESSE 
 **********

 FCN=   58.05587     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      223 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    6432.9        .13386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2313        5.3970        .50000       -.58684    
   3  Normalizat    .10000E-01    .30033E-01    .28727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47507        .58137E-01    .14347E-03   -1.1313    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.44921e-08
Minuit parameter uncertainties:
  1  0.0480062
  2  1604.7
  3  1.70017e-07
  4  0.0581447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/870085': 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) = 58.055866932
delta logL = 8.60963922378e-09

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  1.002e-04  4.801e-02  1.000e-04  1.000e+04 ( 1.000e-13)
472        Index:  2.231e+00  1.605e+03  0.000e+00  1.000e+01 (-1.000e+00)
473        Scale:  1.333e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  4.751e-01  5.814e-02  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
678   Normalization:  1.000e-02  1.700e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 305.646 76.201

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/870085/cmap_HighResolution_551664001_551923201_4FGL_J2022.5+7612_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-01', job_status='DONE', photon_flux_upper_limit='4.89e-06', time_completed='2021-09-25 02:05:44.031248', job_id='870085', GAL2='0.48', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632560744.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='8.61e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='1205' AND source_name='4FGL J2022.5+7612' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 02:05:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 870085: <4FGL_J2022.5+7612_daily_bin1205> in cluster <slac> Done

Job <4FGL_J2022.5+7612_daily_bin1205> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 01:56:55 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 01:57:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 01:57:03 2021
Terminated at Sat Sep 25 02:05:44 2021
Results reported at Sat Sep 25 02:05:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.5+7612_daily_bin1205 305.646 76.2007 551664001 551923201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2022.5+7612 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   340.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   521 sec.
    Turnaround time :                            529 sec.

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

