/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 5 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 = 7440
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0257.9-1215_daily_bin174
RA = 44.492, Dec = -12.2637
tmin = 284428801, tmax = 284688001
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='967474', job_status='RUN', time_executed='2021-08-17 04:59:09.468867', time_epoch_executed='1629201549.47' WHERE source_name='4FGL J0257.9-1215' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/967474

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/967474/ft1_4FGL_J0257.9-1215_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/967474/ft1_4FGL_J0257.9-1215_daily_bin174.fits outfile=/scratch/kocevski/967474/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin174.fits ra=44.492 dec=-12.2637 rad=12.0 tmin=284428801.0 tmax=284688001.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 8.42
user 3.36
sys 2.81

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.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/967474/ft1_filteredMKT_4FGL_J0257.9-1215_daily_bin174.fits evtable="EVENTS" outfile="/scratch/kocevski/967474/ft1_filtered_4FGL_J0257.9-1215_daily_bin174.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 6.58
user 0.35
sys 2.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/967474/ft1_filtered_4FGL_J0257.9-1215_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/967474/ltcube_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.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/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits
.....................!
real 18.55
user 12.34
sys 3.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/967474/ft1_filtered_4FGL_J0257.9-1215_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/967474/ltcube_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.fits outfile=/scratch/kocevski/967474/expmap_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.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/967474/ltcube_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.fits
.....................!
real 205.52
user 186.53
sys 11.42

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

Setting source of interest to:
4FGL J0257.9-1215 @ 44.492 -12.2637

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/967474/ft1_filtered_4FGL_J0257.9-1215_daily_bin174.fits scfile=/scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits outfile=/scratch/kocevski/967474/cmap_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.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=44.492 yref=-12.2637 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 3.75
user 0.39
sys 2.76

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/967474/ft1_filtered_4FGL_J0257.9-1215_daily_bin174.fits scfile=/scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits outfile=/scratch/kocevski/967474/cmap_HighResolution_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.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=44.492 yref=-12.2637 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 3.52
user 0.38
sys 2.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/967474/ft1_filtered_4FGL_J0257.9-1215_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/967474/Model_4FGL_J0257.9-1215_daily_bin174.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/967474/ft1_filtered_4FGL_J0257.9-1215_daily_bin174.fits.....................!
real 65.50
user 56.92
sys 5.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/967474/ft1_filtered_4FGL_J0257.9-1215_daily_bin174.fits', '/scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits', expMap='/scratch/kocevski/967474/expmap_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.fits', expCube='/scratch/kocevski/967474/ltcube_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/967474/Model_4FGL_J0257.9-1215_daily_bin174.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0257.9-1215'

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  2.140e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  5.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/967474/ft1_filtered_4FGL_J0257.9-1215_daily_bin174.fits
Spacecraft file(s): /scratch/kocevski/967474/ft2_4FGL_J0257.9-1215_daily_bin174.fits
Exposure map: /scratch/kocevski/967474/expmap_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.fits
Exposure cube: /scratch/kocevski/967474/ltcube_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/967474/Model_4FGL_J0257.9-1215_daily_bin174.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) = 4987.37322568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6949       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.704       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    133.85       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.131       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2716       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2153       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.231       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3689       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.991       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.4304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.476       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .78370       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82447       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4987.360     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2350 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6943        13.371        .15962E-06   -.43640E-05
   2  Prefactor     12.686        22.646        .72705E-06   -.18912E-05
   3  Prefactor     .10000E-03    6.2778       -.71614E-08** at limit **
   4  norm          133.97        124.34       -.12830E-05    .26541E-04
   5  Prefactor     12.094        52.911        .67058E-06   -.82372E-05
   6  Prefactor     7.2712        9.1445        .11849E-05   -.27422E-04
   7  Prefactor     .10000E-03    16.224        .76145E-07** at limit **
   8  Prefactor     .10000E-03    15.957        .24090E-07** at limit **
   9  norm          1.2152        1.1063        .94904E-08   -.33152E-05
  10  Prefactor     15.230        8.6515        .32053E-06   -.26800E-04
  11  Prefactor     .10000E-03    41.035        .67304E-07** at limit **
  12  norm          2.3690        2.4772       -.30237E-07    .43114E-05
  13  Prefactor     10.990        12.135        .15540E-05   -.35009E-04
  14  Prefactor     .10000E-03    9.1802        .61732E-07** at limit **
  15  Prefactor     3.4302        4.1201        .13091E-06   -.24961E-04
  16  Prefactor     .10000E-03    58.754        .42680E-07** at limit **
  17  Prefactor     .10000E-03    1.1735        .24052E-07** at limit **
  18  Prefactor     .10000E-03    6.5614        .84758E-07** at limit **
  19  Prefactor     26.474        14.952        .38004E-06   -.16408E-04
  20  Prefactor     .10000E-03    14.080        .24653E-07** at limit **
  21  Normalizat    .78384        .17779        .22596E-06   -.45673E-04
  22  Prefactor     .82438        .14298       -.10481E-05    .27383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.69434
  Prefactor  = 12.6865
  Prefactor  = 0.0001
  norm       = 133.969
  Prefactor  = 12.0938
  Prefactor  = 7.2712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21525
  Prefactor  = 15.2304
  Prefactor  = 0.0001
  norm       = 2.369
  Prefactor  = 10.9902
  Prefactor  = 0.0001
  Prefactor  = 3.43023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.4738
  Prefactor  = 0.0001
  Normalizat = 0.78384
  Prefactor  = 0.824382
 **********
 **   18 **HESSE 
 **********

 FCN=   4987.360     FROM HESSE     STATUS=OK           344 CALLS     2694 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6943        13.366        .14456E-03   -1.5153    
   2  Prefactor     12.686        22.502        .11238E-03   -1.4995    
   3  Prefactor     .10000E-03    6.2788        .17282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          133.97        122.90        .17404E-03   -1.3388    
   5  Prefactor     12.094        52.906        .11501E-03   -1.5012    
   6  Prefactor     7.2712        9.1776        .74372E-03   -1.5169    
   7  Prefactor     .10000E-03    16.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2152        1.1064        .40981E-04   -1.5487    
  10  Prefactor     15.230        8.6608        .51313E-03   -1.4927    
  11  Prefactor     .10000E-03    41.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3690        2.4846        .11086E-03   -1.5400    
  13  Prefactor     10.990        12.163        .60424E-03   -1.5045    
  14  Prefactor     .10000E-03    9.2234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4302        4.1058        .15017E-03   -1.5338    
  16  Prefactor     .10000E-03    58.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1755        .74713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.5859        .17668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     26.474        14.982        .38928E-03   -1.4678    
  20  Prefactor     .10000E-03    14.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .78384        .20433        .25191E-03   -1.0067    
  22  Prefactor     .82438        .16207        .20350E-03   -.98836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53975e-11
