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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin786
RA = 331.914, Dec = 0.8907
tmin = 443059201, tmax = 443318401
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='200331', job_status='RUN', time_executed='2021-09-28 05:58:03.424170', time_epoch_executed='1632833883.42' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200331/ft1_4FGL_J2207.6+0053_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200331/ft2_4FGL_J2207.6+0053_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200331/ft1_4FGL_J2207.6+0053_daily_bin786.fits outfile=/scratch/kocevski/200331/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin786.fits ra=331.914 dec=0.8907 rad=12.0 tmin=443059201.0 tmax=443318401.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.56
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/200331/ft2_4FGL_J2207.6+0053_daily_bin786.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/200331/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin786.fits evtable="EVENTS" outfile="/scratch/kocevski/200331/ft1_filtered_4FGL_J2207.6+0053_daily_bin786.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200331/ft1_filtered_4FGL_J2207.6+0053_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/200331/ft2_4FGL_J2207.6+0053_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/200331/ltcube_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.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/200331/ft2_4FGL_J2207.6+0053_daily_bin786.fits
.....................!
real 11.64
user 11.31
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200331/ft1_filtered_4FGL_J2207.6+0053_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/200331/ft2_4FGL_J2207.6+0053_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/200331/ltcube_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.fits outfile=/scratch/kocevski/200331/expmap_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.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/200331/ltcube_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.fits
.....................!
real 189.92
user 185.08
sys 4.49

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/200331/ft1_filtered_4FGL_J2207.6+0053_daily_bin786.fits scfile=/scratch/kocevski/200331/ft2_4FGL_J2207.6+0053_daily_bin786.fits outfile=/scratch/kocevski/200331/cmap_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200331/ft1_filtered_4FGL_J2207.6+0053_daily_bin786.fits scfile=/scratch/kocevski/200331/ft2_4FGL_J2207.6+0053_daily_bin786.fits outfile=/scratch/kocevski/200331/cmap_HighResolution_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.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.54
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/200331/ft1_filtered_4FGL_J2207.6+0053_daily_bin786.fits', '/scratch/kocevski/200331/ft2_4FGL_J2207.6+0053_daily_bin786.fits', expMap='/scratch/kocevski/200331/expmap_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.fits', expCube='/scratch/kocevski/200331/ltcube_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/200331/Model_4FGL_J2207.6+0053_daily_bin786.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/200331/ft1_filtered_4FGL_J2207.6+0053_daily_bin786.fits
Spacecraft file(s): /scratch/kocevski/200331/ft2_4FGL_J2207.6+0053_daily_bin786.fits
Exposure map: /scratch/kocevski/200331/expmap_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.fits
Exposure cube: /scratch/kocevski/200331/ltcube_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/200331/Model_4FGL_J2207.6+0053_daily_bin786.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) = 8751.42384243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10888E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .60623       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10717E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12167E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.550       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    39.668       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0322       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0510       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29782E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18454E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2808       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.5927       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.669       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2338       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .80795       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=   8751.364     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2207 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6571        .62318E-07** at limit **
   2  Prefactor     .10000E-03    43.858        .65420E-05** at limit **
   3  Prefactor     .60752        1.2258       -.65754E-06   -.21251E-02
   4  Prefactor     .10000E-03    5.7630        .12757E-06** at limit **
   5  Prefactor     .10000E-03    42.708        .49352E-05** at limit **
   6  Prefactor     .10000E-03    47.891        .12788E-04** at limit **
   7  Prefactor     .10000E-03    40.535       -.47084E-05** at limit **
   8  norm          .10000E-03    .78678       -.38968E-07** at limit **
   9  norm          18.550        14.610        .44185E-06    .63672E-04
  10  Prefactor     .10000E-03    6.1956       -.60943E-07** at limit **
  11  Prefactor     39.662        13.472       -.44198E-06    .87781E-04
  12  Prefactor     4.9755        20.829       -.14264E-04    .22052E-04
  13  Prefactor     .10000E-03    13.009       -.34738E-06** at limit **
  14  Prefactor     1.0334        11.381        .37606E-07   -.65270E-04
  15  Prefactor     .10001E-03    125.38       -.20085E-04** at limit **
  16  Prefactor     .10005E-03    4.2515        .25735E-06** at limit **
  17  Prefactor     7.2692        22.003       -.55675E-05    .20665E-05
  18  Prefactor     .10000E-03    1.9382       -.17199E-06** at limit **
  19  norm          4.5938        2.7471       -.12609E-06   -.21615E-03
  20  Prefactor     10.669        7.3472       -.10780E-07    .22672E-04
  21  Prefactor     .10000E-03    38.293       -.13707E-04** at limit **
  22  Normalizat    1.2338        .18920        .15973E-05    .16763E-03
  23  Prefactor     .80787        .10416        .39680E-06    .29127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.607516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.5498
  Prefactor  = 0.0001
  Prefactor  = 39.662
  Prefactor  = 4.97551
  Prefactor  = 0.0001
  Prefactor  = 1.03336
  Prefactor  = 0.000100014
  Prefactor  = 0.000100049
  Prefactor  = 7.26923
  Prefactor  = 0.0001
  norm       = 4.59382
  Prefactor  = 10.6689
  Prefactor  = 0.0001
  Normalizat = 1.23381
  Prefactor  = 0.807869
 **********
 **   18 **HESSE 
 **********

 FCN=   8751.364     FROM HESSE     STATUS=OK           370 CALLS     2577 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    44.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .60752        1.2379        .14577E-03   -1.5552    
   4  Prefactor     .10000E-03    5.7672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    43.887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    40.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.7715        .15985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.550        14.528        .92993E-04   -1.4846    
  10  Prefactor     .10000E-03    6.3254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     39.662        13.410        .63641E-04   -1.4448    
  12  Prefactor     4.9755        20.499        .17925E-03   -1.5262    
  13  Prefactor     .10000E-03    13.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0334        74.631        .57084E-02   -1.5505    
  15  Prefactor     .10001E-03    126.36        .42786E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10005E-03    27.993        .36288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.2692        22.015        .14865E-03   -1.5169    
  18  Prefactor     .10000E-03    1.9926        .25395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.5938        2.7465        .11574E-03   -1.5279    
  20  Prefactor     10.669        7.3475        .12266E-03   -1.5055    
  21  Prefactor     .10000E-03    38.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2338        .22414        .29094E-03   -.85564    
  23  Prefactor     .80787        .12518        .19870E-03   -.99439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87657e-08
