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


Performing analysis on: 4FGL_J1023.1+3949_daily_bin404
RA = 155.788, Dec = 39.8226
tmin = 344044801, tmax = 344304001
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='834387', job_status='RUN', time_executed='2021-09-01 19:11:16.634309', time_epoch_executed='1630548676.63' WHERE source_name='4FGL J1023.1+3949' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834387

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834387/ft1_4FGL_J1023.1+3949_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834387/ft1_4FGL_J1023.1+3949_daily_bin404.fits outfile=/scratch/kocevski/834387/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin404.fits ra=155.788 dec=39.8226 rad=12.0 tmin=344044801.0 tmax=344304001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.45
user 3.22
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.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/834387/ft1_filteredMKT_4FGL_J1023.1+3949_daily_bin404.fits evtable="EVENTS" outfile="/scratch/kocevski/834387/ft1_filtered_4FGL_J1023.1+3949_daily_bin404.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834387/ft1_filtered_4FGL_J1023.1+3949_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/834387/ltcube_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.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/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits
.....................!
real 11.71
user 11.38
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834387/ft1_filtered_4FGL_J1023.1+3949_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/834387/ltcube_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.fits outfile=/scratch/kocevski/834387/expmap_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.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/834387/ltcube_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.fits
.....................!
real 190.42
user 185.48
sys 4.53

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 207 point sources and 0 extended sources

Setting source of interest to:
4FGL J1023.1+3949 @ 155.788 39.8226

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/834387/ft1_filtered_4FGL_J1023.1+3949_daily_bin404.fits scfile=/scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits outfile=/scratch/kocevski/834387/cmap_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.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=155.788 yref=39.8226 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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834387/ft1_filtered_4FGL_J1023.1+3949_daily_bin404.fits scfile=/scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits outfile=/scratch/kocevski/834387/cmap_HighResolution_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.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=155.788 yref=39.8226 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834387/ft1_filtered_4FGL_J1023.1+3949_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834387/Model_4FGL_J1023.1+3949_daily_bin404.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/834387/ft1_filtered_4FGL_J1023.1+3949_daily_bin404.fits.....................!
real 51.12
user 49.83
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834387/ft1_filtered_4FGL_J1023.1+3949_daily_bin404.fits', '/scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits', expMap='/scratch/kocevski/834387/expmap_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.fits', expCube='/scratch/kocevski/834387/ltcube_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834387/Model_4FGL_J1023.1+3949_daily_bin404.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1023.1+3949'

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  9.888e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/834387/ft1_filtered_4FGL_J1023.1+3949_daily_bin404.fits
Spacecraft file(s): /scratch/kocevski/834387/ft2_4FGL_J1023.1+3949_daily_bin404.fits
Exposure map: /scratch/kocevski/834387/expmap_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.fits
Exposure cube: /scratch/kocevski/834387/ltcube_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834387/Model_4FGL_J1023.1+3949_daily_bin404.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) = 5974.16024743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .87459E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5450       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.457       1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.299       1.0000         .10000E-03   10000.    
     7 'norm      '    15.603       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18401       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.468       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3367       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.685       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.132       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1180       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    13.706       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .71563       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5974.155     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     4014 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6718        .70923E-06** at limit **
   2  Prefactor     .10000E-03    1.5435       -.26329E-06** at limit **
   3  norm          .10102E-03    16.869       -.67980E-05** at limit **
   4  Prefactor     1.5345        148.42        .24103E-04    .14021E-03
   5  Prefactor     25.457        36.345        .51852E-05    .34262E-03
   6  Prefactor     23.301        13.091       -.11976E-05   -.81372E-04
   7  norm          15.602        12.401        .22701E-06   -.11875E-04
   8  Prefactor     .10000E-03    3.6506       -.30599E-06** at limit **
   9  Prefactor     .10000E-03    1.0565       -.84716E-08** at limit **
  10  Prefactor     .18047        1.9657        .16312E-06   -.22715E-03
  11  Prefactor     .10000E-03    20.424        .34422E-05** at limit **
  12  norm          .10000E-03    1.1996        .38244E-07** at limit **
  13  Prefactor     .10000E-03    3.7405        .74701E-06** at limit **
  14  norm          .10000E-03    4.4245       -.82835E-06** at limit **
  15  Prefactor     .10000E-03    17.535       -.69675E-05** at limit **
  16  Prefactor     10.466        15.966        .16559E-05   -.28089E-04
  17  Prefactor     2.3358        4.2103        .27141E-05   -.68268E-03
  18  Prefactor     .10000E-03    2.1349        .40226E-08** at limit **
  19  Prefactor     .10000E-03    11.232       -.76256E-06** at limit **
  20  Prefactor     19.676        151.30       -.19906E-04   -.20786E-05
  21  Prefactor     13.134        26.547       -.19193E-05   -.26199E-04
  22  Prefactor     .10000E-03    16.662       -.30946E-05** at limit **
  23  norm          1.1180        .30214       -.12649E-07   -.12420E-02
  24  Prefactor     .10000E-03    15.209        .67431E-05** at limit **
  25  Prefactor     .10000E-03    8.8384       -.10771E-06** at limit **
  26  norm          13.703        14.473        .16747E-05   -.13888E-03
  27  Normalizat    .71574        .16166       -.23371E-05    .86680E-04
  28  Prefactor     1.1855        .19500        .63684E-06    .61773E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101019
  Prefactor  = 1.5345
  Prefactor  = 25.457
  Prefactor  = 23.3015
  norm       = 15.6022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.180474
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.466
  Prefactor  = 2.33582
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6759
  Prefactor  = 13.1337
  Prefactor  = 0.0001
  norm       = 1.11795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7026
  Normalizat = 0.71574
  Prefactor  = 1.18546
 **********
 **   18 **HESSE 
 **********

 FCN=   5974.155     FROM HESSE     STATUS=OK           527 CALLS     4541 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6959        .16308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7599        .18488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10102E-03    19.471        .89888E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5345        141.61        .34287E-03   -1.5460    
   5  Prefactor     25.457        36.119        .79396E-04   -1.4698    
   6  Prefactor     23.301        13.112        .82984E-04   -1.4742    
   7  norm          15.602        12.403        .10140E-03   -1.4918    
   8  Prefactor     .10000E-03    3.6775        .14414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.0678        .77558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .18047        20.330        .19717E-02   -1.5623    
  11  Prefactor     .10000E-03    20.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2129        .82630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8524        .28971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.4590        .15879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.466        15.929        .12384E-03   -1.5061    
  17  Prefactor     2.3358        4.0824        .19459E-03   -1.5402    
  18  Prefactor     .10000E-03    2.1584        .11009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.676        151.44        .90273E-04   -1.4821    
  21  Prefactor     13.134        26.570        .11053E-03   -1.4983    
  22  Prefactor     .10000E-03    16.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1180        .30196        .21227E-04   -1.5497    
  24  Prefactor     .10000E-03    15.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.8668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          13.703        14.403        .10819E-03   -1.4967    
  27  Normalizat    .71574        .19064        .24789E-03   -1.0327    
  28  Prefactor     1.1855        .23134        .25225E-03   -.86780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66516e-09
