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


Performing analysis on: 4FGL_J2200.1+2138_daily_bin724
RA = 330.031, Dec = 21.6382
tmin = 426988801, tmax = 427248001
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='81136', job_status='RUN', time_executed='2021-09-27 23:21:43.349837', time_epoch_executed='1632810103.35' WHERE source_name='4FGL J2200.1+2138' and cadence='daily' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81136

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81136/ft1_4FGL_J2200.1+2138_daily_bin724.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81136/ft2_4FGL_J2200.1+2138_daily_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81136/ft1_4FGL_J2200.1+2138_daily_bin724.fits outfile=/scratch/kocevski/81136/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin724.fits ra=330.031 dec=21.6382 rad=12.0 tmin=426988801.0 tmax=427248001.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 6.38
user 5.57
sys 0.75

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/81136/ft2_4FGL_J2200.1+2138_daily_bin724.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/81136/ft1_filteredMKT_4FGL_J2200.1+2138_daily_bin724.fits evtable="EVENTS" outfile="/scratch/kocevski/81136/ft1_filtered_4FGL_J2200.1+2138_daily_bin724.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.62
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81136/ft1_filtered_4FGL_J2200.1+2138_daily_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/81136/ft2_4FGL_J2200.1+2138_daily_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/81136/ltcube_426988801_427248001_4FGL_J2200.1+2138_daily_bin724.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/81136/ft2_4FGL_J2200.1+2138_daily_bin724.fits
.....................!
real 14.93
user 14.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81136/ft1_filtered_4FGL_J2200.1+2138_daily_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/81136/ft2_4FGL_J2200.1+2138_daily_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/81136/ltcube_426988801_427248001_4FGL_J2200.1+2138_daily_bin724.fits outfile=/scratch/kocevski/81136/expmap_426988801_427248001_4FGL_J2200.1+2138_daily_bin724.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/81136/ltcube_426988801_427248001_4FGL_J2200.1+2138_daily_bin724.fits
.....................!
real 191.30
user 185.95
sys 4.56

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/81136/ft1_filtered_4FGL_J2200.1+2138_daily_bin724.fits scfile=/scratch/kocevski/81136/ft2_4FGL_J2200.1+2138_daily_bin724.fits outfile=/scratch/kocevski/81136/cmap_426988801_427248001_4FGL_J2200.1+2138_daily_bin724.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81136/ft1_filtered_4FGL_J2200.1+2138_daily_bin724.fits scfile=/scratch/kocevski/81136/ft2_4FGL_J2200.1+2138_daily_bin724.fits outfile=/scratch/kocevski/81136/cmap_HighResolution_426988801_427248001_4FGL_J2200.1+2138_daily_bin724.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.35       1.0000         .10000E-03   10000.    
     2 'norm      '    .11123E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.211       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7060       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.304       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13150E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.2109       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .74988       1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.747       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.277       1.0000         .10000E-03   10000.    
    17 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4054       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.169       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2271       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .58151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5224.682     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     1889 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.34        2.5899       -.13037E-05    .41325E-02
   2  norm          .10000E-03    2.2704       -.86331E-06** at limit **
   3  Prefactor     21.205        11.885       -.18863E-04   -.42827E-02
   4  Prefactor     3.7054        3.6199        .76966E-05   -.51989E-02
   5  Prefactor     .10557E-03    146.67       -.10276E-03** at limit **
   6  norm          18.305        4.7793        .23842E-08    .13726E-02
   7  Prefactor     11.438        2.3766       -.51927E-05   -.36967E-02
   8  Prefactor     .10365E-03    31.956       -.26588E-05** at limit **
   9  norm          2.2108        1.2506       -.36625E-06    .23243E-03
  10  Prefactor     .10247E-03    31.870        .36487E-06** at limit **
  11  norm          .74993        .73170       -.63142E-06   -.30723E-04
  12  Prefactor     18.740        1.1043       -.31236E-06    .46901E-03
  13  norm          .10000E-03    2.6503        .44469E-06** at limit **
  14  Prefactor     .10000E-03    17.186        .24576E-05** at limit **
  15  Prefactor     .10311E-03    58.763        .11205E-04** at limit **
  16  Prefactor     15.272        1.9632       -.39526E-06    .17931E-02
  17  norm          .10000E-03    .97775        .13513E-06** at limit **
  18  norm          4.4054        3.0316       -.10718E-05   -.12130E-03
  19  Prefactor     30.164        1.0639       -.86563E-07    .23473E-03
  20  Normalizat    1.2275        .33563        .67009E-05    .90391E-04
  21  Prefactor     .58137        .13043        .34035E-05    .19226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.34
  norm       = 0.0001
  Prefactor  = 21.2049
  Prefactor  = 3.70544
  Prefactor  = 0.000105567
  norm       = 18.3048
  Prefactor  = 11.4378
  Prefactor  = 0.000103647
  norm       = 2.21078
  Prefactor  = 0.000102467
  norm       = 0.749927
  Prefactor  = 18.7401
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103114
  Prefactor  = 15.272
  norm       = 0.0001
  norm       = 4.40537
  Prefactor  = 30.1643
  Normalizat = 1.2275
  Prefactor  = 0.581375
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.682     FROM HESSE     STATUS=OK           363 CALLS     2252 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.34        47.469        .95726E-03   -1.3603    
   2  norm          .10000E-03    2.2502        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.205        12.539        .21742E-02   -1.4787    
   4  Prefactor     3.7054        11.277        .52444E-02   -1.5323    
   5  Prefactor     .10557E-03    179.59        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.305        4.8743        .23404E-02   -1.4852    
   7  Prefactor     11.438        9.1425        .29612E-02   -1.5031    
   8  Prefactor     .10365E-03    111.55        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.2108        1.2560        .69158E-02   -1.5411    
  10  Prefactor     .10247E-03    109.37        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .74993        .70739        .12252E-01   -1.5535    
  12  Prefactor     18.740        25.819        .23126E-02   -1.4842    
  13  norm          .10000E-03    2.6423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.135        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10311E-03    97.941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.272        18.993        .25618E-02   -1.4926    
  17  norm          .10000E-03    .95247        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4054        3.0809        .47969E-02   -1.5288    
  19  Prefactor     30.164        24.797        .18236E-02   -1.4609    
  20  Normalizat    1.2275        .29818        .78708E-01   -.85757    
  21  Prefactor     .58137        .11197        .40801E-01   -1.0838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3965e-07
