/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 45 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 = 7405
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2200.1+2138_daily_bin576
RA = 330.031, Dec = 21.6382
tmin = 388627201, tmax = 388886401
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='80907', job_status='RUN', time_executed='2021-09-27 23:21:41.756205', time_epoch_executed='1632810101.76' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/80907

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/80907/ft1_4FGL_J2200.1+2138_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/80907/ft2_4FGL_J2200.1+2138_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/80907/ft1_4FGL_J2200.1+2138_daily_bin576.fits outfile=/scratch/kocevski/80907/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin576.fits ra=330.031 dec=21.6382 rad=12.0 tmin=388627201.0 tmax=388886401.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.03
user 3.77
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/80907/ft1_filtered_4FGL_J2200.1+2138_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/80907/ft2_4FGL_J2200.1+2138_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/80907/ltcube_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.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/80907/ft2_4FGL_J2200.1+2138_daily_bin576.fits
.....................!
real 13.63
user 13.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/80907/ft1_filtered_4FGL_J2200.1+2138_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/80907/ft2_4FGL_J2200.1+2138_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/80907/ltcube_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.fits outfile=/scratch/kocevski/80907/expmap_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.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/80907/ltcube_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.fits
.....................!
real 191.75
user 186.36
sys 4.91

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/80907/ft1_filtered_4FGL_J2200.1+2138_daily_bin576.fits scfile=/scratch/kocevski/80907/ft2_4FGL_J2200.1+2138_daily_bin576.fits outfile=/scratch/kocevski/80907/cmap_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.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/80907/ft1_filtered_4FGL_J2200.1+2138_daily_bin576.fits scfile=/scratch/kocevski/80907/ft2_4FGL_J2200.1+2138_daily_bin576.fits outfile=/scratch/kocevski/80907/cmap_HighResolution_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.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.52
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/80907/ft1_filtered_4FGL_J2200.1+2138_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/80907/ft2_4FGL_J2200.1+2138_daily_bin576.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/80907/Model_4FGL_J2200.1+2138_daily_bin576.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/80907/ft1_filtered_4FGL_J2200.1+2138_daily_bin576.fits.....................!
real 151.90
user 149.49
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/80907/ft1_filtered_4FGL_J2200.1+2138_daily_bin576.fits', '/scratch/kocevski/80907/ft2_4FGL_J2200.1+2138_daily_bin576.fits', expMap='/scratch/kocevski/80907/expmap_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.fits', expCube='/scratch/kocevski/80907/ltcube_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/80907/Model_4FGL_J2200.1+2138_daily_bin576.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/80907/ft1_filtered_4FGL_J2200.1+2138_daily_bin576.fits
Spacecraft file(s): /scratch/kocevski/80907/ft2_4FGL_J2200.1+2138_daily_bin576.fits
Exposure map: /scratch/kocevski/80907/expmap_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.fits
Exposure cube: /scratch/kocevski/80907/ltcube_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/80907/Model_4FGL_J2200.1+2138_daily_bin576.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) = 9567.14996496

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.280       1.0000         .10000E-03   10000.    
     2 'norm      '    4.9002       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.8668       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    29.447       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7111       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.607       1.0000         .10000E-03   10000.    
    11 'norm      '    .74106       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    111.54       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6440       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .56434       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0953       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=   9567.148     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2148 TOTAL
                     EDM=   .65E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.279        32.148       -.27422E-06    .23365E-05
   2  norm          4.8997        4.7849        .11137E-05   -.11879E-04
   3  Prefactor     .10000E-03    4.5377        .39758E-07** at limit **
   4  Prefactor     6.8655        8.9960        .11244E-05    .34322E-05
   5  Prefactor     .10000E-03    53.693        .62086E-07** at limit **
   6  norm          29.444        4.5559       -.14946E-07    .61802E-04
   7  Prefactor     .10000E-03    4.5664        .83054E-07** at limit **
   8  Prefactor     .10000E-03    14.053        .21127E-07** at limit **
   9  norm          1.7110        1.0766        .98037E-07    .38763E-06
  10  Prefactor     33.600        39.963        .10949E-05    .23919E-05
  11  norm          .74060        .91625        .77568E-08   -.20103E-03
  12  Prefactor     .10000E-03    6.8034       -.19100E-06** at limit **
  13  norm          .10000E-03    .85963        .21165E-07** at limit **
  14  Prefactor     .10000E-03    5.3297        .22930E-06** at limit **
  15  Prefactor     111.48        117.35        .59964E-05   -.98646E-08
  16  Prefactor     .10000E-03    4.1253       -.38266E-07** at limit **
  17  norm          1.6442        1.0183       -.53862E-07   -.13531E-03
  18  norm          .10000E-03    .36521        .18837E-07** at limit **
  19  Prefactor     .10000E-03    5.4779       -.21532E-06** at limit **
  20  Normalizat    .56448        .24827       -.13332E-05   -.23727E-05
  21  Prefactor     1.0952        .10957       -.13859E-06    .49282E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.2786
  norm       = 4.89969
  Prefactor  = 0.0001
  Prefactor  = 6.86553
  Prefactor  = 0.0001
  norm       = 29.4443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71102
  Prefactor  = 33.5997
  norm       = 0.740603
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.48
  Prefactor  = 0.0001
  norm       = 1.6442
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.564482
  Prefactor  = 1.09523
 **********
 **   18 **HESSE 
 **********

 FCN=   9567.148     FROM HESSE     STATUS=OK           315 CALLS     2463 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.279        32.154        .60938E-04   -1.4391    
   2  norm          4.8997        4.7788        .90851E-03   -1.5265    
   3  Prefactor     .10000E-03    4.5680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.8655        8.9715        .76553E-03   -1.5184    
   5  Prefactor     .10000E-03    53.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          29.444        4.5405        .73832E-04   -1.4622    
   7  Prefactor     .10000E-03    4.5973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7110        1.0772        .16067E-03   -1.5446    
  10  Prefactor     33.600        39.952        .69124E-04   -1.4548    
  11  norm          .74060        .81918        .99238E-03   -1.5536    
  12  Prefactor     .10000E-03    6.8212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .86040        .88563E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.3504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     111.48        117.10        .19044E-03   -1.3592    
  16  Prefactor     .10000E-03    4.1423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6442        1.0205        .74604E-04   -1.5452    
  18  norm          .10000E-03    .36604        .57727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .56448        .25702        .51629E-03   -1.0951    
  21  Prefactor     1.0952        .11605        .17342E-03   -.89619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48538e-09
