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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin833
RA = 331.914, Dec = 0.8907
tmin = 455241601, tmax = 455500801
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='200402', job_status='RUN', time_executed='2021-09-28 05:57:56.045870', time_epoch_executed='1632833876.05' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='833'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200402

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200402/ft1_4FGL_J2207.6+0053_daily_bin833.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200402/ft1_4FGL_J2207.6+0053_daily_bin833.fits outfile=/scratch/kocevski/200402/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin833.fits ra=331.914 dec=0.8907 rad=12.0 tmin=455241601.0 tmax=455500801.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.42
user 3.22
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.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/200402/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin833.fits evtable="EVENTS" outfile="/scratch/kocevski/200402/ft1_filtered_4FGL_J2207.6+0053_daily_bin833.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200402/ft1_filtered_4FGL_J2207.6+0053_daily_bin833.fits" evtable="EVENTS" scfile=/scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits sctable="SC_DATA" outfile=/scratch/kocevski/200402/ltcube_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.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/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits
.....................!
real 12.45
user 12.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200402/ft1_filtered_4FGL_J2207.6+0053_daily_bin833.fits evtable="EVENTS" scfile=/scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits sctable="SC_DATA" expcube=/scratch/kocevski/200402/ltcube_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.fits outfile=/scratch/kocevski/200402/expmap_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.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/200402/ltcube_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.fits
.....................!
real 192.26
user 186.55
sys 5.30

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

Setting source of interest to:
4FGL J2207.6+0053 @ 331.914 0.8907

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/200402/ft1_filtered_4FGL_J2207.6+0053_daily_bin833.fits scfile=/scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits outfile=/scratch/kocevski/200402/cmap_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.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=331.914 yref=0.8907 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200402/ft1_filtered_4FGL_J2207.6+0053_daily_bin833.fits scfile=/scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits outfile=/scratch/kocevski/200402/cmap_HighResolution_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.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=331.914 yref=0.8907 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/200402/ft1_filtered_4FGL_J2207.6+0053_daily_bin833.fits evtable="EVENTS" scfile=/scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/200402/Model_4FGL_J2207.6+0053_daily_bin833.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/200402/ft1_filtered_4FGL_J2207.6+0053_daily_bin833.fits.....................!
real 66.32
user 64.93
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/200402/ft1_filtered_4FGL_J2207.6+0053_daily_bin833.fits', '/scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits', expMap='/scratch/kocevski/200402/expmap_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.fits', expCube='/scratch/kocevski/200402/ltcube_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/200402/Model_4FGL_J2207.6+0053_daily_bin833.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2207.6+0053'

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.216e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/200402/ft1_filtered_4FGL_J2207.6+0053_daily_bin833.fits
Spacecraft file(s): /scratch/kocevski/200402/ft2_4FGL_J2207.6+0053_daily_bin833.fits
Exposure map: /scratch/kocevski/200402/expmap_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.fits
Exposure cube: /scratch/kocevski/200402/ltcube_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/200402/Model_4FGL_J2207.6+0053_daily_bin833.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) = 6790.51222296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42675E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.3007       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.909       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4845       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.410       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3640       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10308E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.595       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    135.58       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .80924       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94039       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6790.505     FROM MIGRAD    STATUS=CONVERGED    537 CALLS     2562 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    186.77        .95923E-06** at limit **
   2  Prefactor     .10000E-03    31.931       -.17321E-05** at limit **
   3  Prefactor     4.3015        2.5407        .75032E-07    .34356E-04
   4  Prefactor     .10000E-03    23.182        .19652E-05** at limit **
   5  Prefactor     16.913        42.422        .29996E-06    .50497E-05
   6  Prefactor     .10000E-03    40.218        .32318E-05** at limit **
   7  Prefactor     .10000E-03    75.517       -.20195E-05** at limit **
   8  norm          3.4844        1.9856        .35064E-07   -.69015E-04
   9  norm          .10000E-03    9.8298       -.11588E-06** at limit **
  10  Prefactor     .10000E-03    4.3133        .36808E-07** at limit **
  11  Prefactor     .10000E-03    17.291       -.36344E-06** at limit **
  12  Prefactor     .10000E-03    9.6985        .13604E-06** at limit **
  13  Prefactor     .10000E-03    28.672       -.13587E-05** at limit **
  14  Prefactor     .10000E-03    13.334        .27273E-06** at limit **
  15  Prefactor     32.413        30.796        .42873E-06    .47352E-05
  16  Prefactor     2.3588        9.8686        .73698E-05   -.10615E-04
  17  Prefactor     .10000E-03    4.3012       -.69788E-08** at limit **
  18  Prefactor     .10000E-03    3.6645       -.55361E-06** at limit **
  19  norm          10.594        5.2764       -.34688E-06    .38748E-05
  20  Prefactor     .10000E-03    2.6996       -.26430E-08** at limit **
  21  Prefactor     135.51        94.798        .62200E-05    .86216E-05
  22  Normalizat    .80912        .20746       -.11041E-05    .62908E-04
  23  Prefactor     .94041        .11387       -.14550E-06    .61685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.30154
  Prefactor  = 0.0001
  Prefactor  = 16.9128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.48439
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.4128
  Prefactor  = 2.35883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5937
  Prefactor  = 0.0001
  Prefactor  = 135.51
  Normalizat = 0.80912
  Prefactor  = 0.94041
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.505     FROM HESSE     STATUS=OK           362 CALLS     2924 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    194.62        .36937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.3015        2.5356        .95135E-04   -1.5293    
   4  Prefactor     .10000E-03    23.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.913        42.393        .97401E-04   -1.4885    
   6  Prefactor     .10000E-03    40.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    76.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4844        1.9839        .84536E-04   -1.5335    
   9  norm          .10000E-03    9.9065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.3454        .16709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.766        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.7297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.413        30.801        .70384E-04   -1.4569    
  16  Prefactor     2.3588        9.9106        .13326E-02   -1.5401    
  17  Prefactor     .10000E-03    4.3059        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8511        .30867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.594        5.2820        .12309E-03   -1.5057    
  20  Prefactor     .10000E-03    2.7085        .13223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     135.51        94.790        .17294E-03   -1.3375    
  22  Normalizat    .80912        .24696        .33388E-03   -.99731    
  23  Prefactor     .94041        .13654        .17691E-03   -.94743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17367e-10
