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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin1605
RA = 330.872, Dec = 17.4318
tmin = 655344001, tmax = 655603201
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='481487', job_status='RUN', time_executed='2021-12-08 08:23:42.364593', time_epoch_executed='1638980622.36' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481487

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481487/ft1_4FGL_J2203.4+1725_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481487/ft2_4FGL_J2203.4+1725_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481487/ft1_4FGL_J2203.4+1725_daily_bin1605.fits outfile=/scratch/kocevski/481487/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin1605.fits ra=330.872 dec=17.4318 rad=12.0 tmin=655344001.0 tmax=655603201.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 2.74
user 2.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481487/ft1_filtered_4FGL_J2203.4+1725_daily_bin1605.fits" evtable="EVENTS" scfile=/scratch/kocevski/481487/ft2_4FGL_J2203.4+1725_daily_bin1605.fits sctable="SC_DATA" outfile=/scratch/kocevski/481487/ltcube_655344001_655603201_4FGL_J2203.4+1725_daily_bin1605.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/481487/ft2_4FGL_J2203.4+1725_daily_bin1605.fits
.....................!
real 14.59
user 14.18
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481487/ft1_filtered_4FGL_J2203.4+1725_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/481487/ft2_4FGL_J2203.4+1725_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/481487/ltcube_655344001_655603201_4FGL_J2203.4+1725_daily_bin1605.fits outfile=/scratch/kocevski/481487/expmap_655344001_655603201_4FGL_J2203.4+1725_daily_bin1605.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/481487/ltcube_655344001_655603201_4FGL_J2203.4+1725_daily_bin1605.fits
.....................!
real 190.76
user 185.69
sys 4.61

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/481487/ft1_filtered_4FGL_J2203.4+1725_daily_bin1605.fits scfile=/scratch/kocevski/481487/ft2_4FGL_J2203.4+1725_daily_bin1605.fits outfile=/scratch/kocevski/481487/cmap_655344001_655603201_4FGL_J2203.4+1725_daily_bin1605.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481487/ft1_filtered_4FGL_J2203.4+1725_daily_bin1605.fits scfile=/scratch/kocevski/481487/ft2_4FGL_J2203.4+1725_daily_bin1605.fits outfile=/scratch/kocevski/481487/cmap_HighResolution_655344001_655603201_4FGL_J2203.4+1725_daily_bin1605.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.56
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20811E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .52985       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6087       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.786       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121       1.0000         .10000E-03   10000.    
     6 'norm      '    3.2774       1.0000         .10000E-03   10000.    
     7 'Prefactor '    110.79       1.0000         .10000E-03   10000.    
     8 'norm      '    .67035       1.0000         .10000E-03   10000.    
     9 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30803E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35817E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    .28716       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4674       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27148E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    17.980       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .65913E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31011       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49790E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .58233       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17201       1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    117.27       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10673E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5004       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70486       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=   3405.444     FROM MIGRAD    STATUS=CONVERGED    236 CALLS     2210 TOTAL
                     EDM=   .59E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.954        .20228E-06** at limit **
   2  norm          .59528        14.258       -.25613E-06   -.14796E-05
   3  Prefactor     3.8820        13.090       -.15731E-06   -.11492E-05
   4  Prefactor     12.252        16.862        .97692E-06   -.12591E-04
   5  Prefactor     .10000E-03    97.430        .50983E-05** at limit **
   6  norm          3.3052        3.5654       -.56049E-06    .21516E-04
   7  Prefactor     136.06        128.62       -.53179E-06   -.27504E-06
   8  norm          .38956        4.7733        .46549E-06   -.14389E-04
   9  norm          .10000E-03    7.8231        .61239E-06** at limit **
  10  Prefactor     .10000E-03    10.306       -.19463E-05** at limit **
  11  Prefactor     .10000E-03    178.49        .36355E-05** at limit **
  12  norm          .28858        .88086        .11916E-06    .14402E-04
  13  Prefactor     2.4676        152.58       -.12374E-04    .68122E-05
  14  Prefactor     .10000E-03    27.429       -.86134E-05** at limit **
  15  norm          18.017        14.976       -.72832E-06    .11113E-04
  16  Prefactor     .10000E-03    12.580       -.17245E-05** at limit **
  17  Prefactor     .10000E-03    117.87        .17903E-05** at limit **
  18  Prefactor     .10000E-03    28.661       -.95336E-06** at limit **
  19  Prefactor     .58203        .51663       -.62341E-06    .21180E-03
  20  Prefactor     .10000E-03    418.84       -.48986E-05** at limit **
  21  norm          .10000E-03    2.4147        .14650E-06** at limit **
  22  Prefactor     128.53        114.97        .43610E-05   -.39034E-05
  23  Prefactor     .10000E-03    22.514       -.26147E-06** at limit **
  24  Normalizat    1.5039        .44796        .60237E-05    .40566E-05
  25  Prefactor     .70202        .18938       -.35949E-05    .95780E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.595282
  Prefactor  = 3.88204
  Prefactor  = 12.2524
  Prefactor  = 0.0001
  norm       = 3.30518
  Prefactor  = 136.063
  norm       = 0.389564
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.288585
  Prefactor  = 2.46762
  Prefactor  = 0.0001
  norm       = 18.0168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.582031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 128.534
  Prefactor  = 0.0001
  Normalizat = 1.50388
  Prefactor  = 0.702019
 **********
 **   18 **HESSE 
 **********

 FCN=   3405.444     FROM HESSE     STATUS=OK           489 CALLS     2699 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.963        .10096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .59528        4.5687        .63874E-01   -1.5554    
   3  Prefactor     3.8820        13.433        .53174E-02   -1.5314    
   4  Prefactor     12.252        17.178        .28006E-02   -1.5008    
   5  Prefactor     .10000E-03    97.735        .95170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3052        3.5831        .55918E-02   -1.5344    
   7  Prefactor     136.06        139.75        .95538E-03   -1.3370    
   8  norm          .38956        5.5568        .11948E-01   -1.5583    
   9  norm          .10000E-03    7.8328        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.391        .98998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    177.60        .92006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .28858        .96236        .22257E-01   -1.5601    
  13  Prefactor     2.4676        154.31        .65082E-02   -1.5394    
  14  Prefactor     .10000E-03    27.398        .99671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.017        14.988        .23614E-02   -1.4859    
  16  Prefactor     .10000E-03    12.593        .10507E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    118.37        .10469E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.611        .96041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .58203        .55934        .85633E-02   -1.5555    
  20  Prefactor     .10000E-03    21.438        .14434       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.4058        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     128.53        115.03        .92892E-03   -1.3436    
  23  Prefactor     .10000E-03    22.531        .10360E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5039        .37123        .72385E-01   -.77669    
  25  Prefactor     .70202        .15656        .42466E-01   -1.0345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38337e-08
