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


Performing analysis on: 4FGL_J2022.5+7612_daily_bin451
RA = 305.646, Dec = 76.2007
tmin = 356227201, tmax = 356486401
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='862080', job_status='RUN', time_executed='2021-09-25 01:28:02.443624', time_epoch_executed='1632558482.44' WHERE source_name='4FGL J2022.5+7612' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/862080

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/862080/ft1_4FGL_J2022.5+7612_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/862080/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/862080/ft2_4FGL_J2022.5+7612_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/862080/ft1_4FGL_J2022.5+7612_daily_bin451.fits outfile=/scratch/kocevski/862080/ft1_filteredMKT_4FGL_J2022.5+7612_daily_bin451.fits ra=305.646 dec=76.2007 rad=12.0 tmin=356227201.0 tmax=356486401.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.12
user 2.89
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/862080/ft2_4FGL_J2022.5+7612_daily_bin451.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/862080/ft1_filteredMKT_4FGL_J2022.5+7612_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/862080/ft1_filtered_4FGL_J2022.5+7612_daily_bin451.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.78
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/862080/ft1_filtered_4FGL_J2022.5+7612_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/862080/ft2_4FGL_J2022.5+7612_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/862080/ltcube_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.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/862080/ft2_4FGL_J2022.5+7612_daily_bin451.fits
.....................!
real 3.83
user 2.95
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/862080/ft1_filtered_4FGL_J2022.5+7612_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/862080/ft2_4FGL_J2022.5+7612_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/862080/ltcube_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.fits outfile=/scratch/kocevski/862080/expmap_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.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/862080/ltcube_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.fits
.....................!
real 194.50
user 188.22
sys 4.69

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/862080/ft1_filtered_4FGL_J2022.5+7612_daily_bin451.fits scfile=/scratch/kocevski/862080/ft2_4FGL_J2022.5+7612_daily_bin451.fits outfile=/scratch/kocevski/862080/cmap_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/862080/ft1_filtered_4FGL_J2022.5+7612_daily_bin451.fits scfile=/scratch/kocevski/862080/ft2_4FGL_J2022.5+7612_daily_bin451.fits outfile=/scratch/kocevski/862080/cmap_HighResolution_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.62
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/862080/ft1_filtered_4FGL_J2022.5+7612_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/862080/ft2_4FGL_J2022.5+7612_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/862080/Model_4FGL_J2022.5+7612_daily_bin451.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/862080/ft1_filtered_4FGL_J2022.5+7612_daily_bin451.fits.....................!
real 59.80
user 57.58
sys 1.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/862080/ft1_filtered_4FGL_J2022.5+7612_daily_bin451.fits', '/scratch/kocevski/862080/ft2_4FGL_J2022.5+7612_daily_bin451.fits', expMap='/scratch/kocevski/862080/expmap_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.fits', expCube='/scratch/kocevski/862080/ltcube_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/862080/Model_4FGL_J2022.5+7612_daily_bin451.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/862080/ft1_filtered_4FGL_J2022.5+7612_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/862080/ft2_4FGL_J2022.5+7612_daily_bin451.fits
Exposure map: /scratch/kocevski/862080/expmap_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.fits
Exposure cube: /scratch/kocevski/862080/ltcube_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/862080/Model_4FGL_J2022.5+7612_daily_bin451.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) = 3571.27848136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3087       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    120.91       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1509       1.0000         .10000E-03   10000.    
     5 'norm      '    20.607       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8821       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34970       1.0000         .10000E-03   10000.    
    12 'norm      '    .82908       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3163       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.2428       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.059       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.947       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90187       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0132       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3571.276     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     2917 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3088        3.6809        .14290E-06   -.11470E-03
   2  Prefactor     .10000E-03    21.527        .34020E-06** at limit **
   3  Prefactor     120.90        142.93       -.56828E-05   -.65742E-04
   4  norm          1.1508        1.0449        .21855E-08    .17653E-04
   5  norm          20.605        13.972       -.35052E-06   -.30363E-05
   6  Prefactor     2.8818        9.3692        .42840E-05   -.81374E-03
   7  Prefactor     .10000E-03    17.258        .12412E-05** at limit **
   8  Prefactor     .10000E-03    107.97       -.61476E-05** at limit **
   9  norm          .10000E-03    2.6512       -.24016E-07** at limit **
  10  Prefactor     .10000E-03    39.262       -.68862E-05** at limit **
  11  Prefactor     .32738        14.340        .17506E-05   -.29569E-03
  12  norm          .82936        2.6397        .13587E-06   -.19252E-03
  13  norm          .10002E-03    48.706        .12428E-04** at limit **
  14  norm          4.3158        7.4478       -.20868E-05   -.39709E-03
  15  norm          .10000E-03    19.217       -.24664E-05** at limit **
  16  Prefactor     .10000E-03    26.764        .28568E-05** at limit **
  17  norm          9.2447        9.9232       -.26762E-06   -.19316E-03
  18  Prefactor     .10000E-03    40.218       -.61327E-05** at limit **
  19  norm          13.057        19.128        .15543E-06    .43342E-05
  20  Prefactor     .10000E-03    2.5142        .26998E-07** at limit **
  21  Prefactor     58.949        79.741        .12472E-05    .21189E-04
  22  norm          .10000E-03    28.285        .84397E-06** at limit **
  23  Prefactor     .10000E-03    16.151       -.20717E-06** at limit **
  24  Normalizat    .90217        .39978        .28953E-06   -.47145E-04
  25  Prefactor     1.0132        .10719       -.45082E-07   -.10486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30882
  Prefactor  = 0.0001
  Prefactor  = 120.896
  norm       = 1.15082
  norm       = 20.605
  Prefactor  = 2.88178
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.32738
  norm       = 0.829362
  norm       = 0.000100015
  norm       = 4.31585
  norm       = 0.000100001
  Prefactor  = 0.000100001
  norm       = 9.2447
  Prefactor  = 0.000100003
  norm       = 13.0569
  Prefactor  = 0.0001
  Prefactor  = 58.9487
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.902168
  Prefactor  = 1.01319
 **********
 **   18 **HESSE 
 **********

 FCN=   3571.276     FROM HESSE     STATUS=OK           423 CALLS     3340 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3088        3.6212        .18706E-03   -1.5479    
   2  Prefactor     .10000E-03    21.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     120.90        143.75        .18300E-03   -1.3504    
   4  norm          1.1508        1.0633        .56102E-04   -1.5493    
   5  norm          20.605        14.149        .88234E-04   -1.4800    
   6  Prefactor     2.8818        16.130        .11970E-02   -1.5368    
   7  Prefactor     .10000E-03    17.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    108.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.6542        .95034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    39.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .32738        94.882        .40099E-02   -1.5594    
  12  norm          .82936        2.5836        .16848E-03   -1.5526    
  13  norm          .10002E-03    50.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3158        7.5140        .19390E-03   -1.5292    
  15  norm          .10000E-03    19.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.2447        9.9031        .13183E-03   -1.5100    
  18  Prefactor     .10000E-03    40.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.057        19.135        .11084E-03   -1.4985    
  20  Prefactor     .10000E-03    2.5157        .92544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.949        79.931        .52255E-04   -1.4171    
  22  norm          .10000E-03    28.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90217        .42086        .51494E-03   -.96384    
  25  Prefactor     1.0132        .11349        .13624E-03   -.92291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69498e-09
