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


Performing analysis on: 4FGL_J0256.3+0334_daily_bin99
RA = 44.0964, Dec = 3.5698
tmin = 264988801, tmax = 265248001
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='955572', job_status='RUN', time_executed='2021-08-17 04:18:46.644280', time_epoch_executed='1629199126.64' WHERE source_name='4FGL J0256.3+0334' and cadence='daily' and bin_id='99'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955572/ft1_4FGL_J0256.3+0334_daily_bin99.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955572/ft1_4FGL_J0256.3+0334_daily_bin99.fits outfile=/scratch/kocevski/955572/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin99.fits ra=44.0964 dec=3.5698 rad=12.0 tmin=264988801.0 tmax=265248001.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 2.00
user 1.30
sys 0.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.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/955572/ft1_filteredMKT_4FGL_J0256.3+0334_daily_bin99.fits evtable="EVENTS" outfile="/scratch/kocevski/955572/ft1_filtered_4FGL_J0256.3+0334_daily_bin99.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.88
user 0.34
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955572/ft1_filtered_4FGL_J0256.3+0334_daily_bin99.fits" evtable="EVENTS" scfile=/scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits sctable="SC_DATA" outfile=/scratch/kocevski/955572/ltcube_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.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/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits
.....................!
real 14.63
user 13.99
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955572/ft1_filtered_4FGL_J0256.3+0334_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits sctable="SC_DATA" expcube=/scratch/kocevski/955572/ltcube_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.fits outfile=/scratch/kocevski/955572/expmap_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.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/955572/ltcube_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.fits
.....................!
real 194.59
user 187.31
sys 5.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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J0256.3+0334 @ 44.0964 3.5698

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/955572/ft1_filtered_4FGL_J0256.3+0334_daily_bin99.fits scfile=/scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits outfile=/scratch/kocevski/955572/cmap_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.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.0964 yref=3.5698 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.87
user 0.37
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955572/ft1_filtered_4FGL_J0256.3+0334_daily_bin99.fits scfile=/scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits outfile=/scratch/kocevski/955572/cmap_HighResolution_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.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.0964 yref=3.5698 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.85
user 0.38
sys 0.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/955572/ft1_filtered_4FGL_J0256.3+0334_daily_bin99.fits evtable="EVENTS" scfile=/scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/955572/Model_4FGL_J0256.3+0334_daily_bin99.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/955572/ft1_filtered_4FGL_J0256.3+0334_daily_bin99.fits.....................!
real 100.57
user 98.27
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/955572/ft1_filtered_4FGL_J0256.3+0334_daily_bin99.fits', '/scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits', expMap='/scratch/kocevski/955572/expmap_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.fits', expCube='/scratch/kocevski/955572/ltcube_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/955572/Model_4FGL_J0256.3+0334_daily_bin99.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0256.3+0334'

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.009e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  2.192e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/955572/ft1_filtered_4FGL_J0256.3+0334_daily_bin99.fits
Spacecraft file(s): /scratch/kocevski/955572/ft2_4FGL_J0256.3+0334_daily_bin99.fits
Exposure map: /scratch/kocevski/955572/expmap_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.fits
Exposure cube: /scratch/kocevski/955572/ltcube_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/955572/Model_4FGL_J0256.3+0334_daily_bin99.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) = 7933.81269575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1798       1.0000         .10000E-03   10000.    
     2 'norm      '    .47438       1.0000         .10000E-03   10000.    
     3 'Prefactor '    40.370       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.866       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.5240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.4882       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .88362E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.656       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7404       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8925       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6870       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.2035       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4503       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    70.774       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.9954       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96142       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7933.795     FROM MIGRAD    STATUS=CONVERGED     96 CALLS     2445 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1830        2.7384       -.38209E-06   -.24192E-03
   2  norm          .47482        .80180       -.82029E-07    .55917E-03
   3  Prefactor     40.311        6.0663       -.31980E-05    .93725E-02
   4  Prefactor     34.859        1.6330        .88990E-06   -.14819E-02
   5  Prefactor     2.5254        1.7926       -.10157E-05   -.97457E-03
   6  Prefactor     1.5300        26.235        .41124E-04   -.89988E-03
   7  Prefactor     .10166E-03    324.87        .13790E-04** at limit **
   8  Prefactor     .10002E-03    9.6761       -.72860E-05** at limit **
   9  Prefactor     28.649        3.2278        .23150E-05    .60580E-03
  10  norm          2.7429        3.5901        .13748E-05   -.15229E-02
  11  Prefactor     .10000E-03    3.7742        .33983E-07** at limit **
  12  Prefactor     .10001E-03    7.8830       -.62182E-05** at limit **
  13  Prefactor     .10000E-03    4.8442        .48785E-05** at limit **
  14  Prefactor     .10000E-03    2.4155        .92484E-06** at limit **
  15  norm          4.8910        2.2553        .31050E-05    .15444E-02
  16  norm          1.6861        3.1411       -.64056E-06   -.79914E-03
  17  Prefactor     7.2035        8.5645       -.12131E-04   -.47815E-02
  18  Prefactor     2.4498        3.5751       -.72139E-05   -.79024E-03
  19  norm          .10000E-03    2.4249       -.82167E-06** at limit **
  20  Prefactor     70.783        5.5549       -.27547E-05    .52235E-02
  21  Prefactor     .10004E-03    4.4680        .67744E-05** at limit **
  22  Prefactor     4.9940        1.0410        .11692E-06    .11604E-02
  23  Prefactor     .10000E-03    5.5197       -.93543E-07** at limit **
  24  Normalizat    1.0619        .19599        .14616E-05   -.15288E-03
  25  Prefactor     .96167        .94741E-01   -.54145E-06   -.27491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.18296
  norm       = 0.474821
  Prefactor  = 40.3113
  Prefactor  = 34.8588
  Prefactor  = 2.52535
  Prefactor  = 1.52999
  Prefactor  = 0.000101663
  Prefactor  = 0.000100021
  Prefactor  = 28.6493
  norm       = 2.74287
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.89099
  norm       = 1.68615
  Prefactor  = 7.20351
  Prefactor  = 2.44978
  norm       = 0.0001
  Prefactor  = 70.7831
  Prefactor  = 0.00010004
  Prefactor  = 4.99395
  Prefactor  = 0.0001
  Normalizat = 1.06194
  Prefactor  = 0.961665
 **********
 **   18 **HESSE 
 **********

 FCN=   7933.795     FROM HESSE     STATUS=OK           483 CALLS     2928 TOTAL
                     EDM=   .70E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1830        2.9083        .69711E-02   -1.5412    
   2  norm          .47482        .80155        .11166E-02   -1.5570    
   3  Prefactor     40.311        36.051        .15772E-02   -1.4437    
   4  Prefactor     34.859        54.009        .16967E-02   -1.4526    
   5  Prefactor     2.5254        8.5462        .64282E-02   -1.5390    
   6  Prefactor     1.5300        86.974        .87878E-02   -1.5461    
   7  Prefactor     .10166E-03    5.0325        .94556E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    10.584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.649        23.262        .18710E-02   -1.4637    
  10  norm          2.7429        7.5305        .61486E-02   -1.5377    
  11  Prefactor     .10000E-03    3.7661        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    8.5987        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.7165        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8910        11.100        .45462E-02   -1.5266    
  16  norm          1.6861        3.1947        .81045E-02   -1.5448    
  17  Prefactor     7.2035        12.608        .37363E-02   -1.5171    
  18  Prefactor     2.4498        3.6142        .65331E-02   -1.5395    
  19  norm          .10000E-03    2.4227        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     70.783        22.146        .11929E-02   -1.4023    
  21  Prefactor     .10004E-03    9.2123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.9940        4.3133        .44982E-02   -1.5261    
  23  Prefactor     .10000E-03    5.4986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0619        .19301        .77406E-01   -.90983    
  25  Prefactor     .96167        .88364E-01    .45783E-01   -.94018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.99596e-07
