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


Performing analysis on: 4FGL_J2007.2+6607_monthly_bin118
RA = 301.815, Dec = 66.1178
tmin = 542851201, tmax = 545443201
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='625746', job_status='RUN', time_executed='2021-11-05 16:35:03.961579', time_epoch_executed='1636155303.96' WHERE source_name='4FGL J2007.2+6607' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625746

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625746/ft1_4FGL_J2007.2+6607_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625746/ft1_4FGL_J2007.2+6607_monthly_bin118.fits outfile=/scratch/kocevski/625746/ft1_filteredMKT_4FGL_J2007.2+6607_monthly_bin118.fits ra=301.815 dec=66.1178 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.48
user 17.93
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.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/625746/ft1_filteredMKT_4FGL_J2007.2+6607_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/625746/ft1_filtered_4FGL_J2007.2+6607_monthly_bin118.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.59
user 0.41
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625746/ft1_filtered_4FGL_J2007.2+6607_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/625746/ltcube_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.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/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits
.....................!
real 42.29
user 41.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625746/ft1_filtered_4FGL_J2007.2+6607_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/625746/ltcube_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.fits outfile=/scratch/kocevski/625746/expmap_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.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/625746/ltcube_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.fits
.....................!
real 192.00
user 186.69
sys 4.48

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source FHES J2208.4+6443 in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 193 point sources and 4 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2007.2+6607 @ 301.815 66.1178

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/625746/ft1_filtered_4FGL_J2007.2+6607_monthly_bin118.fits scfile=/scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits outfile=/scratch/kocevski/625746/cmap_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.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=301.815 yref=66.1178 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.61
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625746/ft1_filtered_4FGL_J2007.2+6607_monthly_bin118.fits scfile=/scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits outfile=/scratch/kocevski/625746/cmap_HighResolution_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.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=301.815 yref=66.1178 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.61
user 0.46
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625746/ft1_filtered_4FGL_J2007.2+6607_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625746/Model_4FGL_J2007.2+6607_monthly_bin118.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2208.4+6443
adding source GAL_V02
adding source HB 21
Working on...
/scratch/kocevski/625746/ft1_filtered_4FGL_J2007.2+6607_monthly_bin118.fits......................!
real 29.77
user 28.31
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/625746/ft1_filtered_4FGL_J2007.2+6607_monthly_bin118.fits', '/scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits', expMap='/scratch/kocevski/625746/expmap_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.fits', expCube='/scratch/kocevski/625746/ltcube_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/625746/Model_4FGL_J2007.2+6607_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2007.2+6607'

4FGL J2007.2+6607
   Spectrum: PowerLaw
332    Prefactor:  5.915e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.581e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  1.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/625746/ft1_filtered_4FGL_J2007.2+6607_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/625746/ft2_4FGL_J2007.2+6607_monthly_bin118.fits
Exposure map: /scratch/kocevski/625746/expmap_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.fits
Exposure cube: /scratch/kocevski/625746/ltcube_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/625746/Model_4FGL_J2007.2+6607_monthly_bin118.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) = 1198.9906988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12933E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .11252E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13307E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .11162E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    31.030       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.849       1.0000         .10000E-03   10000.    
    18 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    114.71       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .55405       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1034       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1198.940     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2651 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.078        .29511E-06** at limit **
   2  Prefactor     .10000E-03    270.89        .32151E-06** at limit **
   3  Prefactor     .10000E-03    9.3330        .86926E-07** at limit **
   4  Prefactor     .10000E-03    22.630        .21634E-06** at limit **
   5  Prefactor     .10000E-03    36.323       -.18871E-06** at limit **
   6  Prefactor     .10000E-03    428.12        .77912E-05** at limit **
   7  Prefactor     .10000E-03    176.24       -.22150E-05** at limit **
   8  norm          .10000E-03    5.3176       -.18987E-06** at limit **
   9  norm          .10000E-03    14.514        .31366E-06** at limit **
  10  norm          .10000E-03    103.89        .48465E-05** at limit **
  11  Prefactor     38.191        72.735        .17086E-05   -.11214E-04
  12  Prefactor     .10000E-03    229.80        .20411E-04** at limit **
  13  norm          .10000E-03    4.7368       -.18073E-05** at limit **
  14  norm          .10000E-03    120.29       -.76568E-06** at limit **
  15  norm          .10000E-03    16.279        .74769E-06** at limit **
  16  norm          30.937        69.205        .31031E-05    .20372E-05
  17  Prefactor     42.919        86.934        .23493E-05    .56030E-05
  18  norm          .10000E-03    8.7844        .97153E-07** at limit **
  19  Prefactor     .10000E-03    94.981        .27908E-05** at limit **
  20  norm          .10000E-03    19.167       -.39996E-06** at limit **
  21  Prefactor     114.71        99.379        .22226E-05   -.10949E-04
  22  Prefactor     .10000E-03    24.987        .65120E-06** at limit **
  23  Normalizat    .55214        .78330       -.16258E-04   -.41755E-04
  24  Prefactor     1.1038        .18530        .29648E-05   -.16328E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 38.1906
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 30.9366
  Prefactor  = 42.9193
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 114.712
  Prefactor  = 0.0001
  Normalizat = 0.55214
  Prefactor  = 1.10378
 **********
 **   18 **HESSE 
 **********

 FCN=   1198.940     FROM HESSE     STATUS=OK           383 CALLS     3034 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.082        .11757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    270.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.3342        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.633        .16095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    428.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    176.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.3158        .77970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.523        .12889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    104.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.191        72.512        .64890E-04   -1.4471    
  12  Prefactor     .10000E-03    226.88        .39472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.7273        .73383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    120.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    16.282        .13646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          30.937        69.421        .71929E-04   -1.4595    
  17  Prefactor     42.919        87.124        .61242E-04   -1.4397    
  18  norm          .10000E-03    8.7902        .10024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    95.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    19.166        .14811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     114.71        100.08        .37563E-04   -1.3562    
  22  Prefactor     .10000E-03    25.037        .16901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .55214        .75996        .71445E-03   -1.1006    
  24  Prefactor     1.1038        .18613        .12968E-03   -.89346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08345e-10
