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


Performing analysis on: 4FGL_J0204.8+1513_daily_bin1306
RA = 31.2182, Dec = 15.2326
tmin = 577843201, tmax = 578102401
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='83174', job_status='RUN', time_executed='2021-08-15 05:36:46.573387', time_epoch_executed='1629031006.57' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83174

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83174/ft1_4FGL_J0204.8+1513_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83174/ft1_4FGL_J0204.8+1513_daily_bin1306.fits outfile=/scratch/kocevski/83174/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1306.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=577843201.0 tmax=578102401.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 7.30
user 3.05
sys 4.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.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/83174/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1306.fits evtable="EVENTS" outfile="/scratch/kocevski/83174/ft1_filtered_4FGL_J0204.8+1513_daily_bin1306.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 4.47
user 0.35
sys 4.04

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83174/ft1_filtered_4FGL_J0204.8+1513_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/83174/ltcube_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.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/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits
.....................!
real 18.24
user 13.48
sys 4.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83174/ft1_filtered_4FGL_J0204.8+1513_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/83174/ltcube_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.fits outfile=/scratch/kocevski/83174/expmap_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.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/83174/ltcube_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.fits
.....................!
real 196.63
user 186.01
sys 9.78

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

Setting source of interest to:
4FGL J0204.8+1513 @ 31.2182 15.2326

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/83174/ft1_filtered_4FGL_J0204.8+1513_daily_bin1306.fits scfile=/scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits outfile=/scratch/kocevski/83174/cmap_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.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=31.2182 yref=15.2326 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 4.49
user 0.39
sys 4.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83174/ft1_filtered_4FGL_J0204.8+1513_daily_bin1306.fits scfile=/scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits outfile=/scratch/kocevski/83174/cmap_HighResolution_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.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=31.2182 yref=15.2326 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 4.45
user 0.40
sys 4.00

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83174/ft1_filtered_4FGL_J0204.8+1513_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83174/Model_4FGL_J0204.8+1513_daily_bin1306.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/83174/ft1_filtered_4FGL_J0204.8+1513_daily_bin1306.fits.....................!
real 49.29
user 42.53
sys 6.42

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83174/ft1_filtered_4FGL_J0204.8+1513_daily_bin1306.fits', '/scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits', expMap='/scratch/kocevski/83174/expmap_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.fits', expCube='/scratch/kocevski/83174/ltcube_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83174/Model_4FGL_J0204.8+1513_daily_bin1306.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0204.8+1513'

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.139e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/83174/ft1_filtered_4FGL_J0204.8+1513_daily_bin1306.fits
Spacecraft file(s): /scratch/kocevski/83174/ft2_4FGL_J0204.8+1513_daily_bin1306.fits
Exposure map: /scratch/kocevski/83174/expmap_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.fits
Exposure cube: /scratch/kocevski/83174/ltcube_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83174/Model_4FGL_J0204.8+1513_daily_bin1306.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) = 2587.60817388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.227       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9732       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.345       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3511       1.0000         .10000E-03   10000.    
     7 'norm      '    31.035       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.589       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0869       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    85.765       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.460       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .58822       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    48.980       1.0000         .10000E-03   10000.    
    23 'Prefactor '    31.457       1.0000         .10000E-03   10000.    
    24 'Prefactor '    45.035       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .55152       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1458       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2587.588     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3717 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.395        76.898        .49153E-06    .97674E-05
   2  Prefactor     10.229        29.270        .30964E-06   -.89272E-05
   3  norm          .10000E-03    37.684       -.47385E-06** at limit **
   4  Prefactor     8.9734        12.498        .47266E-06   -.51537E-04
   5  Prefactor     31.321        1129.9       -.11540E-06   -.24694E-05
   6  Prefactor     4.3502        9.5073        .79351E-05   -.38748E-03
   7  norm          31.036        17.088       -.49388E-06   -.31768E-04
   8  Prefactor     11.589        13.755        .61311E-06   -.42276E-04
   9  Prefactor     4.0869        4.2253        .17186E-06   -.81655E-05
  10  norm          .10007E-03    141.48       -.16174E-04** at limit **
  11  Prefactor     .10000E-03    17.956       -.14829E-05** at limit **
  12  Prefactor     85.763        112.73       -.34464E-05   -.24680E-04
  13  Prefactor     .10000E-03    19.112       -.77672E-06** at limit **
  14  Prefactor     .10002E-03    88.778        .91141E-05** at limit **
  15  Prefactor     .10000E-03    109.87        .20281E-05** at limit **
  16  Prefactor     15.463        25.119       -.57182E-06   -.25433E-04
  17  Prefactor     .10000E-03    34.392       -.10645E-05** at limit **
  18  Prefactor     .10000E-03    8.3093        .43158E-07** at limit **
  19  Prefactor     .10000E-03    16.565        .92559E-06** at limit **
  20  norm          .58819        1.1931        .28227E-06    .82221E-04
  21  Prefactor     .10000E-03    38.785       -.38639E-07** at limit **
  22  norm          48.982        28.850        .11899E-06    .11448E-05
  23  Prefactor     31.459        47.769        .41851E-06   -.74892E-05
  24  Prefactor     45.065        85.881        .40232E-05    .54171E-04
  25  Prefactor     .10000E-03    21.203        .20529E-05** at limit **
  26  Normalizat    .55164        .42100       -.72793E-05   -.40482E-04
  27  Prefactor     1.1457        .22114        .24335E-06   -.55566E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.3946
  Prefactor  = 10.2287
  norm       = 0.0001
  Prefactor  = 8.97335
  Prefactor  = 31.3211
  Prefactor  = 4.35019
  norm       = 31.0357
  Prefactor  = 11.5895
  Prefactor  = 4.08686
  norm       = 0.000100068
  Prefactor  = 0.000100001
  Prefactor  = 85.7626
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.000100001
  Prefactor  = 15.4635
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.588195
  Prefactor  = 0.0001
  norm       = 48.9817
  Prefactor  = 31.459
  Prefactor  = 45.0646
  Prefactor  = 0.000100001
  Normalizat = 0.551636
  Prefactor  = 1.14575
 **********
 **   18 **HESSE 
 **********

 FCN=   2587.588     FROM HESSE     STATUS=OK           484 CALLS     4201 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.395        76.897        .22397E-03   -1.3912    
   2  Prefactor     10.229        29.185        .12529E-03   -1.5068    
   3  norm          .10000E-03    37.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.9734        12.485        .66901E-03   -1.5109    
   5  Prefactor     31.321        1134.2        .71568E-04   -1.4588    
   6  Prefactor     4.3502        9.6515        .96551E-03   -1.5291    
   7  norm          31.036        17.078        .71923E-04   -1.4593    
   8  Prefactor     11.589        13.745        .58840E-03   -1.5027    
   9  Prefactor     4.0869        4.2132        .10103E-03   -1.5304    
  10  norm          .10007E-03    149.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     85.763        112.43        .43379E-04   -1.3853    
  13  Prefactor     .10000E-03    19.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    91.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    110.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.463        24.912        .10186E-03   -1.4921    
  17  Prefactor     .10000E-03    34.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3186        .14321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .58819        1.0973        .66581E-03   -1.5555    
  21  Prefactor     .10000E-03    38.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          48.982        28.896        .57298E-04   -1.4307    
  23  Prefactor     31.459        46.755        .71440E-04   -1.4586    
  24  Prefactor     45.065        85.967        .59743E-04   -1.4364    
  25  Prefactor     .10000E-03    21.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .55164        .43451        .47630E-03   -1.1008    
  27  Prefactor     1.1457        .23529        .18829E-03   -.88018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12533e-09
