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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin797
RA = 330.872, Dec = 17.4318
tmin = 445910401, tmax = 446169601
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='155492', job_status='RUN', time_executed='2021-09-28 03:25:48.905635', time_epoch_executed='1632824748.91' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='797'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155492

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155492/ft1_4FGL_J2203.4+1725_daily_bin797.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155492/ft1_4FGL_J2203.4+1725_daily_bin797.fits outfile=/scratch/kocevski/155492/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin797.fits ra=330.872 dec=17.4318 rad=12.0 tmin=445910401.0 tmax=446169601.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 3.94
user 3.72
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.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/155492/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin797.fits evtable="EVENTS" outfile="/scratch/kocevski/155492/ft1_filtered_4FGL_J2203.4+1725_daily_bin797.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155492/ft1_filtered_4FGL_J2203.4+1725_daily_bin797.fits" evtable="EVENTS" scfile=/scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits sctable="SC_DATA" outfile=/scratch/kocevski/155492/ltcube_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.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/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits
.....................!
real 11.86
user 11.49
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155492/ft1_filtered_4FGL_J2203.4+1725_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits sctable="SC_DATA" expcube=/scratch/kocevski/155492/ltcube_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.fits outfile=/scratch/kocevski/155492/expmap_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.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/155492/ltcube_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.fits
.....................!
real 193.00
user 187.10
sys 5.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 162 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 J2203.4+1725 @ 330.872 17.4318

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/155492/ft1_filtered_4FGL_J2203.4+1725_daily_bin797.fits scfile=/scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits outfile=/scratch/kocevski/155492/cmap_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.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.872 yref=17.4318 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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155492/ft1_filtered_4FGL_J2203.4+1725_daily_bin797.fits scfile=/scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits outfile=/scratch/kocevski/155492/cmap_HighResolution_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.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.872 yref=17.4318 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.59
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/155492/ft1_filtered_4FGL_J2203.4+1725_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/155492/Model_4FGL_J2203.4+1725_daily_bin797.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/155492/ft1_filtered_4FGL_J2203.4+1725_daily_bin797.fits.....................!
real 148.86
user 147.42
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/155492/ft1_filtered_4FGL_J2203.4+1725_daily_bin797.fits', '/scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits', expMap='/scratch/kocevski/155492/expmap_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.fits', expCube='/scratch/kocevski/155492/ltcube_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/155492/Model_4FGL_J2203.4+1725_daily_bin797.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2203.4+1725'

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.262e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.231e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/155492/ft1_filtered_4FGL_J2203.4+1725_daily_bin797.fits
Spacecraft file(s): /scratch/kocevski/155492/ft2_4FGL_J2203.4+1725_daily_bin797.fits
Exposure map: /scratch/kocevski/155492/expmap_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.fits
Exposure cube: /scratch/kocevski/155492/ltcube_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/155492/Model_4FGL_J2203.4+1725_daily_bin797.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) = 9264.59087478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2172       1.0000         .10000E-03   10000.    
     2 'norm      '    8.6683       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.5753       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79981       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.2083       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .35377       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11500E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.2885       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.6860       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2668       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2811       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99895       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0792       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9264.524     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     2605 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1562        92.146        .45568E-05    .12415E-04
   2  norm          8.6725        5.6928       -.13297E-06    .35842E-04
   3  Prefactor     3.5754        5.9501        .95578E-07    .13602E-03
   4  Prefactor     .81773        5.4824       -.13735E-06    .17251E-04
   5  Prefactor     .10000E-03    73.164        .18758E-05** at limit **
   6  norm          9.2093        3.0458        .24549E-06    .28726E-03
   7  Prefactor     .10000E-03    26.392       -.34968E-05** at limit **
   8  norm          .10000E-03    1.3184       -.55623E-06** at limit **
   9  norm          .45349        52.369       -.50239E-05    .16150E-03
  10  Prefactor     .10000E-03    23.727        .50981E-05** at limit **
  11  Prefactor     .10000E-03    327.62        .68895E-05** at limit **
  12  norm          2.2889        1.1810        .33167E-07    .15068E-03
  13  Prefactor     .10000E-03    16.879       -.12945E-05** at limit **
  14  Prefactor     .10000E-03    3.4406       -.28091E-07** at limit **
  15  norm          1.6856        3.7793        .80726E-06    .69792E-03
  16  Prefactor     .10000E-03    13.505       -.78449E-06** at limit **
  17  Prefactor     .10000E-03    67.221        .16078E-05** at limit **
  18  Prefactor     .10000E-03    17.202       -.18010E-05** at limit **
  19  Prefactor     1.2669        .27203       -.15696E-07    .10942E-03
  20  Prefactor     .10000E-03    2.2239       -.14175E-07** at limit **
  21  norm          1.2812        1.0885       -.12351E-07    .11652E-05
  22  Prefactor     .10000E-03    15.071        .16211E-05** at limit **
  23  Prefactor     .10000E-03    5.9219       -.61170E-07** at limit **
  24  Normalizat    .99883        .24483        .43727E-06    .19686E-03
  25  Prefactor     1.0792        .11875        .12673E-06    .33769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15625
  norm       = 8.67251
  Prefactor  = 3.57539
  Prefactor  = 0.817729
  Prefactor  = 0.0001
  norm       = 9.2093
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.453487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.28888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.68558
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26686
  Prefactor  = 0.0001
  norm       = 1.28117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.998833
  Prefactor  = 1.07918
 **********
 **   18 **HESSE 
 **********

 FCN=   9264.524     FROM HESSE     STATUS=OK           429 CALLS     3034 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1562        92.386        .14931E-03   -1.5173    
   2  norm          8.6725        5.6875        .13615E-03   -1.5119    
   3  Prefactor     3.5754        5.8414        .21373E-03   -1.5330    
   4  Prefactor     .81773        13.928        .40723E-02   -1.5527    
   5  Prefactor     .10000E-03    73.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.2093        3.0376        .91472E-04   -1.5101    
   7  Prefactor     .10000E-03    26.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.6434        .20158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .45349        115.72        .67006E-02   -1.5573    
  10  Prefactor     .10000E-03    23.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    338.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.2889        1.1754        .71250E-04   -1.5405    
  13  Prefactor     .10000E-03    16.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.4435        .17436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.6856        4.6095        .16215E-02   -1.5448    
  16  Prefactor     .10000E-03    13.630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    67.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2669        .27210        .22345E-04   -1.5483    
  20  Prefactor     .10000E-03    2.2245        .14018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2812        1.0886        .39209E-04   -1.5482    
  22  Prefactor     .10000E-03    15.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.9428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99883        .28246        .41266E-03   -.93070    
  25  Prefactor     1.0792        .13862        .19738E-03   -.90135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46162e-09