Minuit parameter uncertainties:
  1  1.74788e-06
  2  2.0045e-05
  3  1.23792
  4  5.74193e-07
  5  0.00011722
  6  2.7226e-05
  7  7.50359e-05
  8  5.38673e-05
  9  14.5303
  10  3.08913e-05
  11  13.4113
  12  20.2103
  13  6.61595e-06
  14  17.5857
  15  0.00266247
  16  0.00234814
  17  22.0399
  18  7.9943e-06
  19  2.74662
  20  7.34812
  21  1.80596e-05
  22  0.224316
  23  0.125226
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.033e+00  1.759e+01  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:  8.079e-01  1.252e-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:  1.234e+00  2.243e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200331/likelihoodResults_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8751.3641579
delta logL = 2.84293491859e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8751.36414593
delta logL = 1.22618912428e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0334       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5002       1.0000          .0000       10.000    
     3 'Normalizat'    1.2337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80780       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=   8751.364     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      238 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0166        18.574        .12436        .28769E-03
   2  Index         2.5031        1.0216        .50000        .95088E-05
   3  Normalizat    1.2337        .67030E-02    .65768E-01    .20081E-04
   4  Prefactor     .80789        .38089E-02    .43819E-01    .34814E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.01664
  Index      = 2.50311
  Normalizat = 1.23375
  Prefactor  = 0.807889
 **********
 **   18 **HESSE 
 **********

 FCN=   8751.364     FROM HESSE     STATUS=OK            35 CALLS      273 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0166        126.96        .54896E-02   -1.5506    
   2  Index         2.5031        6.2498        .15156E-01   -.52288    
   3  Normalizat    1.2337        .22123        .29094E-03   -.85566    
   4  Prefactor     .80789        .12485        .19870E-03   -.99438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9749e-11
Minuit parameter uncertainties:
  1  22.7704
  2  4.69956
  3  0.221394
  4  0.124894
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200331': 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) = 8751.36414402
delta logL = 1.41644395626e-05

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.017e+00  2.277e+01  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.503e+00  4.700e+00  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:  8.079e-01  1.249e-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:  1.234e+00  2.214e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/200331/cmap_HighResolution_443059201_443318401_4FGL_J2207.6+0053_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.77e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-28 06:10:59.287767', job_id='200331', GAL2='0.81', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632834659.29', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.42e-05', ts2='0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='786' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:10:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 200331: <4FGL_J2207.6+0053_daily_bin786> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin786> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 05:55:39 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:55:40 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:40 2021
Terminated at Tue Sep 28 06:11:00 2021
Results reported at Tue Sep 28 06:11:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin786 331.914 0.8907 443059201 443318401 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 :                                   775.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   919 sec.
    Turnaround time :                            921 sec.

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

