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


Performing analysis on: 4FGL_J0218.9+3643_daily_bin836
RA = 34.7473, Dec = 36.7176
tmin = 456019201, tmax = 456278401
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='297443', job_status='RUN', time_executed='2021-08-15 17:06:14.155739', time_epoch_executed='1629072374.16' WHERE source_name='4FGL J0218.9+3643' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/297443

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/297443/ft1_4FGL_J0218.9+3643_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/297443/ft2_4FGL_J0218.9+3643_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/297443/ft1_4FGL_J0218.9+3643_daily_bin836.fits outfile=/scratch/kocevski/297443/ft1_filteredMKT_4FGL_J0218.9+3643_daily_bin836.fits ra=34.7473 dec=36.7176 rad=12.0 tmin=456019201.0 tmax=456278401.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.67
user 5.41
sys 1.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/297443/ft2_4FGL_J0218.9+3643_daily_bin836.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/297443/ft1_filteredMKT_4FGL_J0218.9+3643_daily_bin836.fits evtable="EVENTS" outfile="/scratch/kocevski/297443/ft1_filtered_4FGL_J0218.9+3643_daily_bin836.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.44
user 0.29
sys 1.10

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/297443/ft1_filtered_4FGL_J0218.9+3643_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/297443/ft2_4FGL_J0218.9+3643_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/297443/ltcube_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.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/297443/ft2_4FGL_J0218.9+3643_daily_bin836.fits
.....................!
real 11.57
user 10.12
sys 1.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/297443/ft1_filtered_4FGL_J0218.9+3643_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/297443/ft2_4FGL_J0218.9+3643_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/297443/ltcube_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.fits outfile=/scratch/kocevski/297443/expmap_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.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/297443/ltcube_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.fits
.....................!
real 159.79
user 153.40
sys 5.85

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/297443/ft1_filtered_4FGL_J0218.9+3643_daily_bin836.fits scfile=/scratch/kocevski/297443/ft2_4FGL_J0218.9+3643_daily_bin836.fits outfile=/scratch/kocevski/297443/cmap_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.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.45
user 0.33
sys 1.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/297443/ft1_filtered_4FGL_J0218.9+3643_daily_bin836.fits scfile=/scratch/kocevski/297443/ft2_4FGL_J0218.9+3643_daily_bin836.fits outfile=/scratch/kocevski/297443/cmap_HighResolution_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.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.31
sys 1.07

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/297443/ft1_filtered_4FGL_J0218.9+3643_daily_bin836.fits', '/scratch/kocevski/297443/ft2_4FGL_J0218.9+3643_daily_bin836.fits', expMap='/scratch/kocevski/297443/expmap_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.fits', expCube='/scratch/kocevski/297443/ltcube_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/297443/Model_4FGL_J0218.9+3643_daily_bin836.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/297443/ft1_filtered_4FGL_J0218.9+3643_daily_bin836.fits
Spacecraft file(s): /scratch/kocevski/297443/ft2_4FGL_J0218.9+3643_daily_bin836.fits
Exposure map: /scratch/kocevski/297443/expmap_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.fits
Exposure cube: /scratch/kocevski/297443/ltcube_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/297443/Model_4FGL_J0218.9+3643_daily_bin836.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) = 8703.27823532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.277       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0363       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .97544       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6425       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .53663       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.0005       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.8522       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11727E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0647       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4868       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96688       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=   8703.255     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2365 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.277        15.723        .46545E-06   -.30123E-04
   2  norm          1.0356        1.4945        .38317E-06    .45923E-03
   3  Prefactor     .10000E-03    28.005       -.47916E-06** at limit **
   4  Prefactor     .97351        3.7391        .27510E-05    .15307E-04
   5  Prefactor     .10000E-03    14.954        .10583E-06** at limit **
   6  Prefactor     .10000E-03    29.041       -.21204E-07** at limit **
   7  norm          .10000E-03    1.0426        .14824E-07** at limit **
   8  Prefactor     7.6469        10.379        .49474E-06   -.37403E-04
   9  norm          .10000E-03    .86269        .76213E-08** at limit **
  10  Prefactor     .10000E-03    7.1024        .54832E-07** at limit **
  11  norm          .53659        .44215        .10201E-07   -.12173E-03
  12  norm          .10000E-03    56.986        .14645E-06** at limit **
  13  norm          1.0005        .37108        .21830E-07   -.22503E-03
  14  Prefactor     .10000E-03    1.7137        .26106E-07** at limit **
  15  norm          .10000E-03    1.6319        .20863E-07** at limit **
  16  Prefactor     .10000E-03    10.230        .14474E-07** at limit **
  17  norm          7.8522        2.9389        .45330E-08   -.16597E-04
  18  Prefactor     .10001E-03    421.09       -.10308E-04** at limit **
  19  norm          1.0454        18.373       -.17778E-05    .31880E-03
  20  Prefactor     .10000E-03    15.191        .84870E-07** at limit **
  21  Normalizat    1.4868        .24450       -.19835E-05   -.75120E-04
  22  Prefactor     .96691        .10598       -.46054E-06   -.12763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2766
  norm       = 1.03562
  Prefactor  = 0.0001
  Prefactor  = 0.973514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.64687
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.536591
  norm       = 0.0001
  norm       = 1.00051
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.85218
  Prefactor  = 0.000100014
  norm       = 1.04544
  Prefactor  = 0.0001
  Normalizat = 1.48681
  Prefactor  = 0.966908
 **********
 **   18 **HESSE 
 **********

 FCN=   8703.255     FROM HESSE     STATUS=OK           344 CALLS     2709 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.277        15.853        .11930E-03   -1.5036    
   2  norm          1.0356        1.3216        .13522E-02   -1.5504    
   3  Prefactor     .10000E-03    28.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97351        3.7331        .32778E-03   -1.5511    
   5  Prefactor     .10000E-03    14.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.0432        .93013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6469        10.402        .14506E-03   -1.5155    
   9  norm          .10000E-03    .86554        .84567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .53659        .45292        .54114E-03   -1.5561    
  12  norm          .10000E-03    57.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.0005        .37049        .33405E-04   -1.5508    
  14  Prefactor     .10000E-03    1.7245        .11925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6376        .11639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.8522        2.9404        .93151E-04   -1.5147    
  18  Prefactor     .10001E-03    430.07        .20654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0454        141.21        .74799E-02   -1.5503    
  20  Prefactor     .10000E-03    15.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4868        .28427        .35832E-03   -.78150    
  22  Prefactor     .96691        .12519        .19964E-03   -.93841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50906e-09