Minuit parameter uncertainties:
  1  76.9928
  2  29.2253
  3  6.31164e-05
  4  12.4887
  5  385.121
  6  9.65497
  7  17.081
  8  13.749
  9  4.2135
  10  0.00639445
  11  0.000196558
  12  112.709
  13  7.65306e-05
  14  0.00282335
  15  0.000745219
  16  24.929
  17  0.00016401
  18  6.50767e-06
  19  7.71687e-05
  20  1.09733
  21  5.56885e-05
  22  28.9043
  23  46.8092
  24  86.2044
  25  0.000292187
  26  0.437229
  27  0.235506
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  4.350e+00  9.655e+00  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.146e+00  2.355e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  5.516e-01  4.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 31.218 15.233
Photon Flux Upper Limit: 3.97e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83174/likelihoodResults_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.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) = 2585.42027865
delta logL = 2.16768893953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2585.39118315
delta logL = 2.19678444637

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .34912E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.7868       1.0000          .0000       10.000    
     3 'Normalizat'    .27006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2585.391     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      350 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34649E-01    .40236        .91962E-03   -.28327E-01
   2  Index         5.7908        2.9345        .60856E-01   -.48500E-03
   3  Normalizat    .27049        .15903        .15000       -.14418E-04
   4  Prefactor     1.2433        .88260E-01    .33679E-01   -.48770E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0346487
  Index      = 5.79077
  Normalizat = 0.270489
  Prefactor  = 1.24326
 **********
 **   18 **HESSE 
 **********

 FCN=   2585.391     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      381 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34649E-01    .56282        .51896E-05   -1.5671    
   2  Index         5.7908        3.4861        .26002E-02    .15882    
   3  Normalizat    .27049        .38767        .66198E-03   -1.2464    
   4  Prefactor     1.2433        .21481        .18073E-03   -.85010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.87367e-10
Minuit parameter uncertainties:
  1  0.278892
  2  3.87065
  3  0.391605
  4  0.214966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83174': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2585.3911794
delta logL = 2.19678819075

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  3.465e-02  2.789e-01  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  5.791e+00  3.871e+00  0.000e+00  1.000e+01 (-1.000e+00)
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.243e+00  2.150e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  2.705e-01  3.916e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.32
Ra Dec: 31.218 15.233
Photon Index (Free Index): 5.79 +/- 3.87
Photon Flux (Free Index): 4.00e-07 +/- 2.31e-07
Energy Flux (Free Index): 5.04e-05 +/- 3.11e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/83174/cmap_HighResolution_577843201_578102401_4FGL_J0204.8+1513_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-02', comment='SUCCESS', energy_flux2='5.04e-05', dlogl='2.20e+00', photon_flux2='4.00e-07', job_status='DONE', time_completed='2021-08-15 05:46:28.702768', photon_index_error2='3.87', photon_index2='5.79', ts='0.27', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='3.97e-07', energy_flux_error2='3.11e-05', EG='0.55', time_epoch_completed='1629031588.7', return_code='0', job_id='83174', GAL2='1.24', EG2='0.27', return_code2='102', photon_flux_error2='2.31e-07', ts2='5.32', photon_index='2.31' WHERE bin_id='1306' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 05:46:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 83174: <4FGL_J0204.8+1513_daily_bin1306> in cluster <slac> Done

Job <4FGL_J0204.8+1513_daily_bin1306> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 15 05:30:55 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 05:31:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 05:31:33 2021
Terminated at Sun Aug 15 05:46:30 2021
Results reported at Sun Aug 15 05:46:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1306 31.2182 15.2326 577843201 578102401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0204.8+1513 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   631.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            935 sec.

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

