/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 219 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 = 7423
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2207.6+0053_daily_bin228
RA = 331.914, Dec = 0.8907
tmin = 298425601, tmax = 298684801
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='198406', job_status='RUN', time_executed='2021-09-28 05:54:15.255878', time_epoch_executed='1632833655.26' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198406

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198406/ft1_4FGL_J2207.6+0053_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198406/ft2_4FGL_J2207.6+0053_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198406/ft1_4FGL_J2207.6+0053_daily_bin228.fits outfile=/scratch/kocevski/198406/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin228.fits ra=331.914 dec=0.8907 rad=12.0 tmin=298425601.0 tmax=298684801.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.33
user 3.11
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198406/ft2_4FGL_J2207.6+0053_daily_bin228.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/198406/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin228.fits evtable="EVENTS" outfile="/scratch/kocevski/198406/ft1_filtered_4FGL_J2207.6+0053_daily_bin228.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.53
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/198406/ft1_filtered_4FGL_J2207.6+0053_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/198406/ft2_4FGL_J2207.6+0053_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/198406/ltcube_298425601_298684801_4FGL_J2207.6+0053_daily_bin228.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/198406/ft2_4FGL_J2207.6+0053_daily_bin228.fits
.....................!
real 11.90
user 11.52
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198406/ft1_filtered_4FGL_J2207.6+0053_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/198406/ft2_4FGL_J2207.6+0053_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/198406/ltcube_298425601_298684801_4FGL_J2207.6+0053_daily_bin228.fits outfile=/scratch/kocevski/198406/expmap_298425601_298684801_4FGL_J2207.6+0053_daily_bin228.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/198406/ltcube_298425601_298684801_4FGL_J2207.6+0053_daily_bin228.fits
.....................!
real 191.04
user 186.45
sys 4.23

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/198406/ft1_filtered_4FGL_J2207.6+0053_daily_bin228.fits scfile=/scratch/kocevski/198406/ft2_4FGL_J2207.6+0053_daily_bin228.fits outfile=/scratch/kocevski/198406/cmap_298425601_298684801_4FGL_J2207.6+0053_daily_bin228.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198406/ft1_filtered_4FGL_J2207.6+0053_daily_bin228.fits scfile=/scratch/kocevski/198406/ft2_4FGL_J2207.6+0053_daily_bin228.fits outfile=/scratch/kocevski/198406/cmap_HighResolution_298425601_298684801_4FGL_J2207.6+0053_daily_bin228.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.364       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.630       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2462       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7154       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .59045E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7410       1.0000         .10000E-03   10000.    
     9 'norm      '    .42129E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6379       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56914       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7980       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20184       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.366       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4509       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.696       1.0000         .10000E-03   10000.    
    19 'norm      '    12.081       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0121       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .59043       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91013       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5166.501     FROM MIGRAD    STATUS=CONVERGED    998 CALLS     3445 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.346        45.272        .53910E-04    .33741E-05
   2  Prefactor     21.633        30.415        .86124E-04    .28381E-04
   3  Prefactor     2.2446        2.9568        .12258E-03    .22723E-03
   4  Prefactor     6.7209        41.696        .15484E-03    .15345E-04
   5  Prefactor     .10000E-03    10.987        .18142E-02** at limit **
   6  Prefactor     .10000E-03    26.131        .18142E-02** at limit **
   7  Prefactor     .52439E-02    60.632        .12758        .14366E-04
   8  norm          2.7406        1.9919        .83253E-04    .13260E-03
   9  norm          .10001E-03    151.71        .47931E-02** at limit **
  10  Prefactor     8.6524        8.7282        .13639E-03    .24698E-03
  11  Prefactor     .52957        73.936        .45226E-02    .77567E-04
  12  Prefactor     .10000E-03    21.257        .18142E-02** at limit **
  13  Prefactor     7.8715        18.932        .14360E-03    .66583E-04
  14  Prefactor     .25549E-03    46.902        .81255E-01** at limit **
  15  Prefactor     36.360        29.035        .66458E-04    .78691E-05
  16  Prefactor     .10000E-03    24.428        .36285E-03** at limit **
  17  Prefactor     4.4498        9.2910        .19087E-03   -.12925E-04
  18  Prefactor     12.693        6.1216        .11242E-03   -.20226E-06
  19  norm          12.079        5.5567        .10948E-03   -.93457E-06
  20  Prefactor     3.0125        3.5098        .70960E-03   -.15316E-04
  21  Prefactor     .10000E-03    24.687        .18142E-02** at limit **
  22  Normalizat    .59097        .27801        .36264E-03    .96088E-04
  23  Prefactor     .91005        .15121        .16879E-03    .17154E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.3463
  Prefactor  = 21.6335
  Prefactor  = 2.24464
  Prefactor  = 6.72093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00524385
  norm       = 2.74059
  norm       = 0.000100006
  Prefactor  = 8.65245
  Prefactor  = 0.529569
  Prefactor  = 0.0001
  Prefactor  = 7.87151
  Prefactor  = 0.000255494
  Prefactor  = 36.3605
  Prefactor  = 0.0001
  Prefactor  = 4.44982
  Prefactor  = 12.6935
  norm       = 12.0788
  Prefactor  = 3.01246
  Prefactor  = 0.0001
  Normalizat = 0.590974
  Prefactor  = 0.910047
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.501     FROM HESSE     STATUS=OK           370 CALLS     3815 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.346        45.264        .21564E-05   -1.4219    
   2  Prefactor     21.633        30.410        .34449E-05   -1.4777    
   3  Prefactor     2.2446        2.9558        .49030E-05   -1.5408    
   4  Prefactor     6.7209        41.643        .61937E-05   -1.5189    
   5  Prefactor     .10000E-03    10.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .52439E-02    61.156        .12680       -1.5694    
   8  norm          2.7406        1.9909        .33301E-05   -1.5377    
   9  norm          .10001E-03    156.67        .19172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6524        8.7300        .54555E-05   -1.5120    
  11  Prefactor     .52957        73.231        .18090E-03   -1.5562    
  12  Prefactor     .10000E-03    21.263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8715        18.732        .57438E-05   -1.5147    
  14  Prefactor     .25549E-03    36.095        .92976E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.360        29.032        .26583E-05   -1.4501    
  16  Prefactor     .10000E-03    24.429        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4498        9.2905        .76347E-05   -1.5286    
  18  Prefactor     12.693        6.1207        .44968E-05   -1.4995    
  19  norm          12.079        5.5564        .43793E-05   -1.5013    
  20  Prefactor     3.0125        3.5098        .28384E-04   -1.5361    
  21  Prefactor     .10000E-03    24.687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .59097        .27766        .14505E-04   -1.0837    
  23  Prefactor     .91005        .15050        .33757E-04   -.95791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45895e-10