Minuit parameter uncertainties:
  1  2.9085
  2  0.801564
  3  36.0702
  4  54.085
  5  8.55028
  6  23.1058
  7  0.00578616
  8  0.000938079
  9  23.2695
  10  7.53305
  11  2.26626e-06
  12  0.000672097
  13  9.70074e-05
  14  5.10558e-06
  15  11.1045
  16  3.19501
  17  12.6126
  18  3.6145
  19  9.09355e-06
  20  22.1484
  21  0.00121655
  22  4.31359
  23  1.77298e-05
  24  0.193135
  25  0.0883768
Done.

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

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  5.106e-06  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.086e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  2.192e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  9.617e-01  8.838e-02  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  1.062e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 44.096 3.570
Photon Flux Upper Limit: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955572/likelihoodResults_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.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) = 7933.79687758
delta logL = -0.00196773289463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7933.79490954
delta logL = 3.045252015e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7933.795     FROM MIGRAD    STATUS=FAILED        91 CALLS      244 TOTAL
                     EDM=   .74E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10378E-03    1.0219        .13750E-01** at limit **
   2  Index         1.7423        5.3420        .50000        .20251E-04
   3  Normalizat    1.0619        .31597E-02    .34260E-03   -.94506E-04
   4  Prefactor     .96167        .15495E-02    .17446E-03   -.17380E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7933.795     FROM SIMPLEX   STATUS=PROGRESS      87 CALLS      331 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10184E-03    1.0219        .20050E-03** at limit **
   2  Index         1.7084        5.3420        .12447E-01    .20251E-04
   3  Normalizat    1.0619        .31597E-02    .17635E-04   -.94506E-04
   4  Prefactor     .96164        .15495E-02    .11667E-04   -.17380E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7933.795     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      406 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    487.56        .29989E-03** at limit **
   2  Index         1.6249        7.2596        .50000        .23555E-06
   3  Normalizat    1.0619        .90718E-01    .27408E-05   -.14103E-04
   4  Prefactor     .96166        .44233E-01    .69786E-05   -.35547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.62494
  Normalizat = 1.06194
  Prefactor  = 0.961664
 **********
 **   18 **HESSE 
 **********

 FCN=   7933.795     FROM HESSE     STATUS=OK            27 CALLS      433 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6697        .59977E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6249        9.0562        .50000       -.74098    
   3  Normalizat    1.0619        .19262        .54816E-06   -.90983    
   4  Prefactor     .96166        .94098E-01    .13957E-05   -.94018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68905e-10
