aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 7 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0202.7+4204_daily_bin1773
RA = 30.6862, Dec = 42.0714
tmin = 698889601, tmax = 699148801
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='655012', job_status='RUN', time_executed='2023-02-27 08:55:07.227605', time_epoch_executed='1677516907.23' WHERE source_name='4FGL J0202.7+4204' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/655012

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/655012/ft1_4FGL_J0202.7+4204_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/655012/ft1_4FGL_J0202.7+4204_daily_bin1773.fits outfile=/scratch/kocevski/655012/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1773.fits ra=30.6862 dec=42.0714 rad=12.0 tmin=698889601.0 tmax=699148801.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.96
user 2.73
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.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/655012/ft1_filteredMKT_4FGL_J0202.7+4204_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/655012/ft1_filtered_4FGL_J0202.7+4204_daily_bin1773.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.51
user 0.31
sys 0.17

Number of photons that the gtmktime cut: 1826

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/655012/ft1_filtered_4FGL_J0202.7+4204_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/655012/ltcube_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.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/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.fits
.....................!
real 12.30
user 11.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/655012/ft1_filtered_4FGL_J0202.7+4204_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/655012/ltcube_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.fits outfile=/scratch/kocevski/655012/expmap_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.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/655012/ltcube_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.fits
.....................!
real 190.85
user 185.15
sys 5.33

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_8years/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/655012/ft1_filtered_4FGL_J0202.7+4204_daily_bin1773.fits scfile=/scratch/kocevski/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.fits outfile=/scratch/kocevski/655012/cmap_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/655012/ft1_filtered_4FGL_J0202.7+4204_daily_bin1773.fits scfile=/scratch/kocevski/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.fits outfile=/scratch/kocevski/655012/cmap_HighResolution_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/655012/ft1_filtered_4FGL_J0202.7+4204_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/655012/Model_4FGL_J0202.7+4204_daily_bin1773.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/655012/ft1_filtered_4FGL_J0202.7+4204_daily_bin1773.fits.....................!
real 205.11
user 202.86
sys 1.39

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/655012/ft1_filtered_4FGL_J0202.7+4204_daily_bin1773.fits', '/scratch/kocevski/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.fits', expMap='/scratch/kocevski/655012/expmap_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.fits', expCube='/scratch/kocevski/655012/ltcube_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/655012/Model_4FGL_J0202.7+4204_daily_bin1773.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  0.000e+00  1.000e+06 ( 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/655012/ft1_filtered_4FGL_J0202.7+4204_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/655012/ft2_4FGL_J0202.7+4204_daily_bin1773.fits
Exposure map: /scratch/kocevski/655012/expmap_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.fits
Exposure cube: /scratch/kocevski/655012/ltcube_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/655012/Model_4FGL_J0202.7+4204_daily_bin1773.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) = 18959.0547084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9900       1.0000          .0000       .10000E+07
     2 'Prefactor '    18.517       1.0000          .0000       .10000E+07
     3 'norm      '    .50091E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16390E-03   1.0000          .0000       .10000E+07
     5 'norm      '    .55935       1.0000          .0000       .10000E+07
     6 'norm      '    2.2479       1.0000          .0000       .10000E+07
     7 'Prefactor '    .93092E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    .64393E-08   1.0000          .0000       .10000E+07
     9 'Prefactor '    .57516E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.728       1.0000          .0000       .10000E+07
    11 'norm      '    .16892E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    7.7263       1.0000          .0000       .10000E+07
    13 'norm      '    .22735E-05   1.0000          .0000       .10000E+07
    14 'norm      '    1.3825       1.0000          .0000       .10000E+07
    15 'norm      '    .94222E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    3.1972       1.0000          .0000       .10000E+07
    17 'norm      '    16.194       1.0000          .0000       .10000E+07
    18 'norm      '    10.023       1.0000          .0000       .10000E+07
    19 'Normalizat'    .79702       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   18958.99     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1306 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9615        6.7886        .26047E-05   -.60639E-03
   2  Prefactor     18.611        12.664       -.15002E-05    .42192E-03
   3  norm           .0000        2.2561       -.13247E-06** at limit **
   4  Prefactor     .55511E-10    15.831       -.59358E-06** at limit **
   5  norm          .55916        .47448        .11678E-09   -.90891E-02
   6  norm          2.2472        .66769       -.80014E-07   -.22151E-01
   7  Prefactor      .0000        3.4843        .48726E-06** at limit **
   8  Prefactor     .55511E-10    .42962       -.18442E-06** at limit **
   9  Prefactor     .33307E-09    19.136        .15453E-05** at limit **
  10  Prefactor     9.3834        28.756       -.11639E-05    .39873E-03
  11  norm          .55511E-10    3.7971       -.34458E-06** at limit **
  12  Prefactor     7.7252        5.6665        .38762E-06    .18947E-02
  13  norm           .0000        1.9310        .32276E-06** at limit **
  14  norm          1.3821        .45579        .29734E-07    .23691E-01
  15  norm          .94430E-02    .16065       -.90131E-08** at limit **
  16  Prefactor     3.2043        4.1294       -.42764E-06   -.23866E-02
  17  norm          16.183        5.8493        .45904E-06   -.36478E-02
  18  norm          9.9847        4.6698        .41567E-07   -.10963E-02
  19  Normalizat    .79759        .16189       -.11221E-04   -.39447E-04
  20  Prefactor     1.1210        .68707E-01    .23257E-05    .15096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.96147
  Prefactor  = 18.6115
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 0.559159
  norm       = 2.24721
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 3.33067e-10
  Prefactor  = 9.38337
  norm       = 5.55112e-11
  Prefactor  = 7.72516
  norm       = 0
  norm       = 1.38206
  norm       = 0.00944302
  Prefactor  = 3.20428
  norm       = 16.1832
  norm       = 9.98473
  Normalizat = 0.797594
  Prefactor  = 1.12096
 **********
 **   18 **HESSE 
 **********

 FCN=   18958.99     FROM HESSE     STATUS=OK           341 CALLS     1647 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9615        6.7971        .58683E-03   -1.5674    
   2  Prefactor     18.611        12.675        .23247E-03   -1.5622    
   3  norm           .0000        2.2086        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    15.860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .55916        .46627        .72951E-03   -1.5693    
   6  norm          2.2472        .67064        .68510E-03   -1.5678    
   7  Prefactor      .0000        3.4695        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .55511E-10    .42891        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33307E-09    19.152        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.3834        28.979        .30565E-03   -1.5647    
  11  norm          .55511E-10    3.7200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.7252        5.6663        .36052E-03   -1.5652    
  13  norm           .0000        1.8938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3821        .46161        .92507E-03   -1.5684    
  15  norm          .94430E-02    .53417E-01    .11260E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.2043        4.1876        .56642E-03   -1.5672    
  17  norm          16.183        5.9160        .24862E-03   -1.5628    
  18  norm          9.9847        4.6672        .31626E-03   -1.5645    
  19  Normalizat    .79759        .14980        .95750E-01   -1.0016    
  20  Prefactor     1.1210        .62839E-01    .36843E-01   -.88799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.1755e-07
