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


Performing analysis on: 4FGL_J0218.9+3643_daily_bin1441
RA = 34.7473, Dec = 36.7176
tmin = 612835201, tmax = 613094401
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='300469', job_status='RUN', time_executed='2021-08-15 17:16:07.259237', time_epoch_executed='1629072967.26' WHERE source_name='4FGL J0218.9+3643' and cadence='daily' and bin_id='1441'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/300469

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/300469/ft1_4FGL_J0218.9+3643_daily_bin1441.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/300469/ft1_4FGL_J0218.9+3643_daily_bin1441.fits outfile=/scratch/kocevski/300469/ft1_filteredMKT_4FGL_J0218.9+3643_daily_bin1441.fits ra=34.7473 dec=36.7176 rad=12.0 tmin=612835201.0 tmax=613094401.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 3.78
user 2.68
sys 1.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.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/300469/ft1_filteredMKT_4FGL_J0218.9+3643_daily_bin1441.fits evtable="EVENTS" outfile="/scratch/kocevski/300469/ft1_filtered_4FGL_J0218.9+3643_daily_bin1441.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 1.36
user 0.34
sys 0.99

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/300469/ft1_filtered_4FGL_J0218.9+3643_daily_bin1441.fits" evtable="EVENTS" scfile=/scratch/kocevski/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.fits sctable="SC_DATA" outfile=/scratch/kocevski/300469/ltcube_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.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/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.fits
.....................!
real 14.85
user 13.49
sys 1.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/300469/ft1_filtered_4FGL_J0218.9+3643_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.fits sctable="SC_DATA" expcube=/scratch/kocevski/300469/ltcube_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.fits outfile=/scratch/kocevski/300469/expmap_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.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/300469/ltcube_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.fits
.....................!
real 192.37
user 186.12
sys 5.53

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/300469/ft1_filtered_4FGL_J0218.9+3643_daily_bin1441.fits scfile=/scratch/kocevski/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.fits outfile=/scratch/kocevski/300469/cmap_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.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 1.44
user 0.38
sys 1.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/300469/ft1_filtered_4FGL_J0218.9+3643_daily_bin1441.fits scfile=/scratch/kocevski/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.fits outfile=/scratch/kocevski/300469/cmap_HighResolution_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.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 1.41
user 0.41
sys 0.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/300469/ft1_filtered_4FGL_J0218.9+3643_daily_bin1441.fits evtable="EVENTS" scfile=/scratch/kocevski/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/300469/Model_4FGL_J0218.9+3643_daily_bin1441.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/300469/ft1_filtered_4FGL_J0218.9+3643_daily_bin1441.fits.....................!
real 94.21
user 91.32
sys 2.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/300469/ft1_filtered_4FGL_J0218.9+3643_daily_bin1441.fits', '/scratch/kocevski/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.fits', expMap='/scratch/kocevski/300469/expmap_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.fits', expCube='/scratch/kocevski/300469/ltcube_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/300469/Model_4FGL_J0218.9+3643_daily_bin1441.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  1.000e-04  1.000e+04 ( 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  0.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/300469/ft1_filtered_4FGL_J0218.9+3643_daily_bin1441.fits
Spacecraft file(s): /scratch/kocevski/300469/ft2_4FGL_J0218.9+3643_daily_bin1441.fits
Exposure map: /scratch/kocevski/300469/expmap_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.fits
Exposure cube: /scratch/kocevski/300469/ltcube_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/300469/Model_4FGL_J0218.9+3643_daily_bin1441.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) = 7809.56461404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .58323       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .21480E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.463       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0009       1.0000         .10000E-03   10000.    
     9 'norm      '    .29286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1165       1.0000         .10000E-03   10000.    
    12 'norm      '    15.169       1.0000         .10000E-03   10000.    
    13 'norm      '    .57796       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9992       1.0000         .10000E-03   10000.    
    15 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.9415       1.0000         .10000E-03   10000.    
    18 'Prefactor '    65.894       1.0000         .10000E-03   10000.    
    19 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0405       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3387       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85140       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7809.549     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2404 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2810        .71304E-07** at limit **
   2  norm          .58325        .52295        .50305E-07    .32855E-03
   3  Prefactor     14.600        13.444       -.11354E-04   -.59855E-03
   4  Prefactor     .10001E-03    1.6669        .19167E-05** at limit **
   5  Prefactor     .10000E-03    20.596       -.24021E-05** at limit **
   6  Prefactor     37.468        32.027        .69855E-06   -.97038E-04
   7  norm          .10000E-03    1.4101        .42255E-07** at limit **
   8  Prefactor     4.0004        6.7037        .13161E-05   -.33381E-03
   9  norm          .29961        2.2700       -.19556E-06   -.22939E-03
  10  Prefactor     .10000E-03    10.562        .11966E-05** at limit **
  11  norm          1.1159        .75166        .17895E-07   -.67088E-03
  12  norm          15.209        76.148        .76388E-04    .58324E-06
  13  norm          .57795        .33168       -.60210E-08   -.72592E-03
  14  Prefactor     8.9997        7.0666       -.10479E-06   -.22447E-03
  15  norm          .10000E-03    11.130       -.17844E-05** at limit **
  16  Prefactor     .10000E-03    15.347        .21341E-05** at limit **
  17  norm          1.9412        2.1997       -.30568E-06   -.75107E-03
  18  Prefactor     65.898        105.39        .45036E-05    .27882E-06
  19  norm          .10000E-03    175.15       -.29641E-05** at limit **
  20  Prefactor     5.0392        9.0511       -.49194E-06   -.80263E-04
  21  Normalizat    1.3388        .22050        .26631E-05   -.59435E-03
  22  Prefactor     .85141        .10112       -.11548E-05   -.24585E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.583249
  Prefactor  = 14.5997
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 37.468
  norm       = 0.0001
  Prefactor  = 4.00037
  norm       = 0.299613
  Prefactor  = 0.0001
  norm       = 1.1159
  norm       = 15.2088
  norm       = 0.577949
  Prefactor  = 8.99966
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9412
  Prefactor  = 65.8979
  norm       = 0.0001
  Prefactor  = 5.03921
  Normalizat = 1.33878
  Prefactor  = 0.851407
 **********
 **   18 **HESSE 
 **********

 FCN=   7809.549     FROM HESSE     STATUS=OK           344 CALLS     2748 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3001        .17854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .58325        .56793        .59039E-03   -1.5555    
   3  Prefactor     14.600        13.413        .10487E-03   -1.4944    
   4  Prefactor     .10001E-03    6.2240        .21189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     37.468        31.984        .65481E-04   -1.4483    
   7  norm          .10000E-03    1.4156        .10238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0004        6.7096        .20163E-03   -1.5308    
   9  norm          .29961        17.039        .21464E-02   -1.5599    
  10  Prefactor     .10000E-03    10.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1159        .86468        .51547E-04   -1.5497    
  12  norm          15.209        74.682        .10284E-03   -1.4928    
  13  norm          .57795        .32896        .36920E-04   -1.5556    
  14  Prefactor     8.9997        6.9940        .13361E-03   -1.5108    
  15  norm          .10000E-03    11.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.9412        2.1854        .13335E-03   -1.5429    
  18  Prefactor     65.898        105.49        .49441E-04   -1.4083    
  19  norm          .10000E-03    178.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.0392        9.0407        .17910E-03   -1.5259    
  21  Normalizat    1.3388        .24979        .32357E-03   -.82416    
  22  Prefactor     .85141        .11592        .19296E-03   -.97860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95122e-09