Minuit parameter uncertainties:
  1  3.62176
  2  2.81354e-05
  3  144.167
  4  1.06327
  5  14.1518
  6  13.6413
  7  9.63756e-05
  8  0.00127915
  9  1.63077e-06
  10  0.000852342
  11  11.1629
  12  2.58394
  13  0.00173866
  14  7.51565
  15  0.000215301
  16  0.00028685
  17  9.90486
  18  0.000696678
  19  19.144
  20  5.60521e-07
  21  80.0768
  22  8.80924e-05
  23  2.02597e-05
  24  0.422408
  25  0.113517
Done.

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

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  1.000e-04  6.967e-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:  1.013e+00  1.135e-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:  9.022e-01  4.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 305.646 76.201
Photon Flux Upper Limit: 2.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/862080/likelihoodResults_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.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) = 3571.27577302
delta logL = -0.000117459166631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3571.27565543
delta logL = 1.28873580252e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9545       1.0000          .0000       10.000    
     3 'Normalizat'    .90216       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0132       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=   3571.276     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      252 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .64197E-01    .90712E-01** at limit **
   2  Index         2.9695        5.6284        .50000       -.34278E-05
   3  Normalizat    .90217        .10254E-02    .11610        .47019E-04
   4  Prefactor     1.0132        .28733E-03    .30829E-01    .81319E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.9695
  Normalizat = 0.90217
  Prefactor  = 1.01319
 **********
 **   18 **HESSE 
 **********

 FCN=   3571.276     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      287 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.740        .32400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9695        8.3869        .50000       -.41818    
   3  Normalizat    .90217        .11841E-01    .51494E-03   -.96384    
   4  Prefactor     1.0132        .33320E-02    .13624E-03   -.92291    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18793e-08
Minuit parameter uncertainties:
  1  0.000643849
  2  135.926
  3  0.0118412
  4  0.00333203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/862080': 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) = 3571.27565542
delta logL = 1.40929387271e-07

Extracting fit parameters...

4FGL J2022.5+7612
   Spectrum: PowerLaw
471    Prefactor:  1.000e-04  6.438e-04  1.000e-04  1.000e+04 ( 1.000e-13)
472        Index:  2.970e+00  1.359e+02  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:  1.013e+00  3.332e-03  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:  9.022e-01  1.184e-02  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/862080/cmap_HighResolution_356227201_356486401_4FGL_J2022.5+7612_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-02', job_status='DONE', photon_flux_upper_limit='2.28e-07', time_completed='2021-09-25 01:38:32.407013', job_id='862080', GAL2='1.01', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632559112.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='451' AND source_name='4FGL J2022.5+7612' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 01:38:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 862080: <4FGL_J2022.5+7612_daily_bin451> in cluster <slac> Done

Job <4FGL_J2022.5+7612_daily_bin451> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 25 01:26:53 2021
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 01:27:33 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:27:33 2021
Terminated at Sat Sep 25 01:38:33 2021
Results reported at Sat Sep 25 01:38:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2022.5+7612_daily_bin451 305.646 76.2007 356227201 356486401 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 :                                   622.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            700 sec.

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

