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


Performing analysis on: 4FGL_J2207.6+0053_daily_bin296
RA = 331.914, Dec = 0.8907
tmin = 316051201, tmax = 316310401
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='198514', job_status='RUN', time_executed='2021-09-28 05:54:41.635732', time_epoch_executed='1632833681.64' WHERE source_name='4FGL J2207.6+0053' and cadence='daily' and bin_id='296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/198514

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/198514/ft1_4FGL_J2207.6+0053_daily_bin296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/198514/ft2_4FGL_J2207.6+0053_daily_bin296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/198514/ft1_4FGL_J2207.6+0053_daily_bin296.fits outfile=/scratch/kocevski/198514/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin296.fits ra=331.914 dec=0.8907 rad=12.0 tmin=316051201.0 tmax=316310401.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.47
user 3.22
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/198514/ft2_4FGL_J2207.6+0053_daily_bin296.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/198514/ft1_filteredMKT_4FGL_J2207.6+0053_daily_bin296.fits evtable="EVENTS" outfile="/scratch/kocevski/198514/ft1_filtered_4FGL_J2207.6+0053_daily_bin296.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.48
user 0.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/198514/ft1_filtered_4FGL_J2207.6+0053_daily_bin296.fits evtable="EVENTS" scfile=/scratch/kocevski/198514/ft2_4FGL_J2207.6+0053_daily_bin296.fits sctable="SC_DATA" expcube=/scratch/kocevski/198514/ltcube_316051201_316310401_4FGL_J2207.6+0053_daily_bin296.fits outfile=/scratch/kocevski/198514/expmap_316051201_316310401_4FGL_J2207.6+0053_daily_bin296.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/198514/ltcube_316051201_316310401_4FGL_J2207.6+0053_daily_bin296.fits
.....................!
real 190.96
user 184.95
sys 5.70

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/198514/ft1_filtered_4FGL_J2207.6+0053_daily_bin296.fits scfile=/scratch/kocevski/198514/ft2_4FGL_J2207.6+0053_daily_bin296.fits outfile=/scratch/kocevski/198514/cmap_316051201_316310401_4FGL_J2207.6+0053_daily_bin296.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.52
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/198514/ft1_filtered_4FGL_J2207.6+0053_daily_bin296.fits scfile=/scratch/kocevski/198514/ft2_4FGL_J2207.6+0053_daily_bin296.fits outfile=/scratch/kocevski/198514/cmap_HighResolution_316051201_316310401_4FGL_J2207.6+0053_daily_bin296.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.220       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11514E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10993E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    86.426       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.0655       1.0000         .10000E-03   10000.    
     9 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.910       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.961       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6421       1.0000         .10000E-03   10000.    
    19 'norm      '    4.0813       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .88349       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0755       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6126.555     FROM MIGRAD    STATUS=CONVERGED     99 CALLS     2526 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.217        1.2001       -.53966E-06    .35822E-03
   2  Prefactor     .10087E-03    40.171        .91060E-05** at limit **
   3  Prefactor     1.3721        2.2838        .70619E-06    .23875E-04
   4  Prefactor     .10136E-03    32.206       -.10673E-04** at limit **
   5  Prefactor     .10339E-03    79.126       -.42298E-04** at limit **
   6  Prefactor     86.439        4.5734        .13048E-05   -.88399E-02
   7  Prefactor     .10011E-03    20.361       -.36413E-05** at limit **
   8  norm          8.0652        3.2594       -.22568E-06   -.48098E-04
   9  norm          .10000E-03    6.5549        .51945E-05** at limit **
  10  Prefactor     .10078E-03    19.957       -.10977E-05** at limit **
  11  Prefactor     12.905        1.0412       -.94514E-07   -.65123E-04
  12  Prefactor     .10000E-03    6.3223       -.25345E-05** at limit **
  13  Prefactor     .10000E-03    3.4067       -.49458E-06** at limit **
  14  Prefactor     .10000E-03    4.4545       -.51778E-05** at limit **
  15  Prefactor     .10135E-03    17.741       -.13082E-04** at limit **
  16  Prefactor     22.962        1.1096       -.27277E-06   -.46736E-03
  17  Prefactor     .10000E-03    4.1293       -.20121E-05** at limit **
  18  Prefactor     7.6460        5.0256       -.51520E-05   -.30453E-02
  19  norm          4.0819        4.4258        .10237E-05    .35637E-03
  20  Prefactor     .10000E-03    3.0030       -.12083E-05** at limit **
  21  Prefactor     .10022E-03    19.935       -.17100E-05** at limit **
  22  Normalizat    .88343        .27807       -.21415E-05    .24700E-05
  23  Prefactor     1.0755        .15579        .34379E-05    .13496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.217
  Prefactor  = 0.00010087
  Prefactor  = 1.37213
  Prefactor  = 0.000101363
  Prefactor  = 0.000103387
  Prefactor  = 86.4394
  Prefactor  = 0.000100113
  norm       = 8.06518
  norm       = 0.000100003
  Prefactor  = 0.000100785
  Prefactor  = 12.9052
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.00010135
  Prefactor  = 22.9618
  Prefactor  = 0.0001
  Prefactor  = 7.64596
  norm       = 4.08195
  Prefactor  = 0.0001
  Prefactor  = 0.000100221
  Normalizat = 0.883434
  Prefactor  = 1.07552
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.555     FROM HESSE     STATUS=OK           412 CALLS     2938 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.217        39.739        .31335E-02   -1.5069    
   2  Prefactor     .10087E-03    72.471        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3721        2.3199        .93044E-02   -1.5474    
   4  Prefactor     .10136E-03    87.628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10339E-03    115.16        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     86.439        136.67        .10804E-02   -1.3846    
   7  Prefactor     .10011E-03    41.860        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0652        4.0480        .35294E-02   -1.5140    
   9  norm          .10000E-03    6.7318        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10078E-03    4.8384        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.905        13.476        .27871E-02   -1.4989    
  12  Prefactor     .10000E-03    6.3409        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.2269        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.2755        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10135E-03    25.900        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.962        14.238        .20898E-02   -1.4749    
  17  Prefactor     .10000E-03    4.1292        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6460        5.3126        .36266E-02   -1.5155    
  19  norm          4.0819        4.4404        .49892E-02   -1.5304    
  20  Prefactor     .10000E-03    2.9968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10022E-03    42.604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .88343        .24610        .81535E-01   -.97045    
  23  Prefactor     1.0755        .13480        .38602E-01   -.90253    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83984e-06
