/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 130 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 = 7682
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2203.4+1725_daily_bin85
RA = 330.872, Dec = 17.4318
tmin = 261360001, tmax = 261619201
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='152317', job_status='RUN', time_executed='2021-09-28 03:17:37.091986', time_epoch_executed='1632824257.09' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152317

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152317/ft1_4FGL_J2203.4+1725_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152317/ft2_4FGL_J2203.4+1725_daily_bin85.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152317/ft1_4FGL_J2203.4+1725_daily_bin85.fits outfile=/scratch/kocevski/152317/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin85.fits ra=330.872 dec=17.4318 rad=12.0 tmin=261360001.0 tmax=261619201.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 1.50
user 1.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152317/ft2_4FGL_J2203.4+1725_daily_bin85.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/152317/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin85.fits evtable="EVENTS" outfile="/scratch/kocevski/152317/ft1_filtered_4FGL_J2203.4+1725_daily_bin85.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152317/ft1_filtered_4FGL_J2203.4+1725_daily_bin85.fits" evtable="EVENTS" scfile=/scratch/kocevski/152317/ft2_4FGL_J2203.4+1725_daily_bin85.fits sctable="SC_DATA" outfile=/scratch/kocevski/152317/ltcube_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.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/152317/ft2_4FGL_J2203.4+1725_daily_bin85.fits
.....................!
real 13.97
user 13.07
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152317/ft1_filtered_4FGL_J2203.4+1725_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/152317/ft2_4FGL_J2203.4+1725_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/152317/ltcube_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.fits outfile=/scratch/kocevski/152317/expmap_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.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/152317/ltcube_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.fits
.....................!
real 194.21
user 186.34
sys 7.48

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/152317/ft1_filtered_4FGL_J2203.4+1725_daily_bin85.fits scfile=/scratch/kocevski/152317/ft2_4FGL_J2203.4+1725_daily_bin85.fits outfile=/scratch/kocevski/152317/cmap_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152317/ft1_filtered_4FGL_J2203.4+1725_daily_bin85.fits scfile=/scratch/kocevski/152317/ft2_4FGL_J2203.4+1725_daily_bin85.fits outfile=/scratch/kocevski/152317/cmap_HighResolution_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152317/ft1_filtered_4FGL_J2203.4+1725_daily_bin85.fits', '/scratch/kocevski/152317/ft2_4FGL_J2203.4+1725_daily_bin85.fits', expMap='/scratch/kocevski/152317/expmap_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.fits', expCube='/scratch/kocevski/152317/ltcube_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152317/Model_4FGL_J2203.4+1725_daily_bin85.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/152317/ft1_filtered_4FGL_J2203.4+1725_daily_bin85.fits
Spacecraft file(s): /scratch/kocevski/152317/ft2_4FGL_J2203.4+1725_daily_bin85.fits
Exposure map: /scratch/kocevski/152317/expmap_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.fits
Exposure cube: /scratch/kocevski/152317/ltcube_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152317/Model_4FGL_J2203.4+1725_daily_bin85.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) = 7879.40149841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.364       1.0000         .10000E-03   10000.    
     2 'norm      '    8.0397       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32467       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .84117E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.363       1.0000         .10000E-03   10000.    
     9 'norm      '    3.9391       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.314       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3996       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.152       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9625       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    71.904       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .16324       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9535       1.0000         .10000E-03   10000.    
    21 'norm      '    .10593E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.815       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .44398       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7879.383     FROM MIGRAD    STATUS=CONVERGED     87 CALLS     2498 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.363        1.0181       -.39563E-06    .39531E-03
   2  norm          8.0397        1.0320        .91134E-06    .35581E-02
   3  Prefactor     .33294        .67080       -.27887E-05   -.23340E-03
   4  Prefactor     .10031E-03    1.0282        .13596E-04** at limit **
   5  Prefactor     .10002E-03    74.001       -.13815E-03** at limit **
   6  norm          19.412        3.8147        .14721E-05    .30669E-03
   7  Prefactor     .10001E-03    44.260        .10935E-03** at limit **
   8  norm          10.363        3.2747       -.16902E-06    .10207E-03
   9  norm          3.9353        1.0630       -.11488E-05   -.89821E-05
  10  Prefactor     .10000E-03    11.392        .11433E-04** at limit **
  11  Prefactor     36.300        3.4761       -.62535E-05    .71564E-02
  12  norm          2.3995        1.0554       -.16506E-07    .22590E-03
  13  Prefactor     .10000E-03    21.302       -.25687E-04** at limit **
  14  Prefactor     10.150        1.0110        .40553E-06   -.19887E-04
  15  norm          1.9620        3.4921       -.97181E-06    .30121E-04
  16  Prefactor     .10000E-03    5.9364        .14936E-05** at limit **
  17  Prefactor     71.898        1.9003       -.21843E-05    .56558E-02
  18  Prefactor     .10001E-03    8.7662       -.88202E-05** at limit **
  19  Prefactor     .16313        .15941        .14332E-06    .11880E-03
  20  Prefactor     2.9538        1.0754        .19129E-05    .28648E-02
  21  norm          .10000E-03    2.5721        .60555E-07** at limit **
  22  Prefactor     14.814        1.0049       -.13357E-06   -.17665E-04
  23  Prefactor     .10000E-03    5.0351       -.48138E-06** at limit **
  24  Normalizat    .44395        .26029       -.19115E-05    .40699E-04
  25  Prefactor     1.1117        .12989       -.28570E-06    .17064E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.363
  norm       = 8.03973
  Prefactor  = 0.332937
  Prefactor  = 0.000100312
  Prefactor  = 0.000100016
  norm       = 19.4118
  Prefactor  = 0.000100006
  norm       = 10.3629
  norm       = 3.93529
  Prefactor  = 0.000100005
  Prefactor  = 36.3002
  norm       = 2.39946
  Prefactor  = 0.000100005
  Prefactor  = 10.1503
  norm       = 1.962
  Prefactor  = 0.000100001
  Prefactor  = 71.898
  Prefactor  = 0.000100009
  Prefactor  = 0.16313
  Prefactor  = 2.9538
  norm       = 0.0001
  Prefactor  = 14.8135
  Prefactor  = 0.0001
  Normalizat = 0.443954
  Prefactor  = 1.11174
 **********
 **   18 **HESSE 
 **********

 FCN=   7879.383     FROM HESSE     STATUS=OK           497 CALLS     2995 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.363        30.456        .18806E-02   -1.4642    
   2  norm          8.0397        4.2732        .35351E-02   -1.5141    
   3  Prefactor     .33294        2.5579        .76139E-01   -1.5593    
   4  Prefactor     .10031E-03    3.6060        .55133E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    75.266        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.412        3.8531        .22727E-02   -1.4827    
   7  Prefactor     .10001E-03    44.973        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.363        3.4136        .31117E-02   -1.5064    
   9  norm          3.9353        21.443        .50813E-02   -1.5311    
  10  Prefactor     .10000E-03    11.589        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     36.300        46.545        .16626E-02   -1.4502    
  12  norm          2.3995        1.0599        .66085E-03   -1.5398    
  13  Prefactor     .10000E-03    21.320        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.150        14.151        .31440E-02   -1.5071    
  15  norm          1.9620        3.5300        .74021E-02   -1.5428    
  16  Prefactor     .10000E-03    5.9007        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     71.898        121.13        .11836E-02   -1.4010    
  18  Prefactor     .10001E-03    8.6871        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .16313        .17318        .75164E-02   -1.5627    
  20  Prefactor     2.9538        4.5276        .59076E-02   -1.5364    
  21  norm          .10000E-03    1.0123        .30718E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.814        17.393        .26015E-02   -1.4938    
  23  Prefactor     .10000E-03    5.0063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .44395        .27650        .11690       -1.1509    
  25  Prefactor     1.1117        .12939        .37159E-01   -.89092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04738e-06
