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


Performing analysis on: 4FGL_J2203.4+1725_daily_bin10
RA = 330.872, Dec = 17.4318
tmin = 241920001, tmax = 242179201
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='151236', job_status='RUN', time_executed='2021-09-28 03:13:37.947781', time_epoch_executed='1632824017.95' WHERE source_name='4FGL J2203.4+1725' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151236

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151236/ft1_4FGL_J2203.4+1725_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151236/ft2_4FGL_J2203.4+1725_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151236/ft1_4FGL_J2203.4+1725_daily_bin10.fits outfile=/scratch/kocevski/151236/ft1_filteredMKT_4FGL_J2203.4+1725_daily_bin10.fits ra=330.872 dec=17.4318 rad=12.0 tmin=241920001.0 tmax=242179201.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.44
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151236/ft1_filtered_4FGL_J2203.4+1725_daily_bin10.fits" evtable="EVENTS" scfile=/scratch/kocevski/151236/ft2_4FGL_J2203.4+1725_daily_bin10.fits sctable="SC_DATA" outfile=/scratch/kocevski/151236/ltcube_241920001_242179201_4FGL_J2203.4+1725_daily_bin10.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/151236/ft2_4FGL_J2203.4+1725_daily_bin10.fits
.....................!
real 12.41
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151236/ft1_filtered_4FGL_J2203.4+1725_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/151236/ft2_4FGL_J2203.4+1725_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/151236/ltcube_241920001_242179201_4FGL_J2203.4+1725_daily_bin10.fits outfile=/scratch/kocevski/151236/expmap_241920001_242179201_4FGL_J2203.4+1725_daily_bin10.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/151236/ltcube_241920001_242179201_4FGL_J2203.4+1725_daily_bin10.fits
.....................!
real 192.70
user 187.56
sys 4.83

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/151236/ft1_filtered_4FGL_J2203.4+1725_daily_bin10.fits scfile=/scratch/kocevski/151236/ft2_4FGL_J2203.4+1725_daily_bin10.fits outfile=/scratch/kocevski/151236/cmap_241920001_242179201_4FGL_J2203.4+1725_daily_bin10.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/151236/ft1_filtered_4FGL_J2203.4+1725_daily_bin10.fits scfile=/scratch/kocevski/151236/ft2_4FGL_J2203.4+1725_daily_bin10.fits outfile=/scratch/kocevski/151236/cmap_HighResolution_241920001_242179201_4FGL_J2203.4+1725_daily_bin10.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.6602       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6325       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9700       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15542E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.2598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2775       1.0000         .10000E-03   10000.    
     9 'norm      '    15.274       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.4021       1.0000         .10000E-03   10000.    
    13 'Prefactor '    45.002       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4042       1.0000         .10000E-03   10000.    
    15 'norm      '    .19307E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .47125       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21479E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .46881       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9356       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79745       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99715       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=   9968.243     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2577 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.861       -.12279E-05** at limit **
   2  norm          3.6601        3.1087        .31090E-09    .61210E-04
   3  Prefactor     3.6311        4.2943        .10840E-06    .20704E-03
   4  Prefactor     6.9710        8.7339       -.62900E-06    .85537E-03
   5  Prefactor     .10000E-03    171.03        .10097E-05** at limit **
   6  norm          5.2606        2.6336        .66602E-07    .53451E-04
   7  Prefactor     .10000E-03    29.648       -.91664E-06** at limit **
   8  norm          4.2771        2.1740        .91112E-09    .17107E-03
   9  norm          15.273        17.728       -.97290E-07   -.43559E-04
  10  Prefactor     .10000E-03    12.309        .13244E-05** at limit **
  11  Prefactor     .10000E-03    14.409       -.33095E-06** at limit **
  12  norm          2.4021        1.0874        .10335E-07    .24236E-03
  13  Prefactor     45.001        25.711       -.26780E-07   -.33514E-05
  14  Prefactor     8.4061        12.779       -.27062E-07    .20534E-04
  15  norm          .10000E-03    3.7975        .85288E-06** at limit **
  16  Prefactor     .10000E-03    5.9103       -.20384E-07** at limit **
  17  Prefactor     .10000E-03    29.250       -.26292E-06** at limit **
  18  Prefactor     .10000E-03    4.3528       -.15176E-07** at limit **
  19  Prefactor     .47123        .18848       -.10960E-07    .94066E-03
  20  Prefactor     .10005E-03    16.630       -.42329E-05** at limit **
  21  norm          .46737        .75097        .72668E-06    .22063E-02
  22  Prefactor     6.9370        16.926        .43868E-07    .29234E-04
  23  Prefactor     .10000E-03    7.9221       -.10984E-06** at limit **
  24  Normalizat    .79745        .22052        .93470E-07    .76050E-04
  25  Prefactor     .99719        .10140        .43987E-08    .20080E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 3.66008
  Prefactor  = 3.63109
  Prefactor  = 6.97097
  Prefactor  = 0.000100002
  norm       = 5.26063
  Prefactor  = 0.000100002
  norm       = 4.27713
  norm       = 15.2728
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 2.40214
  Prefactor  = 45.0012
  Prefactor  = 8.40607
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.471233
  Prefactor  = 0.000100046
  norm       = 0.467373
  Prefactor  = 6.93703
  Prefactor  = 0.0001
  Normalizat = 0.797449
  Prefactor  = 0.997192
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.243     FROM HESSE     STATUS=OK           433 CALLS     3010 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.6601        3.1106        .15683E-03   -1.5325    
   3  Prefactor     3.6311        4.2798        .20996E-03   -1.5327    
   4  Prefactor     6.9710        9.3642        .75979E-03   -1.5180    
   5  Prefactor     .10000E-03    172.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.2606        2.6278        .10630E-03   -1.5249    
   7  Prefactor     .10000E-03    29.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2771        2.1695        .99056E-04   -1.5294    
   9  norm          15.273        17.711        .10248E-03   -1.4926    
  10  Prefactor     .10000E-03    12.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.4021        1.0824        .66349E-04   -1.5398    
  13  Prefactor     45.001        25.715        .59765E-04   -1.4365    
  14  Prefactor     8.4061        12.776        .13828E-03   -1.5128    
  15  norm          .10000E-03    10.474        .33410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.9607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.3732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .47123        .18429        .25909E-04   -1.5571    
  20  Prefactor     .10005E-03    23.136        .37322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .46737        .78775        .14974E-02   -1.5571    
  22  Prefactor     6.9370        16.920        .15234E-03   -1.5181    
  23  Prefactor     .10000E-03    7.9753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .79745        .25286        .41610E-03   -1.0016    
  25  Prefactor     .99719        .11822        .18276E-03   -.92823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46035e-09
