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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin858
RA = 330.031, Dec = 21.6382
tmin = 461721601, tmax = 461980801
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='82496', job_status='RUN', time_executed='2021-09-27 23:25:25.477511', time_epoch_executed='1632810325.48' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/82496

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/82496/ft1_4FGL_J2200.1+2138_daily_bin858.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/82496/ft1_4FGL_J2200.1+2138_daily_bin858.fits outfile=/scratch/kocevski/82496/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin858.fits ra=330.031 dec=21.6382 rad=12.0 tmin=461721601.0 tmax=461980801.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 4.08
user 3.87
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.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/82496/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin858.fits evtable="EVENTS" outfile="/scratch/kocevski/82496/ft1_filtered_4FGL_J2200.1+2138_daily_bin858.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/82496/ft1_filtered_4FGL_J2200.1+2138_daily_bin858.fits" evtable="EVENTS" scfile=/scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits sctable="SC_DATA" outfile=/scratch/kocevski/82496/ltcube_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.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/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits
.....................!
real 15.26
user 14.87
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/82496/ft1_filtered_4FGL_J2200.1+2138_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits sctable="SC_DATA" expcube=/scratch/kocevski/82496/ltcube_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.fits outfile=/scratch/kocevski/82496/expmap_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.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/82496/ltcube_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.fits
.....................!
real 191.62
user 186.50
sys 4.57

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 Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 167 point sources and 1 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 J2200.1+2138 @ 330.031 21.6382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/82496/ft1_filtered_4FGL_J2200.1+2138_daily_bin858.fits scfile=/scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits outfile=/scratch/kocevski/82496/cmap_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.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=330.031 yref=21.6382 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/82496/ft1_filtered_4FGL_J2200.1+2138_daily_bin858.fits scfile=/scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits outfile=/scratch/kocevski/82496/cmap_HighResolution_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.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=330.031 yref=21.6382 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/82496/ft1_filtered_4FGL_J2200.1+2138_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/82496/Model_4FGL_J2200.1+2138_daily_bin858.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/82496/ft1_filtered_4FGL_J2200.1+2138_daily_bin858.fits.....................!
real 176.40
user 174.55
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/82496/ft1_filtered_4FGL_J2200.1+2138_daily_bin858.fits', '/scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits', expMap='/scratch/kocevski/82496/expmap_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.fits', expCube='/scratch/kocevski/82496/ltcube_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/82496/Model_4FGL_J2200.1+2138_daily_bin858.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.1+2138'

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  7.461e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/82496/ft1_filtered_4FGL_J2200.1+2138_daily_bin858.fits
Spacecraft file(s): /scratch/kocevski/82496/ft2_4FGL_J2200.1+2138_daily_bin858.fits
Exposure map: /scratch/kocevski/82496/expmap_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.fits
Exposure cube: /scratch/kocevski/82496/ltcube_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/82496/Model_4FGL_J2200.1+2138_daily_bin858.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) = 11070.0617277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74560       1.0000         .10000E-03   10000.    
     2 'norm      '    9.4442       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.8945       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.884       1.0000         .10000E-03   10000.    
     9 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    37.721       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6628       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.2900       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.111       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.8395       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .81682       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11070.05     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2232 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60549        174.42       -.53653E-04    .72393E-05
   2  norm          9.4466        4.8749        .14621E-07   -.85639E-04
   3  Prefactor     .10000E-03    4.8086       -.54183E-07** at limit **
   4  Prefactor     .10000E-03    7.0614       -.11334E-06** at limit **
   5  Prefactor     .10000E-03    72.225        .42413E-05** at limit **
   6  norm          7.8952        3.4916       -.69787E-07   -.96141E-04
   7  Prefactor     .10000E-03    2.2927       -.86950E-08** at limit **
   8  Prefactor     20.886        37.633        .99322E-09   -.23550E-04
   9  norm          .10000E-03    .32365        .42551E-07** at limit **
  10  Prefactor     .10000E-03    19.605        .77945E-06** at limit **
  11  norm          .10000E-03    .47402       -.74368E-07** at limit **
  12  Prefactor     .10000E-03    35.363        .28708E-05** at limit **
  13  norm          37.724        10.127        .11119E-06   -.33126E-04
  14  Prefactor     .10000E-03    14.207       -.21075E-06** at limit **
  15  Prefactor     .10000E-03    29.553       -.44008E-05** at limit **
  16  Prefactor     7.6760        18.973       -.23192E-05   -.88836E-04
  17  norm          .10000E-03    .33956        .17261E-07** at limit **
  18  norm          3.2914        3.0640       -.93056E-06    .10172E-03
  19  Prefactor     38.094        31.770       -.59624E-06   -.51797E-04
  20  Normalizat    1.8388        .26601       -.12976E-05   -.21772E-03
  21  Prefactor     .81717        .10328        .12920E-05   -.19684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.605493
  norm       = 9.4466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.89523
  Prefactor  = 0.0001
  Prefactor  = 20.8864
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 37.7236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.67597
  norm       = 0.0001
  norm       = 3.2914
  Prefactor  = 38.0936
  Normalizat = 1.83879
  Prefactor  = 0.817174
 **********
 **   18 **HESSE 
 **********

 FCN=   11070.05     FROM HESSE     STATUS=OK           319 CALLS     2551 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60549        170.26        .71215E-02   -1.5552    
   2  norm          9.4466        4.8562        .13041E-03   -1.5093    
   3  Prefactor     .10000E-03    4.8539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.1383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    72.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.8952        3.4864        .11825E-03   -1.5146    
   7  Prefactor     .10000E-03    2.2996        .15557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.886        37.605        .87646E-04   -1.4794    
   9  norm          .10000E-03    .65446        .11601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .49326        .14122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          37.724        10.138        .65257E-04   -1.4479    
  14  Prefactor     .10000E-03    14.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6760        19.175        .72433E-03   -1.5154    
  17  norm          .10000E-03    .57157        .11925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.2914        3.0662        .80652E-03   -1.5345    
  19  Prefactor     38.094        31.892        .64924E-04   -1.4473    
  20  Normalizat    1.8388        .31560        .39472E-03   -.68656    
  21  Prefactor     .81717        .12173        .22788E-03   -.99098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61773e-10
