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


Performing analysis on: 4FGL_J0128.5+4440_daily_bin1616
RA = 22.1438, Dec = 44.6777
tmin = 658195201, tmax = 658454401
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='139597', job_status='RUN', time_executed='2021-12-07 12:07:33.558149', time_epoch_executed='1638907653.56' WHERE source_name='4FGL J0128.5+4440' and cadence='daily' and bin_id='1616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/139597

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/139597/ft1_4FGL_J0128.5+4440_daily_bin1616.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/139597/ft1_4FGL_J0128.5+4440_daily_bin1616.fits outfile=/scratch/kocevski/139597/ft1_filteredMKT_4FGL_J0128.5+4440_daily_bin1616.fits ra=22.1438 dec=44.6777 rad=12.0 tmin=658195201.0 tmax=658454401.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 4.67
user 4.43
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.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/139597/ft1_filteredMKT_4FGL_J0128.5+4440_daily_bin1616.fits evtable="EVENTS" outfile="/scratch/kocevski/139597/ft1_filtered_4FGL_J0128.5+4440_daily_bin1616.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/139597/ft1_filtered_4FGL_J0128.5+4440_daily_bin1616.fits" evtable="EVENTS" scfile=/scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits sctable="SC_DATA" outfile=/scratch/kocevski/139597/ltcube_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.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/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits
.....................!
real 13.51
user 13.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/139597/ft1_filtered_4FGL_J0128.5+4440_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits sctable="SC_DATA" expcube=/scratch/kocevski/139597/ltcube_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.fits outfile=/scratch/kocevski/139597/expmap_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.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/139597/ltcube_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.fits
.....................!
real 191.38
user 185.83
sys 4.80

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
Extended source HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 171 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0128.5+4440 @ 22.1438 44.6777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/139597/ft1_filtered_4FGL_J0128.5+4440_daily_bin1616.fits scfile=/scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits outfile=/scratch/kocevski/139597/cmap_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.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=22.1438 yref=44.6777 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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/139597/ft1_filtered_4FGL_J0128.5+4440_daily_bin1616.fits scfile=/scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits outfile=/scratch/kocevski/139597/cmap_HighResolution_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.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=22.1438 yref=44.6777 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/139597/ft1_filtered_4FGL_J0128.5+4440_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/139597/Model_4FGL_J0128.5+4440_daily_bin1616.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
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/139597/ft1_filtered_4FGL_J0128.5+4440_daily_bin1616.fits.....................!
real 101.55
user 100.03
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/139597/ft1_filtered_4FGL_J0128.5+4440_daily_bin1616.fits', '/scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits', expMap='/scratch/kocevski/139597/expmap_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.fits', expCube='/scratch/kocevski/139597/ltcube_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/139597/Model_4FGL_J0128.5+4440_daily_bin1616.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0128.5+4440'

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  2.926e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
247        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
248        Scale:  2.341e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/139597/ft1_filtered_4FGL_J0128.5+4440_daily_bin1616.fits
Spacecraft file(s): /scratch/kocevski/139597/ft2_4FGL_J0128.5+4440_daily_bin1616.fits
Exposure map: /scratch/kocevski/139597/expmap_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.fits
Exposure cube: /scratch/kocevski/139597/ltcube_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/139597/Model_4FGL_J0128.5+4440_daily_bin1616.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) = 8965.65659176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4590       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.904       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4637       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.2914       1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.836       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0978       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12535E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .65608       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75675       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1400       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8965.655     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2209 TOTAL
                     EDM=   .97E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4589        2.8890        .69528E-07   -.23418E-04
   2  Prefactor     .10000E-03    9.6680        .79937E-06** at limit **
   3  Prefactor     24.902        31.640       -.21155E-06   -.16589E-06
   4  Prefactor     .10000E-03    32.699       -.32061E-05** at limit **
   5  Prefactor     3.4631        6.0180        .28885E-05   -.43169E-04
   6  Prefactor     .10000E-03    3.3251        .35040E-07** at limit **
   7  norm          7.2915        26.615        .92339E-06   -.14651E-05
   8  Prefactor     51.837        24.253       -.70749E-07   -.73680E-05
   9  Prefactor     .10000E-03    26.480        .27713E-05** at limit **
  10  norm          .10000E-03    1.1554       -.19622E-06** at limit **
  11  Prefactor     4.0768        81.718        .75458E-05    .38488E-05
  12  Prefactor     .10000E-03    12.521       -.72338E-06** at limit **
  13  norm          .10000E-03    .49222        .20208E-07** at limit **
  14  norm          .10000E-03    .33234       -.31188E-06** at limit **
  15  Prefactor     .10000E-03    5.4729       -.38997E-07** at limit **
  16  Prefactor     .10000E-03    8.0451       -.58344E-06** at limit **
  17  Prefactor     .10000E-03    1.7493       -.21193E-06** at limit **
  18  Prefactor     .10000E-03    72.163        .17204E-05** at limit **
  19  norm          .65609        .37715        .29377E-07    .48538E-04
  20  Normalizat    .75679        .22377       -.15939E-05   -.10967E-04
  21  Prefactor     1.1399        .84389E-01    .40125E-07   -.46370E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.45885
  Prefactor  = 0.0001
  Prefactor  = 24.9021
  Prefactor  = 0.0001
  Prefactor  = 3.46314
  Prefactor  = 0.0001
  norm       = 7.29147
  Prefactor  = 51.8366
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.07678
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.656088
  Normalizat = 0.756786
  Prefactor  = 1.13995
 **********
 **   18 **HESSE 
 **********

 FCN=   8965.655     FROM HESSE     STATUS=OK           313 CALLS     2522 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4589        2.8749        .16919E-03   -1.5394    
   2  Prefactor     .10000E-03    9.6944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     24.902        31.638        .80271E-04   -1.4710    
   4  Prefactor     .10000E-03    32.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.4631        6.0322        .10865E-02   -1.5336    
   6  Prefactor     .10000E-03    3.3364        .16859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.2915        26.637        .74270E-03   -1.5168    
   8  Prefactor     51.837        24.259        .55705E-04   -1.4267    
   9  Prefactor     .10000E-03    26.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.1645        .99462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.0768        82.186        .19915E-03   -1.5304    
  12  Prefactor     .10000E-03    12.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .50225        .64865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .35129        .10698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.0605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.2800        .23486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    72.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .65609        .37237        .42432E-04   -1.5546    
  20  Normalizat    .75679        .23293        .45837E-03   -1.0169    
  21  Prefactor     1.1399        .90675E-01    .15205E-03   -.88200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16583e-10
