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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1478
RA = 330.872, Dec = 17.4318
tmin = 622425601, tmax = 622684801
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='158420', job_status='RUN', time_executed='2021-09-28 03:36:08.487793', time_epoch_executed='1632825368.49' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1478'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158420

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158420/ft1_4FGL_J2203.4+1725_daily_bin1478.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158420/ft2_4FGL_J2203.4+1725_daily_bin1478.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158420/ft1_4FGL_J2203.4+1725_daily_bin1478.fits outfile=/scratch/kocevski/158420/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1478.fits ra=330.872 dec=17.4318 rad=12.0 tmin=622425601.0 tmax=622684801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.29
user 4.04
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158420/ft1_filtered_4FGL_J2203.4+1725_daily_bin1478.fits evtable="EVENTS" scfile=/scratch/kocevski/158420/ft2_4FGL_J2203.4+1725_daily_bin1478.fits sctable="SC_DATA" expcube=/scratch/kocevski/158420/ltcube_622425601_622684801_4FGL_J2203.4+1725_daily_bin1478.fits outfile=/scratch/kocevski/158420/expmap_622425601_622684801_4FGL_J2203.4+1725_daily_bin1478.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/158420/ltcube_622425601_622684801_4FGL_J2203.4+1725_daily_bin1478.fits
.....................!
real 190.31
user 186.03
sys 3.92

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/158420/ft1_filtered_4FGL_J2203.4+1725_daily_bin1478.fits scfile=/scratch/kocevski/158420/ft2_4FGL_J2203.4+1725_daily_bin1478.fits outfile=/scratch/kocevski/158420/cmap_622425601_622684801_4FGL_J2203.4+1725_daily_bin1478.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158420/ft1_filtered_4FGL_J2203.4+1725_daily_bin1478.fits scfile=/scratch/kocevski/158420/ft2_4FGL_J2203.4+1725_daily_bin1478.fits outfile=/scratch/kocevski/158420/cmap_HighResolution_622425601_622684801_4FGL_J2203.4+1725_daily_bin1478.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .33377       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78623       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.1708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    81.827       1.0000         .10000E-03   10000.    
     6 'norm      '    .11878E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .89188       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.402       1.0000         .10000E-03   10000.    
    12 'norm      '    .12462       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6049       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .63171E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8787       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20390       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.2708       1.0000         .10000E-03   10000.    
    21 'norm      '    .94187       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94903       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82205       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=   6870.850     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2987 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.095        .44677E-08** at limit **
   2  norm          .30394        2.3458       -.34891E-06    .58897E-03
   3  Prefactor     .77552        5.0338        .21011E-06    .23282E-03
   4  Prefactor     8.1693        12.338       -.84835E-06   -.64230E-04
   5  Prefactor     81.810        127.68        .50636E-06   -.90449E-05
   6  norm          .10004E-03    1.1151        .15394E-07** at limit **
   7  Prefactor     .10000E-03    52.699        .63537E-07** at limit **
   8  norm          .89085        2.2574        .97367E-06    .68839E-04
   9  norm          .10000E-03    10.289       -.54896E-07** at limit **
  10  Prefactor     .10000E-03    21.022       -.86826E-07** at limit **
  11  Prefactor     35.343        43.598       -.11709E-06   -.95191E-04
  12  norm          .12483        .52704        .24733E-06   -.33989E-03
  13  Prefactor     4.5638        59.073        .62688E-06   -.24388E-04
  14  Prefactor     .10007E-03    12.764        .19432E-05** at limit **
  15  norm          4.8777        5.3829        .26991E-06   -.10325E-03
  16  Prefactor     .10000E-03    9.8758        .17688E-06** at limit **
  17  Prefactor     .10000E-03    79.912        .28718E-06** at limit **
  18  Prefactor     .10000E-03    3.9633        .88911E-07** at limit **
  19  Prefactor     .20387        .15562        .36454E-07   -.22363E-05
  20  Prefactor     7.2707        6.7338        .24613E-07   -.41538E-05
  21  norm          .94179        1.2634        .54876E-06   -.85504E-04
  22  Prefactor     .10000E-03    24.672        .30488E-08** at limit **
  23  Prefactor     .10000E-03    4.9133        .84861E-07** at limit **
  24  Normalizat    .94894        .22276       -.13168E-05   -.26463E-03
  25  Prefactor     .82212        .10335       -.57893E-06   -.41796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.303938
  Prefactor  = 0.775523
  Prefactor  = 8.16932
  Prefactor  = 81.8104
  norm       = 0.000100041
  Prefactor  = 0.0001
  norm       = 0.890851
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.3435
  norm       = 0.124828
  Prefactor  = 4.56381
  Prefactor  = 0.000100065
  norm       = 4.87767
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.203872
  Prefactor  = 7.27065
  norm       = 0.941788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.948939
  Prefactor  = 0.822119
 **********
 **   18 **HESSE 
 **********

 FCN=   6870.850     FROM HESSE     STATUS=OK           433 CALLS     3420 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .30394        11.119        .23984E-02   -1.5598    
   3  Prefactor     .77552        27.179        .30943E-02   -1.5532    
   4  Prefactor     8.1693        12.285        .14026E-03   -1.5136    
   5  Prefactor     81.810        126.79        .44402E-04   -1.3897    
   6  norm          .10004E-03    13.903        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    52.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .89085        2.2135        .18689E-03   -1.5519    
   9  norm          .10000E-03    10.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     35.343        43.609        .67354E-04   -1.4518    
  12  norm          .12483        .91441        .11330E-02   -1.5637    
  13  Prefactor     4.5638        59.431        .18757E-03   -1.5281    
  14  Prefactor     .10007E-03    62.920        .54180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8777        5.3750        .18211E-03   -1.5266    
  16  Prefactor     .10000E-03    9.9597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    80.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9781        .16116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .20387        .15266        .27289E-04   -1.5618    
  20  Prefactor     7.2707        6.7327        .14875E-03   -1.5169    
  21  norm          .94179        1.2439        .25917E-03   -1.5514    
  22  Prefactor     .10000E-03    25.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.9323        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94894        .26725        .33173E-03   -.94761    
  25  Prefactor     .82212        .12641        .17093E-03   -.98918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56096e-08
