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


Performing analysis on: 4FGL_J0202.7+4204_daily_bin752
RA = 30.6862, Dec = 42.0714
tmin = 434246401, tmax = 434505601
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='35274', job_status='RUN', time_executed='2021-08-15 02:49:10.374701', time_epoch_executed='1629020950.37' WHERE source_name='4FGL J0202.7+4204' and cadence='daily' and bin_id='752'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/35274

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/35274/ft1_4FGL_J0202.7+4204_daily_bin752.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/35274/ft1_4FGL_J0202.7+4204_daily_bin752.fits outfile=/scratch/kocevski/35274/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin752.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=434246401.0 tmax=434505601.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 6.10
user 5.75
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.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/35274/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin752.fits evtable="EVENTS" outfile="/scratch/kocevski/35274/ft1_filtered_4FGL_J0202.7+4204_daily_bin752.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.59
user 0.35
sys 0.21

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/35274/ft1_filtered_4FGL_J0202.7+4204_daily_bin752.fits" evtable="EVENTS" scfile=/scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits sctable="SC_DATA" outfile=/scratch/kocevski/35274/ltcube_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.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/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits
.....................!
real 13.99
user 13.52
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/35274/ft1_filtered_4FGL_J0202.7+4204_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits sctable="SC_DATA" expcube=/scratch/kocevski/35274/ltcube_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.fits outfile=/scratch/kocevski/35274/expmap_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.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/35274/ltcube_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.fits
.....................!
real 191.00
user 185.49
sys 4.66

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 176 point sources and 2 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 J0202.7+4204 @ 30.6862 42.0714

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/35274/ft1_filtered_4FGL_J0202.7+4204_daily_bin752.fits scfile=/scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits outfile=/scratch/kocevski/35274/cmap_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.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=30.6862 yref=42.0714 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.63
user 0.38
sys 0.22

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/35274/ft1_filtered_4FGL_J0202.7+4204_daily_bin752.fits scfile=/scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits outfile=/scratch/kocevski/35274/cmap_HighResolution_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.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=30.6862 yref=42.0714 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.63
user 0.39
sys 0.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/35274/ft1_filtered_4FGL_J0202.7+4204_daily_bin752.fits evtable="EVENTS" scfile=/scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/35274/Model_4FGL_J0202.7+4204_daily_bin752.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 EG_v02
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/35274/ft1_filtered_4FGL_J0202.7+4204_daily_bin752.fits.....................!
real 80.33
user 78.67
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/35274/ft1_filtered_4FGL_J0202.7+4204_daily_bin752.fits', '/scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits', expMap='/scratch/kocevski/35274/expmap_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.fits', expCube='/scratch/kocevski/35274/ltcube_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/35274/Model_4FGL_J0202.7+4204_daily_bin752.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0202.7+4204'

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  4.935e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/35274/ft1_filtered_4FGL_J0202.7+4204_daily_bin752.fits
Spacecraft file(s): /scratch/kocevski/35274/ft2_4FGL_J0202.7+4204_daily_bin752.fits
Exposure map: /scratch/kocevski/35274/expmap_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.fits
Exposure cube: /scratch/kocevski/35274/ltcube_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/35274/Model_4FGL_J0202.7+4204_daily_bin752.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) = 6786.19990131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13536E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    51.665       1.0000         .10000E-03   10000.    
     7 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3870       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .83129       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13106E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .94233       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.494       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.416       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9815       1.0000         .10000E-03   10000.    
    18 'norm      '    .89020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15208       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.378       1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .97843       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92202       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6786.198     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2734 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0446        .15937E-07** at limit **
   2  Prefactor     .10000E-03    14.175        .18527E-06** at limit **
   3  Prefactor     .10000E-03    26.799       -.78772E-06** at limit **
   4  norm          .10000E-03    1.6639        .76757E-07** at limit **
   5  Prefactor     .10000E-03    84.529        .23816E-06** at limit **
   6  Prefactor     51.648        50.400       -.24918E-05   -.23496E-03
   7  norm          .10000E-03    .49138        .16624E-08** at limit **
   8  norm          1.3844        1.1516        .92943E-07    .64149E-04
   9  Prefactor     .10000E-03    4.2242       -.51400E-07** at limit **
  10  Prefactor     .83178        2.0420        .66351E-06    .18008E-03
  11  Prefactor     .10000E-03    54.878        .37618E-06** at limit **
  12  Prefactor     .10000E-03    15.861       -.13557E-06** at limit **
  13  norm          .93822        6.3310        .28659E-05   -.23825E-03
  14  Prefactor     11.498        10.453       -.73430E-06   -.18550E-03
  15  norm          .10000E-03    3.5508        .38615E-07** at limit **
  16  Prefactor     17.416        14.759        .64972E-06   -.19535E-03
  17  norm          2.9821        .98094       -.46852E-07   -.33263E-03
  18  norm          .89033        .33777       -.14422E-07   -.73580E-03
  19  Prefactor     .10000E-03    2.2660        .56018E-07** at limit **
  20  norm          .12203        4.1383        .10627E-05   -.70012E-03
  21  Prefactor     16.391        35.314        .23551E-05    .12677E-03
  22  norm          .10000E-03    3.2927       -.54714E-07** at limit **
  23  Normalizat    .97849        .23377       -.48751E-06   -.81449E-04
  24  Prefactor     .92194        .95317E-01   -.97843E-07   -.11554E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.648
  norm       = 0.0001
  norm       = 1.38439
  Prefactor  = 0.0001
  Prefactor  = 0.831782
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.938219
  Prefactor  = 11.4983
  norm       = 0.0001
  Prefactor  = 17.4157
  norm       = 2.9821
  norm       = 0.89033
  Prefactor  = 0.0001
  norm       = 0.122029
  Prefactor  = 16.3914
  norm       = 0.0001
  Normalizat = 0.978491
  Prefactor  = 0.921944
 **********
 **   18 **HESSE 
 **********

 FCN=   6786.198     FROM HESSE     STATUS=OK           397 CALLS     3131 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6700        .10380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    85.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     51.648        52.591        .55797E-04   -1.4269    
   7  norm          .10000E-03    .95563        .11267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3844        1.1517        .36920E-04   -1.5473    
   9  Prefactor     .10000E-03    4.2291        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83178        1.8599        .18487E-02   -1.5526    
  11  Prefactor     .10000E-03    55.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .93822        6.6227        .39351E-03   -1.5514    
  14  Prefactor     11.498        10.445        .11816E-03   -1.5030    
  15  norm          .10000E-03    3.5929        .30109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     17.416        14.840        .47986E-03   -1.4873    
  17  norm          2.9821        .97481        .42471E-04   -1.5363    
  18  norm          .89033        .33989        .28482E-04   -1.5519    
  19  Prefactor     .10000E-03    2.2808        .12098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .12203        27.454        .30770E-02   -1.5638    
  21  Prefactor     16.391        36.257        .98965E-04   -1.4898    
  22  norm          .10000E-03    3.3169        .14598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .97849        .26384        .37230E-03   -.93755    
  24  Prefactor     .92194        .10829        .16542E-03   -.95378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79966e-09