Minuit parameter uncertainties:
  1  32.1668
  2  4.77918
  3  3.35296e-06
  4  8.9733
  5  3.16223e-06
  6  4.54055
  7  3.8775e-06
  8  2.11164e-06
  9  1.07724
  10  39.9835
  11  0.819191
  12  1.80796e-05
  13  3.31916e-07
  14  2.75153e-06
  15  117.341
  16  6.69579e-07
  17  1.02053
  18  1.26888e-07
  19  3.37251e-06
  20  0.257562
  21  0.116075
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  3.360e+01  3.998e+01  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:  1.095e+00  1.161e-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:  5.645e-01  2.576e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.52
Ra Dec: 330.031 21.638
Photon Index (Fixed Index): 2.04 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.62e-05

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

Saving results to:
/scratch/kocevski/80907/likelihoodResults_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9567.07064225
delta logL = 0.0770060359482

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9567.06289261
delta logL = 0.0847556781209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.493       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5498       1.0000          .0000       10.000    
     3 'Normalizat'    .53909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1009       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=   9567.063     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      333 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.458        177.36        .90717E-04    .27400E-03
   2  Index         2.5503        3.1310        .89582E-02    .15063E-03
   3  Normalizat    .53772        .32575        .52841E-03    .17070E-03
   4  Prefactor     1.1016        .12886        .17297E-03   -.12973E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4584
  Index      = 2.55029
  Normalizat = 0.537716
  Prefactor  = 1.10158
 **********
 **   18 **HESSE 
 **********

 FCN=   9567.063     FROM HESSE     STATUS=OK            25 CALLS      358 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.458        42.331        .18143E-04   -1.4825    
   2  Index         2.5503        1.2333        .35833E-03   -.51202    
   3  Normalizat    .53772        .26220        .21137E-04   -1.1070    
   4  Prefactor     1.1016        .11645        .34595E-04   -.89416    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26674e-09
Minuit parameter uncertainties:
  1  42.3963
  2  1.25042
  3  0.262802
  4  0.116476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/80907': 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) = 9567.06287412
delta logL = 0.0847741610032

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.946e+01  4.240e+01  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.550e+00  1.250e+00  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:  1.102e+00  1.165e-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:  5.377e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.74
Ra Dec: 330.031 21.638
Photon Index (Free Index): 2.55 +/- 1.25
Photon Flux (Free Index): 4.29e-08 +/- 7.01e-08
Energy Flux (Free Index): 1.18e-05 +/- 1.22e-05

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/80907/cmap_HighResolution_388627201_388886401_4FGL_J2200.1+2138_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.18e-05', photon_flux_error='2.60e-08', dlogl='8.48e-02', energy_flux='1.36e-05', photon_flux2='4.29e-08', job_status='DONE', time_completed='2021-09-27 23:36:09.196724', photon_index_error2='1.25', photon_index2='2.55', ts='1.52', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='1.22e-05', EG='0.56', time_epoch_completed='1632810969.2', return_code='0', job_id='80907', GAL2='1.10', EG2='0.54', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='7.01e-08', ts2='1.74', photon_index='2.04' WHERE bin_id='576' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:36:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 80907: <4FGL_J2200.1+2138_daily_bin576> in cluster <slac> Done

Job <4FGL_J2200.1+2138_daily_bin576> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep 27 23:20:38 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 27 23:20:40 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:20:40 2021
Terminated at Mon Sep 27 23:36:09 2021
Results reported at Mon Sep 27 23:36:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin576 330.031 21.6382 388627201 388886401 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 :                                   853.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             360.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