Minuit parameter uncertainties:
  1  3.61768e-06
  2  1.87816e-05
  3  3.16128e-06
  4  9.59435e-07
  5  3.61181e-05
  6  0.000811219
  7  0.000164731
  8  1.09161e-05
  9  4.0438e-06
  10  0.000193325
  11  72.6803
  12  0.000325384
  13  3.03332e-05
  14  4.72221e-05
  15  2.54939e-05
  16  69.6026
  17  87.3841
  18  2.05824e-06
  19  0.000247968
  20  1.03918e-05
  21  100.223
  22  6.37165e-05
  23  0.77502
  24  0.186238
Done.

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

Extracting fit parameters...

4FGL J2007.2+6607
   Spectrum: PowerLaw
332    Prefactor:  4.292e+01  8.738e+01  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.581e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  1.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.104e+00  1.862e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  5.521e-01  7.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 301.815 66.118
Photon Flux Upper Limit: 6.64e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625746/likelihoodResults_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.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) = 1198.93604882
delta logL = 0.00363833062079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1197.6010839
delta logL = 1.33860324963

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1197.601     FROM MIGRAD    STATUS=CONVERGED    128 CALLS      634 TOTAL
                     EDM=   .34E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .74710E-03   -.26575E-07** at limit **
   2  Index         9.5040        .36664       -.37388E-05    .12126E-04
   3  Normalizat    .25030        .69497       -.16944E-04    .64621E-05
   4  Prefactor     1.1434        .18155       -.11532E-06    .39054E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.50399
  Normalizat = 0.250301
  Prefactor  = 1.1434
 **********
 **   18 **HESSE 
 **********

 FCN=   1197.601     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      677 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .14281E-01    .18752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.5040        9.4708        .12585        1.1216    
   3  Normalizat    .25030        .39758        .23253       -1.2594    
   4  Prefactor     1.1434        .10112        .36130E-01   -.88091    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.80306e-10
Minuit parameter uncertainties:
  1  7.45852e-09
  2  4.80609
  3  0.402192
  4  0.10114
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625746': 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) = 1197.60108318
delta logL = 1.33860396558

Extracting fit parameters...

4FGL J2007.2+6607
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  7.459e-09  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  9.504e+00  4.806e+00  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  1.000e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.143e+00  1.011e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  2.503e-01  4.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.34
Ra Dec: 301.815 66.118
Photon Index (Free Index): 9.50 +/- 4.81
Photon Flux (Free Index): 3.88e-07 +/- 3.96e-06
Energy Flux (Free Index): 4.37e-05 +/- 4.46e-04

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/625746/cmap_HighResolution_542851201_545443201_4FGL_J2007.2+6607_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-02', comment='SUCCESS', energy_flux2='4.37e-05', dlogl='1.34e+00', photon_flux2='3.88e-07', job_status='DONE', time_completed='2021-11-05 16:45:00.546900', photon_index_error2='4.81', photon_index2='9.50', ts='0.36', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='6.64e-07', energy_flux_error2='4.46e-04', EG='0.55', time_epoch_completed='1636155900.55', return_code='0', job_id='625746', GAL2='1.14', EG2='0.25', return_code2='102', photon_flux_error2='3.96e-06', ts2='3.34', photon_index='2.58' WHERE bin_id='118' AND source_name='4FGL J2007.2+6607' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Nov  5 16:45:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 625746: <4FGL_J2007.2+6607_monthly_bin118> in cluster <slac> Done

Job <4FGL_J2007.2+6607_monthly_bin118> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Nov  5 16:30:29 2021
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Nov  5 16:33:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Nov  5 16:33:49 2021
Terminated at Fri Nov  5 16:45:01 2021
Results reported at Fri Nov  5 16:45:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2007.2+6607_monthly_bin118 301.815 66.1178 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2007.2+6607 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   555.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             286.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            872 sec.

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