Minuit parameter uncertainties:
  1  30.4722
  2  4.27333
  3  1.84551
  4  0.00212168
  5  0.00221793
  6  3.85315
  7  0.00104115
  8  3.41362
  9  18.3821
  10  0.000471592
  11  46.5915
  12  1.05991
  13  0.000639774
  14  14.1558
  15  3.53042
  16  0.000127396
  17  121.55
  18  0.000544689
  19  0.173176
  20  4.52815
  21  1.34909e-05
  22  17.3986
  23  3.55991e-05
  24  0.277358
  25  0.129422
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.399e+00  1.060e+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.112e+00  1.294e-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:  4.440e-01  2.774e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.81
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 9.44e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 1.57e-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) = 7879.26299216
delta logL = 0.120055040002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7879.25920343
delta logL = 0.123843768723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5210       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0306       1.0000          .0000       5.0000    
     3 'Normalizat'    .45792       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1073       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=   7879.259     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5212        4.1971        .64324E-02    .12674E-03
   2  alpha         2.0302        1.2861        .31320        .71283E-05
   3  Normalizat    .45762        .26103        .11523        .63405E-04
   4  Prefactor     1.1074        .13316        .37317E-01   -.12307E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.52123
  alpha      = 2.03023
  Normalizat = 0.457619
  Prefactor  = 1.10739
 **********
 **   18 **HESSE 
 **********

 FCN=   7879.259     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .15E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5212        1.1220        .60330E-04   -1.5390    
   2  alpha         2.0302        .39686        .12464E-01   -.18903    
   3  Normalizat    .45762        .25272        .51073E-03   -1.1442    
   4  Prefactor     1.1074        .12956        .17245E-03   -.89231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54386e-13
Minuit parameter uncertainties:
  1  1.12199
  2  0.398604
  3  0.253359
  4  0.129598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152317': 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) = 7879.25920225
delta logL = 0.123844953554

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.521e+00  1.122e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.030e+00  3.986e-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.107e+00  1.296e-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:  4.576e-01  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.01
Ra Dec: 330.872 17.432
Photon Index (Free Index): 2.03 +/- 0.40
Photon Flux (Free Index): 8.29e-08 +/- 4.34e-08
Energy Flux (Free Index): 4.19e-05 +/- 2.43e-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/152317/cmap_HighResolution_261360001_261619201_4FGL_J2203.4+1725_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.44e-08', energy_flux2='4.19e-05', photon_flux_error='4.17e-08', dlogl='1.24e-01', energy_flux='3.56e-05', photon_flux2='8.29e-08', job_status='DONE', time_completed='2021-09-28 03:29:43.766348', photon_index_error2='0.40', photon_index2='2.03', ts='11.81', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='0.44', time_epoch_completed='1632824983.77', return_code='0', job_id='152317', GAL2='1.11', EG2='0.46', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='4.34e-08', ts2='12.01', photon_index='2.23' WHERE bin_id='85' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:29:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 152317: <4FGL_J2203.4+1725_daily_bin85> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin85> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 03:15:15 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:15:17 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:15:17 2021
Terminated at Tue Sep 28 03:29:44 2021
Results reported at Tue Sep 28 03:29:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin85 330.872 17.4318 261360001 261619201 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 :                                   725.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