Minuit parameter uncertainties:
  1  39.8423
  2  0.0159015
  3  2.32002
  4  0.0218859
  5  0.0395758
  6  137.171
  7  0.00435776
  8  4.04811
  9  0.000294758
  10  0.00389774
  11  13.4793
  12  0.000164495
  13  0.000211995
  14  5.96548e-05
  15  0.0118319
  16  14.2403
  17  2.38216e-06
  18  5.31296
  19  4.44079
  20  5.39377e-06
  21  0.00613671
  22  0.246411
  23  0.134843
Done.

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

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  5.965e-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:  1.076e+00  1.348e-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.834e-01  2.464e-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: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/198514/likelihoodResults_316051201_316310401_4FGL_J2207.6+0053_daily_bin296.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) = 6126.55609507
delta logL = -0.000652263916891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6126.55544283
delta logL = -2.30393197853e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4648       1.0000          .0000       10.000    
     3 'Normalizat'    .88345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0755       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=   6126.555     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10307E-03    6.3246        .18142E-01** at limit **
   2  Index         2.3535        6.3791        .50000        .17739E-04
   3  Normalizat    .88343        .53043E-02    .36097E-03   -.99871E-04
   4  Prefactor     1.0755        .30210E-02    .18684E-03    .91622E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103075
  Index      = 2.35352
  Normalizat = 0.88343
  Prefactor  = 1.07552
 **********
 **   18 **HESSE 
 **********

 FCN=   6126.555     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10307E-03    98.370        .21547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3535        5.4722        .50000       -.55777    
   3  Normalizat    .88343        .21091E-01    .14439E-04   -.97045    
   4  Prefactor     1.0755        .12012E-01    .37369E-04   -.90253    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.95356e-09
Minuit parameter uncertainties:
  1  0.0348397
  2  513.997
  3  0.0210913
  4  0.0120121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/198514': 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) = 6126.55544237
delta logL = 4.31349690189e-07

Extracting fit parameters...

4FGL J2207.6+0053
   Spectrum: PowerLaw
286    Prefactor:  1.031e-04  3.484e-02  1.000e-04  1.000e+04 ( 1.000e-13)
287        Index:  2.354e+00  5.140e+02  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:  1.076e+00  1.201e-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.834e-01  2.109e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/198514/cmap_HighResolution_316051201_316310401_4FGL_J2207.6+0053_daily_bin296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-28 06:05:34.649513', job_id='198514', GAL2='1.08', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1632834334.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.48' WHERE bin_id='296' AND source_name='4FGL J2207.6+0053' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:05:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 198514: <4FGL_J2207.6+0053_daily_bin296> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2207.6+0053_daily_bin296 331.914 0.8907 316051201 316310401 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 :                                   651.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