Minuit parameter uncertainties:
  1  15.8592
  2  1.32159
  3  0.00015924
  4  3.73396
  5  2.37701e-05
  6  1.20644e-05
  7  5.70221e-07
  8  10.4048
  9  4.83956e-07
  10  1.26561e-05
  11  0.452918
  12  9.8853e-05
  13  0.370486
  14  2.30738e-06
  15  1.62302e-06
  16  3.725e-06
  17  2.94043
  18  0.00492878
  19  24.358
  20  2.98374e-05
  21  0.284572
  22  0.125224
Done.

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

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  1.000e-04  4.840e-07  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:  9.669e-01  1.252e-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.487e+00  2.846e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 34.747 36.718
Photon Flux Upper Limit: 5.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/297443/likelihoodResults_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.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) = 8703.26081614
delta logL = -0.00537365412492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8703.18964546
delta logL = 0.0657970286247

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .23423E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4499       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97769       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=   8703.190     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      315 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23421E-01    .68181E-01    .29262E-03    .13857E-02
   2  alpha         5.0000        3.6327        .14076    ** at limit **
   3  Normalizat    1.4499        .28196        .36214E-03    .16695E-03
   4  Prefactor     .97768        .12550        .19869E-03    .25792E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0234209
  alpha      = 5
  Normalizat = 1.44994
  Prefactor  = 0.977677
 **********
 **   18 **HESSE 
 **********

 FCN=   8703.190     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23421E-01    .67562E-01    .11705E-04   -1.5677    
   2  alpha         5.0000        3.6196        .28152E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4499        .28053        .14486E-04   -.79195    
   4  Prefactor     .97768        .12528        .39738E-04   -.93477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0733e-11
Minuit parameter uncertainties:
  1  0.0675618
  2  2.0883e-05
  3  0.280827
  4  0.12532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/297443': 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) = 8703.18964545
delta logL = 0.0657970393368

Extracting fit parameters...

4FGL J0218.9+3643
   Spectrum: LogParabola
263         norm:  2.342e-02  6.756e-02  1.000e-04  1.000e+04 ( 1.000e-12)
264        alpha:  5.000e+00  2.088e-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:  9.777e-01  1.253e-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.450e+00  2.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/297443/cmap_HighResolution_456019201_456278401_4FGL_J0218.9+3643_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.88e-05', job_status='DONE', photon_flux_upper_limit='5.45e-08', time_completed='2021-08-15 17:18:08.818382', job_id='297443', GAL2='0.98', fit_tolerance='1e-08', EG2='1.45', EG='1.49', time_epoch_completed='1629073088.82', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='6.58e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='836' AND source_name='4FGL J0218.9+3643' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 17:18:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 297443: <4FGL_J0218.9+3643_daily_bin836> in cluster <slac> Done

Job <4FGL_J0218.9+3643_daily_bin836> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 15 17:05:21 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 17:05:47 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:05:47 2021
Terminated at Sun Aug 15 17:18:09 2021
Results reported at Sun Aug 15 17:18:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0218.9+3643_daily_bin836 34.7473 36.7176 456019201 456278401 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 :                                   720.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             356.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            768 sec.

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