Minuit parameter uncertainties:
  1  4.90363e-06
  2  3.1302e-05
  3  0.000179557
  4  4.6922e-06
  5  8.5825e-05
  6  52.6387
  7  5.64705e-07
  8  1.15174
  9  6.26475e-06
  10  1.86005
  11  0.000134019
  12  2.75608e-05
  13  4.98592
  14  10.447
  15  8.0129e-06
  16  14.8433
  17  0.974817
  18  0.33989
  19  1.15277e-05
  20  3.66089
  21  36.306
  22  5.90802e-06
  23  0.264194
  24  0.108312
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  2.756e-05  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.173e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.219e-01  1.083e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.785e-01  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 30.686 42.071
Photon Flux Upper Limit: 5.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/35274/likelihoodResults_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.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): 102
logL (Free Index) = 6786.19841108
delta logL = -0.00029990024359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6786.19811112
delta logL = 5.64514266443e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1385       1.0000          .0000       10.000    
     3 'Normalizat'    .97852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92194       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+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=   6786.198     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10182E-03    100.24        .18142E-02** at limit **
   2  Index         2.0760        5.9224        .50000        .14875E-04
   3  Normalizat    .97849        .14434E-01    .37230E-03   -.69195E-04
   4  Prefactor     .92194        .62895E-02    .16542E-03    .35738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101817
  Index      = 2.07599
  Normalizat = 0.97849
  Prefactor  = 0.921945
 **********
 **   18 **HESSE 
 **********

 FCN=   6786.198     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10182E-03    430.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0760        5.8485        .50000       -.62464    
   3  Normalizat    .97849        .30687E-01    .14892E-04   -.93755    
   4  Prefactor     .92194        .13371E-01    .66167E-05   -.95378    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.22824e-09
Minuit parameter uncertainties:
  1  0.0563497
  2  435.474
  3  0.0306873
  4  0.0133713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/35274': 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): 102
logL (Free Index) = 6786.19811083
delta logL = 3.44725776813e-07

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.018e-04  5.635e-02  1.000e-04  1.000e+04 ( 1.000e-14)
275        Index:  2.076e+00  4.355e+02  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  2.114e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  9.219e-01  1.337e-02  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  9.785e-01  3.069e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 30.686 42.071

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/35274/cmap_HighResolution_434246401_434505601_4FGL_J0202.7+4204_daily_bin752.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.03e-03', job_status='DONE', photon_flux_upper_limit='5.30e-08', time_completed='2021-08-15 03:02:15.412306', job_id='35274', GAL2='0.92', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1629021735.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='752' AND source_name='4FGL J0202.7+4204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 03:02:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 35274: <4FGL_J0202.7+4204_daily_bin752> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin752> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Aug 15 02:45:54 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 02:48:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 02:48:55 2021
Terminated at Sun Aug 15 03:02:17 2021
Results reported at Sun Aug 15 03:02:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin752 30.6862 42.0714 434246401 434505601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0202.7+4204 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   778.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            983 sec.

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