Minuit parameter uncertainties:
  1  45.2919
  2  30.4318
  3  2.95601
  4  33.4936
  5  4.11068e-06
  6  2.26293e-06
  7  1.12289
  8  1.99096
  9  0.00187004
  10  8.73131
  11  12.4693
  12  1.21125e-05
  13  18.7464
  14  0.149925
  15  29.0436
  16  1.75555e-05
  17  9.29353
  18  6.12105
  19  5.55659
  20  3.51002
  21  5.54532e-06
  22  0.278313
  23  0.150572
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  2.555e-04  1.499e-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:  9.100e-01  1.506e-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:  5.910e-01  2.783e-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.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198406/likelihoodResults_298425601_298684801_4FGL_J2207.6+0053_daily_bin228.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) = 5166.5009217
delta logL = 1.00044417195e-11

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5166.5009217
delta logL = 1.90993887372e-11

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25549E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4841       1.0000          .0000       10.000    
     3 'Normalizat'    .59097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91005       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5166.334     FROM MIGRAD    STATUS=FAILED       119 CALLS      279 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3202        288.82        .60856E-02   -.13531E-01
   2  Index         3.3364        6.6536        .13747        .93295E-04
   3  Normalizat    .54696        .77400E-01    .36262E-02   -.64594E-04
   4  Prefactor     .92138        .42767E-01    .16879E-03   -.22981E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5166.334     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      363 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3202        288.82        .19215E-03   -.13531E-01
   2  Index         3.3364        6.6536        .74794E-03    .93295E-04
   3  Normalizat    .54696        .77400E-01    .31171E-03   -.64594E-04
   4  Prefactor     .92138        .42767E-01    .61019E-04   -.22981E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5166.334     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      399 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3202        10.449        .10786E-02    .25106E-04
   2  Index         3.3364        1.3630        .84447E-02    .42053E-03
   3  Normalizat    .54696        .26363        .14505E-03   -.46008E-04
   4  Prefactor     .92138        .14697        .33758E-04   -.18873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32025
  Index      = 3.33635
  Normalizat = 0.546962
  Prefactor  = 0.921385
 **********
 **   18 **HESSE 
 **********

 FCN=   5166.334     FROM HESSE     STATUS=OK            27 CALLS      426 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3202        9.7839        .43146E-04   -1.6072    
   2  Index         3.3364        1.2747        .16889E-02   -.33920    
   3  Normalizat    .54696        .26384        .58019E-05   -1.1029    
   4  Prefactor     .92138        .14700        .67515E-05   -.95398    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39957e-11
Minuit parameter uncertainties:
  1  9.78866
  2  1.29078
  3  0.264451
  4  0.147059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198406': 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) = 5166.33384466
delta logL = 0.167077032753

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  3.320e+00  9.789e+00  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  3.336e+00  1.291e+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:  9.214e-01  1.471e-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:  5.470e-01  2.645e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/198406/cmap_HighResolution_298425601_298684801_4FGL_J2207.6+0053_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.59e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2021-09-28 06:05:19.215865', job_id='198406', GAL2='0.92', fit_tolerance='1e-08', EG2='0.55', EG='0.59', time_epoch_completed='1632834319.22', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.67e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='228' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:05:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0196>
Subject: Job 198406: <4FGL_J2207.6+0053_daily_bin228> in cluster <slac> Done

Job <4FGL_J2207.6+0053_daily_bin228> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 05:50:26 2021
Job was executed on host(s) <bullet0196>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 05:50:28 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:50:28 2021
Terminated at Tue Sep 28 06:05:19 2021
Results reported at Tue Sep 28 06:05:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin228 331.914 0.8907 298425601 298684801 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 :                                   658.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