Minuit parameter uncertainties:
  1  2.87502
  2  1.32121e-05
  3  31.6596
  4  0.00015968
  5  6.03324
  6  1.17717e-06
  7  26.6802
  8  24.2636
  9  9.84897e-05
  10  8.34356e-06
  11  36.6664
  12  8.8411e-06
  13  6.76442e-07
  14  6.85654e-06
  15  1.53581e-06
  16  2.41421e-05
  17  0.000203131
  18  5.85348e-05
  19  0.372371
  20  0.233231
  21  0.0906878
Done.

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

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  1.000e-04  8.841e-06  1.000e-04  1.000e+04 ( 1.000e-14)
247        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
248        Scale:  2.341e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.140e+00  9.069e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  7.568e-01  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 22.144 44.678
Photon Flux Upper Limit: 4.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/139597/likelihoodResults_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.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) = 8965.65526342
delta logL = -0.000380086863515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8965.65488328
delta logL = 5.47497620573e-08

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8965.655     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    552.67        .90712E-02** at limit **
   2  Index         2.0779        5.4521        .50000        .16145E-04
   3  Normalizat    .75679        .39791E-01    .10340        .53339E-04
   4  Prefactor     1.1399        .15984E-01    .36235E-01    .75425E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.07791
  Normalizat = 0.756786
  Prefactor  = 1.13995
 **********
 **   18 **HESSE 
 **********

 FCN=   8965.655     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0779        6.0352        .50000       -.62416    
   3  Normalizat    .75679        .22239        .45837E-03   -1.0169    
   4  Prefactor     1.1399        .89749E-01    .15205E-03   -.88200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.47577e-10
Minuit parameter uncertainties:
  1  0.000385542
  2  4.06294
  3  0.222655
  4  0.0897614
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/139597': 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) = 8965.65488311
delta logL = 2.25398252951e-07

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  1.000e-04  3.855e-04  1.000e-04  1.000e+04 ( 1.000e-14)
247        Index:  2.078e+00  4.063e+00  0.000e+00  1.000e+01 (-1.000e+00)
248        Scale:  2.341e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.140e+00  8.976e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  7.568e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 22.144 44.678

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/139597/cmap_HighResolution_658195201_658454401_4FGL_J0128.5+4440_daily_bin1616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.74e-03', job_status='DONE', photon_flux_upper_limit='4.94e-08', time_completed='2021-12-07 12:20:46.012363', job_id='139597', GAL2='1.14', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1638908446.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='2.25e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1616' AND source_name='4FGL J0128.5+4440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:20:46 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 139597: <4FGL_J0128.5+4440_daily_bin1616> in cluster <slac> Done

Job <4FGL_J0128.5+4440_daily_bin1616> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Dec  7 12:05:29 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:07:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 12:07:28 2021
Terminated at Tue Dec  7 12:20:46 2021
Results reported at Tue Dec  7 12:20:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0128.5+4440_daily_bin1616 22.1438 44.6777 658195201 658454401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0128.5+4440 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   791.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            917 sec.

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

