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


Performing analysis on: 4FGL_J0218.9+3643_daily_bin1770
RA = 34.7473, Dec = 36.7176
tmin = 698112001, tmax = 698371201
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='475102', job_status='RUN', time_executed='2023-02-18 00:06:54.960558', time_epoch_executed='1676707614.96' WHERE source_name='4FGL J0218.9+3643' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/475102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/475102/ft1_4FGL_J0218.9+3643_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/475102/ft1_4FGL_J0218.9+3643_daily_bin1770.fits outfile=/scratch/kocevski/475102/ft1_filteredMKT_4FGL_J0218.9+3643_daily_bin1770.fits ra=34.7473 dec=36.7176 rad=12.0 tmin=698112001.0 tmax=698371201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.39
user 4.14
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.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/475102/ft1_filteredMKT_4FGL_J0218.9+3643_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/475102/ft1_filtered_4FGL_J0218.9+3643_daily_bin1770.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.76
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 914

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/475102/ft1_filtered_4FGL_J0218.9+3643_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/475102/ltcube_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.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/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits
.....................!
real 13.16
user 12.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/475102/ft1_filtered_4FGL_J0218.9+3643_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/475102/ltcube_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.fits outfile=/scratch/kocevski/475102/expmap_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.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/475102/ltcube_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.fits
.....................!
real 191.80
user 187.06
sys 4.24

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
Added 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J0218.9+3643 @ 34.7473 36.7176

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/475102/ft1_filtered_4FGL_J0218.9+3643_daily_bin1770.fits scfile=/scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits outfile=/scratch/kocevski/475102/cmap_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.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=34.7473 yref=36.7176 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/475102/ft1_filtered_4FGL_J0218.9+3643_daily_bin1770.fits scfile=/scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits outfile=/scratch/kocevski/475102/cmap_HighResolution_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.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=34.7473 yref=36.7176 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/475102/ft1_filtered_4FGL_J0218.9+3643_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/475102/Model_4FGL_J0218.9+3643_daily_bin1770.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
Working on...
/scratch/kocevski/475102/ft1_filtered_4FGL_J0218.9+3643_daily_bin1770.fits.....................!
real 113.08
user 111.81
sys 1.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/475102/ft1_filtered_4FGL_J0218.9+3643_daily_bin1770.fits', '/scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits', expMap='/scratch/kocevski/475102/expmap_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.fits', expCube='/scratch/kocevski/475102/ltcube_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/475102/Model_4FGL_J0218.9+3643_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0218.9+3643'

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  1.139e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.474e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/475102/ft1_filtered_4FGL_J0218.9+3643_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/475102/ft2_4FGL_J0218.9+3643_daily_bin1770.fits
Exposure map: /scratch/kocevski/475102/expmap_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.fits
Exposure cube: /scratch/kocevski/475102/ltcube_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/475102/Model_4FGL_J0218.9+3643_daily_bin1770.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) = 9884.4363617

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2413       1.0000          .0000       .10000E+07
     2 'Prefactor '    13.789       1.0000          .0000       .10000E+07
     3 'Prefactor '    .16722E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .82377E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    6.1614       1.0000          .0000       .10000E+07
     6 'norm      '    .24425E-08   1.0000          .0000       .10000E+07
     7 'Prefactor '    .70132       1.0000          .0000       .10000E+07
     8 'norm      '    3.1696       1.0000          .0000       .10000E+07
     9 'norm      '    1.3490       1.0000          .0000       .10000E+07
    10 'norm      '    .25249       1.0000          .0000       .10000E+07
    11 'norm      '    .18602       1.0000          .0000       .10000E+07
    12 'Prefactor '    .14827E-01   1.0000          .0000       .10000E+07
    13 'norm      '    .15563E-02   1.0000          .0000       .10000E+07
    14 'norm      '    2.7761       1.0000          .0000       .10000E+07
    15 'Prefactor '    2.9359       1.0000          .0000       .10000E+07
    16 'norm      '    .47885E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.5807       1.0000          .0000       .10000E+07
    18 'Normalizat'    .96206       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9884.434     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     1397 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2413        1.0438        .25929E-07    .49333E-02
   2  Prefactor     13.763        3.2221        .40673E-07   -.11696E-01
   3  Prefactor     .22671E-06    6.5308       -.61643E-07** at limit **
   4  Prefactor     .47740E-08    5.3727        .13964E-06** at limit **
   5  Prefactor     6.1095        1.0135       -.62889E-08   -.10180E-02
   6  norm          .16653E-09    1.5230       -.17590E-07** at limit **
   7  Prefactor     .71412        6.1255        .83165E-07   -.11552E-03
   8  norm          3.1388        5.1190       -.35879E-07    .14663E-02
   9  norm          1.3517        .90668        .56951E-08    .54970E-02
  10  norm          .73569E-05    7.5015        .92074E-07** at limit **
  11  norm          .18567        .17446        .90547E-08** at limit **
  12  Prefactor     .86803E-01    59.645        .17713E-05** at limit **
  13  norm          .11879E-07    5.2153        .30175E-07** at limit **
  14  norm          2.7799        2.0631       -.58433E-08    .22903E-03
  15  Prefactor     2.5848        19.565        .97454E-06    .39512E-01
  16  norm          .15876E-07    12.500        .72047E-07** at limit **
  17  Prefactor     1.6658        2.2225        .34675E-07    .31264E-02
  18  Normalizat    .96105        .23070       -.18686E-05    .16521E-03
  19  Prefactor     1.0419        .10820        .79662E-06    .38908E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.2413
  Prefactor  = 13.7627
  Prefactor  = 2.26708e-07
  Prefactor  = 4.77396e-09
  Prefactor  = 6.10949
  norm       = 1.66533e-10
  Prefactor  = 0.714119
  norm       = 3.13881
  norm       = 1.35169
  norm       = 7.35689e-06
  norm       = 0.185671
  Prefactor  = 0.0868033
  norm       = 1.18794e-08
  norm       = 2.77987
  Prefactor  = 2.5848
  norm       = 1.58762e-08
  Prefactor  = 1.66581
  Normalizat = 0.961049
  Prefactor  = 1.04193
 **********
 **   18 **HESSE 
 **********

 FCN=   9884.434     FROM HESSE     STATUS=OK           318 CALLS     1715 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2413        1.0416        .10059E-02   -1.5686    
   2  Prefactor     13.763        16.730        .26948E-03   -1.5634    
   3  Prefactor     .22671E-06    7.5329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47740E-08    5.4868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1095        32.653        .40421E-03   -1.5659    
   6  norm          .16653E-09    1.5327        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .71412        6.1684        .60601E-03   -1.5691    
   8  norm          3.1388        4.9288        .56901E-03   -1.5673    
   9  norm          1.3517        .88109        .94188E-03   -1.5685    
  10  norm          .73569E-05    41.097        .10907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .18567        .19155        .88744E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .86803E-01    4.2554        .54006E-02   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .11879E-07    5.4611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.7799        2.0785        .61052E-03   -1.5675    
  15  Prefactor     2.5848        110.66        .59254E-03   -1.5676    
  16  norm          .15876E-07    12.890        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.6658        21.267        .84443E-03   -1.5682    
  18  Normalizat    .96105        .20776        .84366E-01   -.94347    
  19  Prefactor     1.0419        .95135E-01    .40431E-01   -.91345    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50778e-06