Minuit parameter uncertainties:
  1  1.99891e-05
  2  129.344
  3  0.192744
  4  0.0941136
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955572': 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) = 7933.79490561
delta logL = 4.23758865509e-06

Extracting fit parameters...

4FGL J0256.3+0334
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.999e-05  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  1.625e+00  1.293e+02  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  2.192e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
487    Prefactor:  9.617e-01  9.411e-02  0.000e+00  1.000e+01 ( 1.000e+00)
488        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
489        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
486   Normalization:  1.062e+00  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 44.096 3.570

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/955572/cmap_HighResolution_264988801_265248001_4FGL_J0256.3+0334_daily_bin99.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.64e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-08-17 04:31:44.277255', job_id='955572', GAL2='0.96', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629199904.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='99' AND source_name='4FGL J0256.3+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 17 04:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 955572: <4FGL_J0256.3+0334_daily_bin99> in cluster <slac> Done

Job <4FGL_J0256.3+0334_daily_bin99> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 17 04:15:44 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 17 04:18:09 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:18:09 2021
Terminated at Tue Aug 17 04:31:45 2021
Results reported at Tue Aug 17 04:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0256.3+0334_daily_bin99 44.0964 3.5698 264988801 265248001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0256.3+0334 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   777.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             378.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            961 sec.

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