Minuit parameter uncertainties:
  1  7.07696e-05
  2  7.57387e-07
  3  2.53562
  4  9.00077e-06
  5  42.4682
  6  1.53199e-05
  7  6.71413e-05
  8  1.98393
  9  5.30079e-06
  10  4.31758e-06
  11  3.89578e-05
  12  2.53562e-06
  13  5.92949e-05
  14  1.10153e-05
  15  30.8157
  16  9.67256
  17  3.11679e-07
  18  6.38294e-05
  19  5.28223
  20  1.39904e-07
  21  94.8961
  22  0.247307
  23  0.136593
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.102e-05  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.484e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  9.404e-01  1.366e-01  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  8.091e-01  2.473e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 331.914 0.891
Photon Flux Upper Limit: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200402/likelihoodResults_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.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) = 6790.50569968
delta logL = -0.000355722778295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6790.50534394
delta logL = 2.62816683971e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6790.505     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1104.9        .90712E-02** at limit **
   2  Index         2.5230        6.8717        .50000       -.13742E-04
   3  Normalizat    .80912        .51375E-01    .75434E-01    .69484E-04
   4  Prefactor     .94041        .29258E-01    .45518E-01    .72750E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.52304
  Normalizat = 0.80912
  Prefactor  = 0.94041
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.505     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1741.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5230        7.3097        .50000       -.51829    
   3  Normalizat    .80912        .71888E-01    .33388E-03   -.99731    
   4  Prefactor     .94041        .41110E-01    .17691E-03   -.94743    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.61345e-09
Minuit parameter uncertainties:
  1  0.00170631
  2  50.4057
  3  0.0718969
  4  0.0411114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200402': 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) = 6790.50534384
delta logL = 1.17586751003e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.706e-03  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.523e+00  5.041e+01  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.070e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
553    Prefactor:  9.404e-01  4.111e-02  0.000e+00  1.000e+01 ( 1.000e+00)
554        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
555        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
552   Normalization:  8.091e-01  7.190e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 331.914 0.891

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/200402/cmap_HighResolution_455241601_455500801_4FGL_J2207.6+0053_daily_bin833.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-28 06:09:25.857479', job_id='200402', GAL2='0.94', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632834565.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='833' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:09:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 200402: <4FGL_J2207.6+0053_daily_bin833> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin833> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:55:44 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:55:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 05:55:45 2021
Terminated at Tue Sep 28 06:09:26 2021
Results reported at Tue Sep 28 06:09:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin833 331.914 0.8907 455241601 455500801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2207.6+0053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   687.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            822 sec.

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