Minuit parameter uncertainties:
  1  4.53572e-06
  2  4.90321e-05
  3  0.00891063
  4  29.5531
  5  36.1505
  6  13.1135
  7  12.4053
  8  5.98042e-06
  9  3.23804e-06
  10  3.83126
  11  6.75128e-05
  12  3.61605e-06
  13  3.17581e-06
  14  2.37391e-05
  15  1.1538e-05
  16  15.935
  17  4.08286
  18  1.02501e-05
  19  2.428e-05
  20  109.56
  21  26.594
  22  1.01368e-06
  23  0.301961
  24  5.82538e-05
  25  5.85906e-06
  26  14.4067
  27  0.190813
  28  0.231536
Done.

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

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  2.374e-05  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.250e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.185e+00  2.315e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  7.157e-01  1.908e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 155.788 39.823
Photon Flux Upper Limit: 4.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834387/likelihoodResults_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.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) = 5974.15591054
delta logL = -0.00106732299719

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5974.15484323
delta logL = -8.5165083874e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2551       1.0000          .0000       5.0000    
     3 'Normalizat'    .71575       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1855       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+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.

 FCN=   5974.155     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      241 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    531.30        .15891E-02** at limit **
   2  alpha         2.5133        2.9852        .50000       -.50704E-08
   3  Normalizat    .71574        .48583E-01    .24789E-03   -.15134E-03
   4  Prefactor     1.1855        .62427E-01    .25225E-03   -.15244E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.51332
  Normalizat = 0.715739
  Prefactor  = 1.18546
 **********
 **   18 **HESSE 
 **********

 FCN=   5974.155     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.7857        .31783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5133        3.5796        .50000        .53280E-02
   3  Normalizat    .71574        .17749        .99156E-05   -1.0327    
   4  Prefactor     1.1855        .22806        .50450E-04   -.86780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76735e-11
Minuit parameter uncertainties:
  1  9.93547e-06
  2  379.579
  3  0.17763
  4  0.228253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834387': 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) = 5974.15484295
delta logL = 2.67736140813e-07

Extracting fit parameters...

4FGL J1023.1+3949
   Spectrum: LogParabola
329         norm:  1.000e-04  9.935e-06  1.000e-04  1.000e+04 ( 1.000e-12)
330        alpha:  2.513e+00  3.796e+02  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.077e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  5.203e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  1.185e+00  2.283e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  7.157e-01  1.776e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 155.788 39.823

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/834387/cmap_HighResolution_344044801_344304001_4FGL_J1023.1+3949_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-05', job_status='DONE', photon_flux_upper_limit='4.62e-08', time_completed='2021-09-01 19:25:45.108961', job_id='834387', GAL2='1.19', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630549545.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='2.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='404' AND source_name='4FGL J1023.1+3949' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 19:25:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 834387: <4FGL_J1023.1+3949_daily_bin404> in cluster <slac> Done

Job <4FGL_J1023.1+3949_daily_bin404> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  1 19:11:01 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 19:11:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 19:11:02 2021
Terminated at Wed Sep  1 19:25:45 2021
Results reported at Wed Sep  1 19:25:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1023.1+3949_daily_bin404 155.788 39.8226 344044801 344304001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1023.1+3949 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   864.09 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            884 sec.

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