Minuit parameter uncertainties:
  1  0.000523122
  2  3.11073
  3  4.2802
  4  9.36618
  5  0.00126991
  6  2.62788
  7  0.000547065
  8  2.16954
  9  17.7173
  10  0.000497449
  11  0.000139637
  12  1.08239
  13  25.7214
  14  12.7806
  15  0.000171176
  16  2.46824e-06
  17  0.000157212
  18  4.16892e-06
  19  0.184293
  20  0.00207518
  21  0.787768
  22  16.9321
  23  8.88794e-06
  24  0.25323
  25  0.118255
Done.

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

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.402e+00  1.082e+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:  9.972e-01  1.183e-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:  7.974e-01  2.532e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.55
Ra Dec: 330.872 17.432
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 9.45e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 3.57e-05 +/- 1.61e-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) = 9968.10707107
delta logL = 0.136059766577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9968.10315974
delta logL = 0.139971097862

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4786       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9967       1.0000          .0000       5.0000    
     3 'Normalizat'    .81943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99020       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=   9968.103     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      258 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4794        26.234        .64922E-02    .34102E-03
   2  alpha         1.9971        3.2987        .38309       -.97455E-05
   3  Normalizat    .81971        .17041        .92759E-01    .28997E-04
   4  Prefactor     .99009        .96144E-01    .46145E-01   -.28927E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.47937
  alpha      = 1.99711
  Normalizat = 0.819706
  Prefactor  = 0.990088
 **********
 **   18 **HESSE 
 **********

 FCN=   9968.103     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .51E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4794        1.1535        .70010E-04   -1.5393    
   2  alpha         1.9971        .43292        .13267E-01   -.20254    
   3  Normalizat    .81971        .24375        .41091E-03   -.99342    
   4  Prefactor     .99009        .11811        .18333E-03   -.93061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.10635e-13
Minuit parameter uncertainties:
  1  1.1535
  2  0.435205
  3  0.244074
  4  0.118145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151236': 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) = 9968.10315818
delta logL = 0.139972656147

Extracting fit parameters...

4FGL J2203.4+1725
   Spectrum: LogParabola
270         norm:  2.479e+00  1.153e+00  1.000e-04  1.000e+04 ( 1.000e-11)
271        alpha:  1.997e+00  4.352e-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:  9.901e-01  1.181e-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:  8.197e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.74
Ra Dec: 330.872 17.432
Photon Index (Free Index): 2.00 +/- 0.44
Photon Flux (Free Index): 7.94e-08 +/- 4.73e-08
Energy Flux (Free Index): 4.24e-05 +/- 2.52e-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/151236/cmap_HighResolution_241920001_242179201_4FGL_J2203.4+1725_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.45e-08', energy_flux2='4.24e-05', photon_flux_error='4.26e-08', dlogl='1.40e-01', energy_flux='3.57e-05', photon_flux2='7.94e-08', job_status='DONE', time_completed='2021-09-28 03:27:33.223052', photon_index_error2='0.44', photon_index2='2.00', ts='12.55', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.52e-05', EG='0.80', time_epoch_completed='1632824853.22', return_code='0', job_id='151236', GAL2='0.99', EG2='0.82', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='4.73e-08', ts2='12.74', photon_index='2.23' WHERE bin_id='10' AND source_name='4FGL J2203.4+1725' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 03:27:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 151236: <4FGL_J2203.4+1725_daily_bin10> in cluster <slac> Done

Job <4FGL_J2203.4+1725_daily_bin10> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 03:11:08 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 03:11:10 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:11:10 2021
Terminated at Tue Sep 28 03:27:33 2021
Results reported at Tue Sep 28 03:27:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2203.4+1725_daily_bin10 330.872 17.4318 241920001 242179201 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 :                                   834.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   983 sec.
    Turnaround time :                            985 sec.

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