Minuit parameter uncertainties:
  1  51.5229
  2  5.68781
  3  5.84233
  4  6.75104
  5  0.000105604
  6  3.03761
  7  0.000146595
  8  0.000123815
  9  14.5151
  10  0.000144765
  11  5.96934e-06
  12  1.17544
  13  4.82352e-05
  14  1.5511e-06
  15  4.61048
  16  2.89976e-05
  17  9.34898e-05
  18  7.39127e-05
  19  0.272098
  20  1.8138e-07
  21  1.08859
  22  5.23877e-05
  23  3.42958e-06
  24  0.282882
  25  0.138669
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.289e+00  1.175e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.231e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.079e+00  1.387e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.988e-01  2.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.72
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 9.01e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 1.75e-05

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) = 9264.26150554
delta logL = 0.262275910654

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9264.2579455
delta logL = 0.265835949076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9731       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6375       1.0000          .0000       5.0000    
     3 'Normalizat'    .95154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0949       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9264.258     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      232 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9729        13.267        .73791E-02    .63741E-03
   2  alpha         2.6376        3.8187        .36036        .68672E-04
   3  Normalizat    .95126        .89858E-01    .95173E-01    .43456E-04
   4  Prefactor     1.0950        .41160E-01    .37784E-01   -.16370E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.97287
  alpha      = 2.63759
  Normalizat = 0.951256
  Prefactor  = 1.09504
 **********
 **   18 **HESSE 
 **********

 FCN=   9264.258     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .78E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9729        1.2737        .60553E-04   -1.5427    
   2  alpha         2.6376        .60552        .13365E-01    .55065E-01
   3  Normalizat    .95126        .28584        .42160E-03   -.94682    
   4  Prefactor     1.0950        .13967        .19612E-03   -.89625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7762e-12
Minuit parameter uncertainties:
  1  1.27374
  2  0.611622
  3  0.286296
  4  0.139713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155492': 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) = 9264.25794489
delta logL = 0.265836554197

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.973e+00  1.274e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.638e+00  6.116e-01  0.000e+00  5.000e+00 ( 1.000e+00)
272         beta:  7.474e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
273           Eb:  5.997e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  1.095e+00  1.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  9.513e-01  2.863e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.32
Ra Dec: 330.872 17.432
Photon Index (Free Index): 2.64 +/- 0.61
Photon Flux (Free Index): 1.19e-07 +/- 6.43e-08
Energy Flux (Free Index): 3.03e-05 +/- 1.54e-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/155492/cmap_HighResolution_445910401_446169601_4FGL_J2203.4+1725_daily_bin797.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.01e-08', energy_flux2='3.03e-05', photon_flux_error='4.62e-08', dlogl='2.66e-01', energy_flux='3.40e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-28 03:39:45.262359', photon_index_error2='0.61', photon_index2='2.64', ts='6.72', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.54e-05', EG='1.00', time_epoch_completed='1632825585.26', return_code='0', job_id='155492', GAL2='1.10', EG2='0.95', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='6.43e-08', ts2='7.32', photon_index='2.23' WHERE bin_id='797' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:39:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 155492: <4FGL_J2203.4+1725_daily_bin797> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin797> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:25:32 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:25:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 03:25:34 2021
Terminated at Tue Sep 28 03:39:46 2021
Results reported at Tue Sep 28 03:39:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin797 330.872 17.4318 445910401 446169601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2203.4+1725 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   832.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             369.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            854 sec.

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

