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


Performing analysis on: 4FGL_J2200.7-2414_daily_bin1656
RA = 330.181, Dec = -24.2421
tmin = 668563201, tmax = 668822401
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='383121', job_status='RUN', time_executed='2022-03-13 00:44:23.281588', time_epoch_executed='1647161063.28' WHERE source_name='4FGL J2200.7-2414' and cadence='daily' and bin_id='1656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/383121

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/383121/ft1_4FGL_J2200.7-2414_daily_bin1656.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/383121/ft1_4FGL_J2200.7-2414_daily_bin1656.fits outfile=/scratch/kocevski/383121/ft1_filteredMKT_4FGL_J2200.7-2414_daily_bin1656.fits ra=330.181 dec=-24.2421 rad=12.0 tmin=668563201.0 tmax=668822401.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 5.39
user 5.05
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.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/383121/ft1_filteredMKT_4FGL_J2200.7-2414_daily_bin1656.fits evtable="EVENTS" outfile="/scratch/kocevski/383121/ft1_filtered_4FGL_J2200.7-2414_daily_bin1656.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
Number of photons that survived the gtmktime cut: 416

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/383121/ft1_filtered_4FGL_J2200.7-2414_daily_bin1656.fits" evtable="EVENTS" scfile=/scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits sctable="SC_DATA" outfile=/scratch/kocevski/383121/ltcube_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.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/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits
.....................!
real 13.09
user 12.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/383121/ft1_filtered_4FGL_J2200.7-2414_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits sctable="SC_DATA" expcube=/scratch/kocevski/383121/ltcube_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.fits outfile=/scratch/kocevski/383121/expmap_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.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/383121/ltcube_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.fits
.....................!
real 192.50
user 186.35
sys 5.67

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2200.7-2414 @ 330.181 -24.2421

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/383121/ft1_filtered_4FGL_J2200.7-2414_daily_bin1656.fits scfile=/scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits outfile=/scratch/kocevski/383121/cmap_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.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.181 yref=-24.2421 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/383121/ft1_filtered_4FGL_J2200.7-2414_daily_bin1656.fits scfile=/scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits outfile=/scratch/kocevski/383121/cmap_HighResolution_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.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.181 yref=-24.2421 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/383121/ft1_filtered_4FGL_J2200.7-2414_daily_bin1656.fits evtable="EVENTS" scfile=/scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/383121/Model_4FGL_J2200.7-2414_daily_bin1656.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/383121/ft1_filtered_4FGL_J2200.7-2414_daily_bin1656.fits.....................!
real 45.32
user 43.92
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/383121/ft1_filtered_4FGL_J2200.7-2414_daily_bin1656.fits', '/scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits', expMap='/scratch/kocevski/383121/expmap_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.fits', expCube='/scratch/kocevski/383121/ltcube_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/383121/Model_4FGL_J2200.7-2414_daily_bin1656.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2200.7-2414'

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  1.200e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.225e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.514e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/383121/ft1_filtered_4FGL_J2200.7-2414_daily_bin1656.fits
Spacecraft file(s): /scratch/kocevski/383121/ft2_4FGL_J2200.7-2414_daily_bin1656.fits
Exposure map: /scratch/kocevski/383121/expmap_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.fits
Exposure cube: /scratch/kocevski/383121/ltcube_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/383121/Model_4FGL_J2200.7-2414_daily_bin1656.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) = 4705.42669858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.4642       1.0000         .10000E-03   10000.    
     5 'norm      '    3.4086       1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.461       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2865       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.6874       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.887       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1258       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.244       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    90.586       1.0000         .10000E-03   10000.    
    18 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17773E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    4.9108       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1094       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97628       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4705.393     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     2321 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7622       -.78929E-06** at limit **
   2  norm          .10000E-03    6.5990       -.12255E-05** at limit **
   3  Prefactor     .10000E-03    2.4908       -.34220E-06** at limit **
   4  Prefactor     1.4634        17.405       -.45070E-04    .29684E-03
   5  norm          3.4060        7.3473        .74793E-05   -.37342E-03
   6  Prefactor     12.422        3.6049       -.12606E-07   -.16972E-02
   7  norm          4.2880        1.5276        .34113E-05    .73008E-02
   8  Prefactor     .10000E-03    34.675       -.45511E-05** at limit **
   9  Prefactor     .10000E-03    39.805        .62048E-05** at limit **
  10  norm          8.6827        5.9611        .39764E-05   -.63310E-03
  11  Prefactor     24.886        1.8301        .28348E-06   -.14461E-02
  12  norm          .10000E-03    .18686       -.66921E-06** at limit **
  13  Prefactor     7.1203        1.7270        .21673E-05   -.20763E-02
  14  Prefactor     .10000E-03    6.1200       -.30799E-06** at limit **
  15  Prefactor     26.239        1.5069        .19228E-06   -.11119E-02
  16  Prefactor     .10000E-03    5.8121       -.25356E-05** at limit **
  17  Prefactor     90.051        105.93       -.39466E-05    .25466E-03
  18  norm          .10000E-03    16.163        .35308E-05** at limit **
  19  Prefactor     .10001E-03    136.23       -.19426E-04** at limit **
  20  norm          4.9138        3.1961       -.86463E-06   -.23775E-04
  21  Prefactor     .10000E-03    89.488       -.22367E-04** at limit **
  22  norm          .10000E-03    8.3155        .18965E-05** at limit **
  23  Normalizat    1.1099        .27624       -.42990E-04   -.17279E-04
  24  Prefactor     .97623        .19286        .18229E-04   -.94870E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.46342
  norm       = 3.40598
  Prefactor  = 12.422
  norm       = 4.28802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.68271
  Prefactor  = 24.8857
  norm       = 0.0001
  Prefactor  = 7.12028
  Prefactor  = 0.0001
  Prefactor  = 26.2394
  Prefactor  = 0.0001
  Prefactor  = 90.051
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 4.91376
  Prefactor  = 0.000100003
  norm       = 0.0001
  Normalizat = 1.1099
  Prefactor  = 0.976229
 **********
 **   18 **HESSE 
 **********

 FCN=   4705.393     FROM HESSE     STATUS=OK           449 CALLS     2770 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7456        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.4961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4634        18.409        .88856E-02   -1.5466    
   5  norm          3.4060        7.3967        .54780E-02   -1.5339    
   6  Prefactor     12.422        25.962        .28369E-02   -1.5003    
   7  norm          4.2880        5.3984        .48648E-02   -1.5294    
   8  Prefactor     .10000E-03    34.122        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.6827        6.0241        .33999E-02   -1.5119    
  11  Prefactor     24.886        20.140        .20074E-02   -1.4710    
  12  norm          .10000E-03    .16767        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.1203        11.802        .37568E-02   -1.5174    
  14  Prefactor     .10000E-03    6.1132        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     26.239        24.171        .19550E-02   -1.4683    
  16  Prefactor     .10000E-03    5.7969        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     90.051        106.16        .10555E-02   -1.3807    
  18  norm          .10000E-03    16.147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    19.879        .91116E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.9138        3.2132        .45376E-02   -1.5265    
  21  Prefactor     .10000E-03    89.529        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    8.1264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1099        .24216        .64615E-01   -.89435    
  24  Prefactor     .97623        .16433        .45970E-01   -.93526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14516e-07