Minuit parameter uncertainties:
  1  20.3636
  2  4.85645
  3  7.77905e-06
  4  1.07454e-05
  5  0.000147615
  6  3.48646
  7  2.99041e-06
  8  37.6478
  9  9.63336e-06
  10  2.25335e-06
  11  2.63118e-06
  12  0.000415466
  13  10.1381
  14  1.13146e-05
  15  0.000130206
  16  19.1899
  17  1.44925e-06
  18  3.06633
  19  31.9058
  20  0.315953
  21  0.121771
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.253e-06  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.044e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.172e-01  1.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.839e+00  3.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 330.031 21.638
Photon Flux Upper Limit: 6.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/82496/likelihoodResults_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.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) = 11070.0512192
delta logL = -0.000242815398451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11070.0509773
delta logL = -9.75936927716e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3738       1.0000          .0000       10.000    
     3 'Normalizat'    1.8388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81717       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+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=   11070.05     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      277 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10196E-03    95.075        .18142E-02** at limit **
   2  Index         2.3069        8.8462        .50000        .16114E-04
   3  Normalizat    1.8388        .16592E-01    .39472E-03   -.12097E-05
   4  Prefactor     .81717        .67999E-02    .22788E-03   -.12971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101965
  Index      = 2.30694
  Normalizat = 1.83879
  Prefactor  = 0.817173
 **********
 **   18 **HESSE 
 **********

 FCN=   11070.05     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10196E-03    434.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3069        8.2646        .50000       -.56879    
   3  Normalizat    1.8388        .36560E-01    .15789E-04   -.68655    
   4  Prefactor     .81717        .14981E-01    .91152E-05   -.99098    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.42568e-08
Minuit parameter uncertainties:
  1  0.0588542
  2  549.782
  3  0.0365602
  4  0.0149812
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/82496': 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) = 11070.0509771
delta logL = -7.68004611018e-07

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.020e-04  5.885e-02  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.307e+00  5.498e+02  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  2.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
559    Prefactor:  8.172e-01  1.498e-02  0.000e+00  1.000e+01 ( 1.000e+00)
560        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
561        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
558   Normalization:  1.839e+00  3.656e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 330.031 21.638

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/82496/cmap_HighResolution_461721601_461980801_4FGL_J2200.1+2138_daily_bin858.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-03', job_status='DONE', photon_flux_upper_limit='6.05e-08', time_completed='2021-09-27 23:41:23.634268', job_id='82496', GAL2='0.82', fit_tolerance='1e-08', EG2='1.84', EG='1.84', time_epoch_completed='1632811283.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-7.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='858' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:41:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 82496: <4FGL_J2200.1+2138_daily_bin858> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin858> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 23:25:15 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:25:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 27 23:25:17 2021
Terminated at Mon Sep 27 23:41:24 2021
Results reported at Mon Sep 27 23:41:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin858 330.031 21.6382 461721601 461980801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2200.1+2138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   954.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             399.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