Minuit parameter uncertainties:
  1  7.29293e-07
  2  3.29834
  3  13.443
  4  17.1851
  5  0.000115414
  6  3.58335
  7  140.093
  8  2.94255
  9  1.37126e-06
  10  9.91532e-06
  11  0.000111792
  12  0.962415
  13  39.1322
  14  7.08388e-05
  15  14.991
  16  4.86616e-06
  17  1.6421e-05
  18  4.89914e-05
  19  0.559349
  20  1.03717e-05
  21  6.84846e-07
  22  115.232
  23  1.66531e-05
  24  0.37191
  25  0.156656
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.886e-01  9.624e-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:  7.020e-01  1.567e-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:  1.504e+00  3.719e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.14
Ra Dec: 330.872 17.432
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481487/likelihoodResults_655344001_655603201_4FGL_J2203.4+1725_daily_bin1605.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) = 3405.34130572
delta logL = 0.103101736316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3405.33488882
delta logL = 0.109518636519

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37206       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5859       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69805       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=   3405.335     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      210 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37197        1.0256        .17692E-01    .10127E-02
   2  alpha         1.5858        .94974        .45320       -.24344E-04
   3  Normalizat    1.5120        .35024        .72217E-01    .40888E-05
   4  Prefactor     .69806        .15384        .42375E-01    .65306E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.371971
  alpha      = 1.58576
  Normalizat = 1.51195
  Prefactor  = 0.698058
 **********
 **   18 **HESSE 
 **********

 FCN=   3405.335     FROM HESSE     STATUS=OK            35 CALLS      245 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37197        .81123        .86917E-03   -1.5586    
   2  alpha         1.5858        1.1241        .21803E-01   -.37438    
   3  Normalizat    1.5120        .42216        .31953E-03   -.77443    
   4  Prefactor     .69806        .18561        .19630E-03   -1.0360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82543e-11
Minuit parameter uncertainties:
  1  0.811254
  2  1.17312
  3  0.423154
  4  0.185778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481487': 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) = 3405.33488881
delta logL = 0.109518644549

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  3.720e-01  8.113e-01  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  1.586e+00  1.173e+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:  6.981e-01  1.858e-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:  1.512e+00  4.232e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/481487/cmap_HighResolution_655344001_655603201_4FGL_J2203.4+1725_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.97e-05', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-12-08 08:32:18.608850', job_id='481487', GAL2='0.70', fit_tolerance='1e-08', EG2='1.51', EG='1.50', time_epoch_completed='1638981138.61', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.10e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1605' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:32:18 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 481487: <4FGL_J2203.4+1725_daily_bin1605> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin1605> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Dec  8 08:20:23 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:21:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:21:10 2021
Terminated at Wed Dec  8 08:32:19 2021
Results reported at Wed Dec  8 08:32:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin1605 330.872 17.4318 655344001 655603201 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 :                                   515.57 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   668 sec.
    Turnaround time :                            716 sec.

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