Minuit parameter uncertainties:
  1  6.79716
  2  12.6751
  3  5.54804e-06
  4  6.73806e-05
  5  0.466273
  6  0.670639
  7  1.92466e-05
  8  1.10661e-05
  9  0.000163902
  10  28.9792
  11  2.92348e-05
  12  5.66635
  13  7.26315e-06
  14  0.461612
  15  0.0449185
  16  4.18762
  17  5.91599
  18  4.66719
  19  0.149873
  20  0.062843
Done.

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

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  9.383e+00  2.898e+01  0.000e+00  1.000e+06 ( 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:  1.121e+00  6.284e-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:  7.976e-01  1.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/655012/likelihoodResults_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.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) = 18958.9839463
delta logL = 0.00341478448536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 18958.9828892
delta logL = 0.00447181439085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.842       1.0000          .0000       .10000E+07
     2 'Index     '    2.0639       1.0000          .0000       10.000    
     3 'Normalizat'    .79877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1208       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.

 FCN=   18958.98     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      255 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.967        187.49        .30403E-03    .21970E-02
   2  Index         2.0496        .33542        .50000        .46393E-05
   3  Normalizat    .79845        .10648E-01    .95702E-01    .29101E-03
   4  Prefactor     1.1207        .47989E-02    .36845E-01    .19694E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9669
  Index      = 2.04965
  Normalizat = 0.798447
  Prefactor  = 1.12074
 **********
 **   18 **HESSE 
 **********

 FCN=   18958.98     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.967        35.529        .60806E-04   -1.5642    
   2  Index         2.0496        1.2807        .40228E-02   -.63115    
   3  Normalizat    .79845        .14870        .42403E-03   -1.0013    
   4  Prefactor     1.1207        .67020E-01    .16332E-03   -.88806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60471e-11
Minuit parameter uncertainties:
  1  35.53
  2  1.30323
  3  0.148774
  4  0.0670254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/655012': 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) = 18958.9828092
delta logL = 0.00455186912222

Extracting fit parameters...

4FGL J0202.7+4204
   Spectrum: PowerLaw
274    Prefactor:  1.097e+01  3.553e+01  0.000e+00  1.000e+06 ( 1.000e-14)
275        Index:  2.050e+00  1.303e+00  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:  1.121e+00  6.703e-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:  7.984e-01  1.488e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/655012/cmap_HighResolution_698889601_699148801_4FGL_J0202.7+4204_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-03', job_status='DONE', photon_flux_upper_limit='5.21e-08', time_completed='2023-02-27 09:13:21.930316', job_id='655012', GAL2='1.12', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1677518001.93', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='4.55e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1773' AND source_name='4FGL J0202.7+4204' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 09:13:21 PST 2023



------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 655013: <4FGL_J0202.7+4204_daily_bin1773> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1773> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Feb 27 00:10:05 2023
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 08:43:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 08:43:34 2023
Terminated at Mon Feb 27 09:09:24 2023
Results reported at Mon Feb 27 09:09:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1773 30.6862 42.0714 698889601 699148801 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 :                                   1100.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             295.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1550 sec.
    Turnaround time :                            32359 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 655012: <4FGL_J0202.7+4204_daily_bin1773> in cluster <slac> Done

Job <4FGL_J0202.7+4204_daily_bin1773> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Feb 27 00:10:04 2023
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 08:43:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 08:43:34 2023
Terminated at Mon Feb 27 09:13:22 2023
Results reported at Mon Feb 27 09:13:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0202.7+4204_daily_bin1773 30.6862 42.0714 698889601 699148801 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 :                                   1092.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             243.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1788 sec.
    Turnaround time :                            32599 sec.

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