Minuit parameter uncertainties:
  1  47.4851
  2  1.32674e-05
  3  12.5404
  4  11.2831
  5  0.0634269
  6  4.87441
  7  9.14364
  8  0.0404161
  9  1.25598
  10  0.0329134
  11  0.707401
  12  25.8343
  13  2.26651e-05
  14  5.91296e-05
  15  0.0349867
  16  19.0002
  17  9.28757e-06
  18  3.08104
  19  24.8052
  20  0.298591
  21  0.112014
Done.

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

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.025e-04  3.291e-02  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:  5.814e-01  1.120e-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.227e+00  2.986e-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: 8.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81136/likelihoodResults_426988801_427248001_4FGL_J2200.1+2138_daily_bin724.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) = 5224.68199983
delta logL = -4.29344318036e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5224.68195696
delta logL = -6.09588823863e-08

Fit tolerance = 1e-08

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

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

 FCN=   5224.682     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      248 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    42.135        .90712E-02** at limit **
   2  Index         2.1438        5.9737        .50000        .26229E-05
   3  Normalizat    1.2275        .46872E-02    .78708E-01   -.27274E-04
   4  Prefactor     .58137        .18657E-02    .40799E-01   -.65754E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14378
  Normalizat = 1.2275
  Prefactor  = 0.581374
 **********
 **   18 **HESSE 
 **********

 FCN=   5224.682     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    323.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1438        8.7308        .50000       -.60802    
   3  Normalizat    1.2275        .12963E-01    .34839E-03   -.85757    
   4  Prefactor     .58137        .51657E-02    .19367E-03   -1.0838    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.09961e-08
Minuit parameter uncertainties:
  1  0.0006779
  2  221.487
  3  0.0129634
  4  0.0051657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81136': 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) = 5224.68195693
delta logL = -3.23589119944e-08

Extracting fit parameters...

4FGL J2200.1+2138
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  6.779e-04  1.000e-04  1.000e+04 ( 1.000e-14)
269        Index:  2.144e+00  2.215e+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:  5.814e-01  5.166e-03  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.227e+00  1.296e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/81136/cmap_HighResolution_426988801_427248001_4FGL_J2200.1+2138_daily_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', job_status='DONE', photon_flux_upper_limit='8.78e-08', time_completed='2021-09-27 23:31:59.984918', job_id='81136', GAL2='0.58', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1632810719.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='-3.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.04' WHERE bin_id='724' AND source_name='4FGL J2200.1+2138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 27 23:32:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 81136: <4FGL_J2200.1+2138_daily_bin724> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.1+2138_daily_bin724 330.031 21.6382 426988801 427248001 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 :                                   604.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            664 sec.

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