Minuit parameter uncertainties:
  1  13.3716
  2  22.5173
  3  1.73148e-07
  4  123.134
  5  50.6652
  6  9.17939
  7  2.19324e-05
  8  3.03997e-06
  9  1.10643
  10  8.66148
  11  4.17328e-06
  12  2.48474
  13  12.1653
  14  4.74887e-06
  15  4.10611
  16  1.38883e-05
  17  6.27122e-07
  18  2.56856e-06
  19  14.9846
  20  1.54672e-07
  21  0.204533
  22  0.162168
Done.

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

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.523e+01  8.661e+00  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  2.648e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  5.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  8.244e-01  1.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  7.838e-01  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.55
Ra Dec: 44.492 -12.264
Photon Index (Fixed Index): 2.65 +/- 0.00
Photon Flux (Fixed Index): 7.30e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.04e-05

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) = 4985.62028867
delta logL = 1.73988381672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4985.59138906
delta logL = 1.768783422

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4985.591     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      203 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.737        9.6291        .23775E-02   -.23582E-02
   2  Index         1.8082        .31680        .13739       -.54753E-04
   3  Normalizat    .82489        .16774        .43934E-01    .12341E-04
   4  Prefactor     .79877        .13917        .43701E-01    .76571E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.737
  Index      = 1.80823
  Normalizat = 0.824888
  Prefactor  = 0.79877
 **********
 **   18 **HESSE 
 **********

 FCN=   4985.591     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.737        10.648        .47550E-03   -1.4865    
   2  Index         1.8082        .37628        .56614E-02   -.69236    
   3  Normalizat    .82489        .19318        .24604E-03   -.99152    
   4  Prefactor     .79877        .16019        .20608E-03   -.99774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12461e-09
Minuit parameter uncertainties:
  1  10.6492
  2  0.376878
  3  0.19334
  4  0.16028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/967474': 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) = 4985.59138903
delta logL = 1.76878345371

Extracting fit parameters...

4FGL J0257.9-1215
   Spectrum: PowerLaw
264    Prefactor:  1.774e+01  1.065e+01  1.000e-04  1.000e+04 ( 1.000e-12)
265        Index:  1.808e+00  3.769e-01  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  5.205e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  7.988e-01  1.603e-01  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  8.249e-01  1.933e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.11
Ra Dec: 44.492 -12.264
Photon Index (Free Index): 1.81 +/- 0.38
Photon Flux (Free Index): 4.32e-08 +/- 2.97e-08
Energy Flux (Free Index): 5.04e-05 +/- 4.47e-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/967474/cmap_HighResolution_284428801_284688001_4FGL_J0257.9-1215_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.30e-08', energy_flux2='5.04e-05', photon_flux_error='4.15e-08', dlogl='1.77e+00', energy_flux='1.83e-05', photon_flux2='4.32e-08', job_status='DONE', time_completed='2021-08-17 05:09:29.604100', photon_index_error2='0.38', photon_index2='1.81', ts='7.55', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='4.47e-05', EG='0.78', time_epoch_completed='1629202169.6', return_code='0', job_id='967474', GAL2='0.80', EG2='0.82', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='2.97e-08', ts2='11.11', photon_index='2.65' WHERE bin_id='174' AND source_name='4FGL J0257.9-1215' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 05:09:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 967474: <4FGL_J0257.9-1215_daily_bin174> in cluster <slac> Done

Job <4FGL_J0257.9-1215_daily_bin174> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 17 04:53:29 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:55:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 17 04:55:53 2021
Terminated at Tue Aug 17 05:09:30 2021
Results reported at Tue Aug 17 05:09:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0257.9-1215_daily_bin174 44.492 -12.2637 284428801 284688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0257.9-1215 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   622.30 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             269.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            961 sec.

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