Minuit parameter uncertainties:
  1  2.57419e-06
  2  0.567933
  3  13.4155
  4  0.000476357
  5  2.1355e-05
  6  31.9991
  7  4.86047e-06
  8  6.71086
  9  4.51952
  10  3.16212e-05
  11  0.864686
  12  67.5398
  13  0.32896
  14  6.99467
  15  2.35679e-05
  16  9.06222e-07
  17  2.18554
  18  105.787
  19  0.00018249
  20  9.04316
  21  0.250017
  22  0.115955
Done.

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

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  2.996e-01  4.520e+00  1.000e-04  1.000e+04 ( 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  0.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:  8.514e-01  1.160e-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:  1.339e+00  2.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/300469/likelihoodResults_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.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) = 7809.39694677
delta logL = 0.152192606352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7809.29162045
delta logL = 0.257518933981

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50439E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86901       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7809.292     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      313 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50476E-01    .81368E-01    .26066E-04    .12561E-03
   2  alpha         5.0000        3.7103        .50000    ** at limit **
   3  Normalizat    1.2781        .25178        .32969E-03    .23152E-03
   4  Prefactor     .86911        .11729        .19117E-03    .49512E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0504764
  alpha      = 5
  Normalizat = 1.27807
  Prefactor  = 0.869106
 **********
 **   18 **HESSE 
 **********

 FCN=   7809.292     FROM HESSE     STATUS=OK            29 CALLS      342 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50476E-01    .80987E-01    .10426E-05   -1.5663    
   2  alpha         5.0000        3.7019        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2781        .25206        .13188E-04   -.84223    
   4  Prefactor     .86911        .11739        .38234E-04   -.97229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50296e-10
Minuit parameter uncertainties:
  1  0.0809867
  2  5.22553e-05
  3  0.2523
  4  0.117426
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/300469': 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) = 7809.29161966
delta logL = 0.25751971991

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  5.048e-02  8.099e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  5.226e-05  0.000e+00  5.000e+00 ( 1.000e+00)
265         beta:  1.847e-01  0.000e+00  0.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:  8.691e-01  1.174e-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:  1.278e+00  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
Ra Dec: 34.747 36.718

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/300469/cmap_HighResolution_612835201_613094401_4FGL_J0218.9+3643_daily_bin1441.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-15 17:29:24.615465', job_id='300469', GAL2='0.87', fit_tolerance='1e-08', EG2='1.28', EG='1.34', time_epoch_completed='1629073764.62', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.58e-01', ts2='0.58', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1441' AND source_name='4FGL J0218.9+3643' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:29:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 300469: <4FGL_J0218.9+3643_daily_bin1441> in cluster <slac> Done

Job <4FGL_J0218.9+3643_daily_bin1441> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sun Aug 15 17:15:21 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:15:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 17:15:36 2021
Terminated at Sun Aug 15 17:29:25 2021
Results reported at Sun Aug 15 17:29:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9+3643_daily_bin1441 34.7473 36.7176 612835201 613094401 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 :                                   798.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            844 sec.

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