Minuit parameter uncertainties:
  1  5.16716e-06
  2  1.15964e-05
  3  7.12587e-07
  4  10.3843
  5  7.39867
  6  25.9853
  7  5.39903
  8  0.000191701
  9  0.000212074
  10  6.0245
  11  20.1451
  12  3.75757e-07
  13  11.8055
  14  1.66687e-06
  15  24.1803
  16  1.11122e-05
  17  106.387
  18  2.35842e-05
  19  0.000632841
  20  3.21336
  21  0.000986336
  22  1.11581e-06
  23  0.242405
  24  0.164414
Done.

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

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  7.120e+00  1.181e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.225e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  1.514e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.762e-01  1.644e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.110e+00  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.50
Ra Dec: 330.181 -24.242
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/383121/likelihoodResults_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.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) = 4705.3650307
delta logL = 0.027948595286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4705.35367351
delta logL = 0.0393057829879

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4705.354     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      226 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2951        231.25        .43631E-02    .21031E-03
   2  Index         2.5228        3.5482        .20515        .62562E-04
   3  Normalizat    1.1007        .64366E-01    .64850E-01   -.11718E-04
   4  Prefactor     .98002        .42427E-01    .46017E-01   -.78038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.29511
  Index      = 2.5228
  Normalizat = 1.1007
  Prefactor  = 0.980017
 **********
 **   18 **HESSE 
 **********

 FCN=   4705.354     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2951        13.051        .17452E-03   -1.5248    
   2  Index         2.5228        1.2481        .71459E-02   -.51834    
   3  Normalizat    1.1007        .27144        .28687E-03   -.89729    
   4  Prefactor     .98002        .19210        .21461E-03   -.93399    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97413e-11
Minuit parameter uncertainties:
  1  13.0579
  2  1.26598
  3  0.271781
  4  0.192233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/383121': 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) = 4705.35367318
delta logL = 0.039306109853

Extracting fit parameters...

4FGL J2200.7-2414
   Spectrum: PowerLaw
273    Prefactor:  5.295e+00  1.306e+01  1.000e-04  1.000e+04 ( 1.000e-13)
274        Index:  2.523e+00  1.266e+00  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  1.514e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
514    Prefactor:  9.800e-01  1.922e-01  0.000e+00  1.000e+01 ( 1.000e+00)
515        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
516        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
513   Normalization:  1.101e+00  2.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.50
Ra Dec: 330.181 -24.242

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/383121/cmap_HighResolution_668563201_668822401_4FGL_J2200.7-2414_daily_bin1656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2022-03-13 00:53:36.549453', job_id='383121', GAL2='0.98', fit_tolerance='1e-08', EG2='1.10', EG='1.11', time_epoch_completed='1647161616.55', return_code2='0', ts='0.50', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.93e-02', ts2='0.58', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1656' AND source_name='4FGL J2200.7-2414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Mar 13 00:53:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 383121: <4FGL_J2200.7-2414_daily_bin1656> in cluster <slac> Done

Job <4FGL_J2200.7-2414_daily_bin1656> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Mar 13 00:40:36 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Mar 13 00:43:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Mar 13 00:43:21 2022
Terminated at Sun Mar 13 00:53:37 2022
Results reported at Sun Mar 13 00:53:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2200.7-2414_daily_bin1656 330.181 -24.2421 668563201 668822401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2200.7-2414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   555.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   616 sec.
    Turnaround time :                            781 sec.

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