Minuit parameter uncertainties:
  1  4.06425e-05
  2  3.67675
  3  9.18614
  4  12.2892
  5  127.21
  6  0.0015168
  7  8.71468e-05
  8  2.21369
  9  1.15047e-05
  10  0.000100028
  11  43.648
  12  0.675449
  13  32.9782
  14  0.00405898
  15  5.37551
  16  2.36335e-05
  17  6.96096e-05
  18  2.10427e-06
  19  0.152658
  20  6.73344
  21  1.24395
  22  9.37293e-06
  23  1.71862e-06
  24  0.267623
  25  0.126455
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.248e-01  6.754e-01  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:  8.221e-01  1.265e-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.489e-01  2.676e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 330.872 17.432
Photon Flux Upper Limit: 7.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.98e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158420/likelihoodResults_622425601_622684801_4FGL_J2203.4+1725_daily_bin1478.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) = 6870.84277324
delta logL = 0.00756708511653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6870.84256709
delta logL = 0.00777323027614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13736       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4984       1.0000          .0000       5.0000    
     3 'Normalizat'    .94662       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82260       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6870.843     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      297 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13683        .89927        .10528E-02   -.36997E-03
   2  alpha         2.4969        2.0404        .62683E-01   -.80520E-05
   3  Normalizat    .94671        .25681        .33208E-03   -.29031E-04
   4  Prefactor     .82258        .12454        .17089E-03   -.42046E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.13683
  alpha      = 2.49694
  Normalizat = 0.946709
  Prefactor  = 0.822575
 **********
 **   18 **HESSE 
 **********

 FCN=   6870.843     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13683        .73444        .42111E-04   -1.5634    
   2  alpha         2.4969        1.9024        .25073E-02   -.12223E-02
   3  Normalizat    .94671        .25710        .13283E-04   -.94838    
   4  Prefactor     .82258        .12459        .68354E-05   -.98901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72589e-10
Minuit parameter uncertainties:
  1  0.633794
  2  2.16193
  3  0.257431
  4  0.124633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158420': 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) = 6870.84256636
delta logL = 0.00777395863497

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  1.368e-01  6.338e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  2.497e+00  2.162e+00  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:  8.226e-01  1.246e-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.467e-01  2.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 330.872 17.432

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/158420/cmap_HighResolution_622425601_622684801_4FGL_J2203.4+1725_daily_bin1478.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.98e-05', job_status='DONE', photon_flux_upper_limit='7.89e-08', time_completed='2021-09-28 03:49:22.721259', job_id='158420', GAL2='0.82', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632826162.72', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='7.77e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1478' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:49:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0128>
Subject: Job 158420: <4FGL_J2203.4+1725_daily_bin1478> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1478> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 03:35:50 2021
Job was executed on host(s) <bullet0128>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:35:51 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:35:51 2021
Terminated at Tue Sep 28 03:49:23 2021
Results reported at Tue Sep 28 03:49:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1478 330.872 17.4318 622425601 622684801 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 :                                   780.02 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