Minuit parameter uncertainties:
  1  1.04164
  2  16.7303
  3  0.00261365
  4  0.000323082
  5  28.2486
  6  3.12201e-05
  7  4.19761
  8  4.92878
  9  0.881087
  10  0.0347763
  11  0.191546
  12  1.21554
  13  0.000509549
  14  2.07849
  15  33.8264
  16  0.000904083
  17  11.9042
  18  0.207932
  19  0.0951501
Done.

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

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  3.139e+00  4.929e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  2.474e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
265         beta:  1.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.042e+00  9.515e-02  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.610e-01  2.079e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.85
Ra Dec: 34.747 36.718
Photon Flux Upper Limit: 1.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.40e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/475102/likelihoodResults_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.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) = 9883.72713303
delta logL = 0.706375232097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9883.71868537
delta logL = 0.714822888751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3399       1.0000          .0000       .10000E+07
     2 'alpha     '    3.5578       1.0000          .0000       5.0000    
     3 'Normalizat'    .88123       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0666       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9883.719     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      241 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3387        11.466        .94668E-03    .20857E-01
   2  alpha         3.5584        3.8749        .36737        .97701E-04
   3  Normalizat    .88122        .49043E-01    .87630E-01    .51891E-04
   4  Prefactor     1.0666        .23676E-01    .39021E-01    .20167E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.33868
  alpha      = 3.55843
  Normalizat = 0.881215
  Prefactor  = 1.06662
 **********
 **   18 **HESSE 
 **********

 FCN=   9883.719     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3387        8.3385        .75745E-05   -1.5685    
   2  alpha         3.5584        3.9555        .13193E-01    .43716    
   3  Normalizat    .88122        .24836        .38806E-03   -.97123    
   4  Prefactor     1.0666        .11702        .17372E-03   -.90540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31686e-10
Minuit parameter uncertainties:
  1  6.68212
  2  2.88053
  3  0.248679
  4  0.117044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/475102': 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) = 9883.71868512
delta logL = 0.714823140177

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  1.339e+00  6.682e+00  0.000e+00  1.000e+06 ( 1.000e-12)
264        alpha:  3.558e+00  2.881e+00  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.847e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
266           Eb:  1.004e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.067e+00  1.170e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  8.812e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 34.747 36.718
Photon Index (Free Index): 3.56 +/- 2.88
Photon Flux (Free Index): 9.76e-08 +/- 7.59e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.76e-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/475102/cmap_HighResolution_698112001_698371201_4FGL_J0218.9+3643_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.40e-05', comment='SUCCESS', energy_flux2='1.83e-05', dlogl='7.15e-01', photon_flux2='9.76e-08', job_status='DONE', time_completed='2023-02-18 00:18:43.114027', photon_index_error2='2.88', photon_index2='3.56', ts='0.85', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='1.76e-05', EG='0.96', time_epoch_completed='1676708323.11', return_code='0', job_id='475102', GAL2='1.07', EG2='0.88', return_code2='0', photon_flux_error2='7.59e-08', ts2='2.51', photon_index='2.47' WHERE bin_id='1770' AND source_name='4FGL J0218.9+3643' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:18:43 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 475171: <4FGL_J0218.9+3643_daily_bin1770> in cluster <slac> Done

Job <4FGL_J0218.9+3643_daily_bin1770> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Feb 18 00:05:22 2023
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:05:42 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:05:42 2023
Terminated at Sat Feb 18 00:17:58 2023
Results reported at Sat Feb 18 00:17:58 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9+3643_daily_bin1770 34.7473 36.7176 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0218.9+3643 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             330.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   736 sec.
    Turnaround time :                            756 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 475102: <4FGL_J0218.9+3643_daily_bin1770> in cluster <slac> Done

Job <4FGL_J0218.9+3643_daily_bin1770> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Feb 18 00:05:16 2023
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:05:28 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:05:28 2023
Terminated at Sat Feb 18 00:18:43 2023
Results reported at Sat Feb 18 00:18:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9+3643_daily_bin1770 34.7473 36.7176 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0218.9+3643 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   708.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             331.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            807 sec.

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

