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


Performing analysis on: 4FGL_J0128.5+4440_daily_bin686
RA = 22.1438, Dec = 44.6777
tmin = 417139201, tmax = 417398401
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='590712', job_status='RUN', time_executed='2021-08-14 01:34:13.527600', time_epoch_executed='1628930053.53' WHERE source_name='4FGL J0128.5+4440' and cadence='daily' and bin_id='686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590712

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590712/ft1_4FGL_J0128.5+4440_daily_bin686.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590712/ft2_4FGL_J0128.5+4440_daily_bin686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590712/ft1_4FGL_J0128.5+4440_daily_bin686.fits outfile=/scratch/kocevski/590712/ft1_filteredMKT_4FGL_J0128.5+4440_daily_bin686.fits ra=22.1438 dec=44.6777 rad=12.0 tmin=417139201.0 tmax=417398401.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 9.39
user 5.18
sys 2.61

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/590712/ft2_4FGL_J0128.5+4440_daily_bin686.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/590712/ft1_filteredMKT_4FGL_J0128.5+4440_daily_bin686.fits evtable="EVENTS" outfile="/scratch/kocevski/590712/ft1_filtered_4FGL_J0128.5+4440_daily_bin686.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 3.01
user 0.31
sys 2.55

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590712/ft1_filtered_4FGL_J0128.5+4440_daily_bin686.fits" evtable="EVENTS" scfile=/scratch/kocevski/590712/ft2_4FGL_J0128.5+4440_daily_bin686.fits sctable="SC_DATA" outfile=/scratch/kocevski/590712/ltcube_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.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/590712/ft2_4FGL_J0128.5+4440_daily_bin686.fits
.....................!
real 15.22
user 11.86
sys 3.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590712/ft1_filtered_4FGL_J0128.5+4440_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/590712/ft2_4FGL_J0128.5+4440_daily_bin686.fits sctable="SC_DATA" expcube=/scratch/kocevski/590712/ltcube_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.fits outfile=/scratch/kocevski/590712/expmap_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.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/590712/ltcube_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.fits
.....................!
real 197.52
user 184.31
sys 9.54

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/590712/ft1_filtered_4FGL_J0128.5+4440_daily_bin686.fits scfile=/scratch/kocevski/590712/ft2_4FGL_J0128.5+4440_daily_bin686.fits outfile=/scratch/kocevski/590712/cmap_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.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 2.93
user 0.36
sys 2.46

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590712/ft1_filtered_4FGL_J0128.5+4440_daily_bin686.fits scfile=/scratch/kocevski/590712/ft2_4FGL_J0128.5+4440_daily_bin686.fits outfile=/scratch/kocevski/590712/cmap_HighResolution_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.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 2.92
user 0.36
sys 2.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/590712/ft1_filtered_4FGL_J0128.5+4440_daily_bin686.fits evtable="EVENTS" scfile=/scratch/kocevski/590712/ft2_4FGL_J0128.5+4440_daily_bin686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/590712/Model_4FGL_J0128.5+4440_daily_bin686.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/590712/ft1_filtered_4FGL_J0128.5+4440_daily_bin686.fits.....................!
real 66.74
user 61.86
sys 4.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/590712/ft1_filtered_4FGL_J0128.5+4440_daily_bin686.fits', '/scratch/kocevski/590712/ft2_4FGL_J0128.5+4440_daily_bin686.fits', expMap='/scratch/kocevski/590712/expmap_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.fits', expCube='/scratch/kocevski/590712/ltcube_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/590712/Model_4FGL_J0128.5+4440_daily_bin686.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/590712/ft1_filtered_4FGL_J0128.5+4440_daily_bin686.fits
Spacecraft file(s): /scratch/kocevski/590712/ft2_4FGL_J0128.5+4440_daily_bin686.fits
Exposure map: /scratch/kocevski/590712/expmap_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.fits
Exposure cube: /scratch/kocevski/590712/ltcube_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/590712/Model_4FGL_J0128.5+4440_daily_bin686.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) = 5308.87807562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10587E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    77.904       1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.545       1.0000         .10000E-03   10000.    
     4 'Prefactor '    34.990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7251       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.978       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7497       1.0000         .10000E-03   10000.    
     9 'Prefactor '    75.469       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5120       1.0000         .10000E-03   10000.    
    11 'Prefactor '    102.26       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.964       1.0000         .10000E-03   10000.    
    13 'norm      '    1.6567       1.0000         .10000E-03   10000.    
    14 'norm      '    .71503       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2699       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .76518       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .87157       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .96316       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=   5308.848     FROM MIGRAD    STATUS=CONVERGED    438 CALLS     2293 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.788       -.10022E-05** at limit **
   2  Prefactor     77.897        49.001        .11432E-05    .39029E-04
   3  Prefactor     70.533        61.004       -.26404E-06    .93954E-05
   4  Prefactor     34.993        65.717       -.11322E-05    .42555E-05
   5  Prefactor     1.7172        19.318        .13038E-04   -.43507E-04
   6  Prefactor     11.965        15.661        .17671E-06    .13624E-04
   7  norm          .10000E-03    37.123       -.76580E-06** at limit **
   8  Prefactor     4.7425        21.161        .30913E-06    .12921E-05
   9  Prefactor     75.498        99.550       -.40291E-05   -.47116E-05
  10  norm          3.5126        5.1167        .99831E-07    .16006E-05
  11  Prefactor     102.25        59.479        .14949E-05    .89739E-05
  12  Prefactor     12.011        62.745       -.16516E-04   -.21486E-04
  13  norm          1.6567        1.4213       -.20628E-07   -.19327E-05
  14  norm          .71500        .89205        .12462E-06    .33137E-03
  15  Prefactor     .10000E-03    8.3801        .75690E-07** at limit **
  16  Prefactor     30.068        21.632        .17093E-05    .38859E-04
  17  Prefactor     2.2692        3.5578       -.22520E-06   -.78010E-04
  18  Prefactor     .10000E-03    20.827        .25803E-06** at limit **
  19  norm          .76517        .30881        .37538E-08    .15331E-04
  20  Normalizat    .87187        .29442       -.96905E-06    .37125E-04
  21  Prefactor     .96305        .10802        .94702E-07   -.16006E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 77.8966
  Prefactor  = 70.5334
  Prefactor  = 34.9934
  Prefactor  = 1.71718
  Prefactor  = 11.9648
  norm       = 0.0001
  Prefactor  = 4.7425
  Prefactor  = 75.4979
  norm       = 3.51256
  Prefactor  = 102.248
  Prefactor  = 12.0114
  norm       = 1.65673
  norm       = 0.715005
  Prefactor  = 0.0001
  Prefactor  = 30.0676
  Prefactor  = 2.26924
  Prefactor  = 0.0001
  norm       = 0.76517
  Normalizat = 0.871874
  Prefactor  = 0.963049
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.848     FROM HESSE     STATUS=OK           323 CALLS     2616 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.285        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     77.897        48.782        .45497E-04   -1.3940    
   3  Prefactor     70.533        61.151        .47794E-04   -1.4026    
   4  Prefactor     34.993        65.706        .67748E-04   -1.4524    
   5  Prefactor     1.7172        19.440        .15987E-02   -1.5446    
   6  Prefactor     11.965        15.674        .11574E-03   -1.5016    
   7  norm          .10000E-03    37.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7425        21.105        .18462E-03   -1.5272    
   9  Prefactor     75.498        99.469        .46220E-04   -1.3968    
  10  norm          3.5126        5.1059        .19088E-03   -1.5333    
  11  Prefactor     102.25        58.832        .39760E-04   -1.3682    
  12  Prefactor     12.011        62.677        .11582E-03   -1.5015    
  13  norm          1.6567        1.4306        .78361E-04   -1.5451    
  14  norm          .71500        .84958        .71789E-03   -1.5539    
  15  Prefactor     .10000E-03    8.4003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.068        21.642        .73047E-04   -1.4611    
  17  Prefactor     2.2692        3.5284        .15891E-03   -1.5407    
  18  Prefactor     .10000E-03    20.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .76517        .31093        .24998E-04   -1.5533    
  20  Normalizat    .87187        .32872        .42078E-03   -.97456    
  21  Prefactor     .96305        .12155        .16039E-03   -.93972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.38653e-11
Minuit parameter uncertainties:
  1  0.000128863
  2  48.8068
  3  61.2051
  4  65.8423
  5  11.5599
  6  15.679
  7  1.37141e-05
  8  20.0208
  9  99.6893
  10  5.10657
  11  58.8661
  12  54.9661
  13  1.43067
  14  0.849591
  15  6.05447e-06
  16  21.6478
  17  3.52868
  18  2.33548e-06
  19  0.310931
  20  0.329477
  21  0.121581
Done.

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

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  1.201e+01  5.497e+01  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:  9.630e-01  1.216e-01  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:  8.719e-01  3.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 22.144 44.678
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590712/likelihoodResults_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.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) = 5308.8476344
delta logL = 9.91848710328e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5308.84760725
delta logL = 0.000126328456645

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.445       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1054       1.0000          .0000       10.000    
     3 'Normalizat'    .87223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96301       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5308.848     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      253 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.457        90.283        .11355E-03   -.32439E-04
   2  Index         2.1049        1.7476        .12579E-01   -.22318E-04
   3  Normalizat    .87215        .29474        .42072E-03    .43024E-03
   4  Prefactor     .96299        .11820        .16040E-03    .10757E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4573
  Index      = 2.10492
  Normalizat = 0.872147
  Prefactor  = 0.962987
 **********
 **   18 **HESSE 
 **********

 FCN=   5308.848     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.457        78.093        .45420E-05   -1.5002    
   2  Index         2.1049        1.6334        .50318E-03   -.61752    
   3  Normalizat    .87215        .29482        .84144E-04   -.97446    
   4  Prefactor     .96299        .11821        .32080E-04   -.93974    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63795e-10
Minuit parameter uncertainties:
  1  62.5009
  2  1.68064
  3  0.295366
  4  0.118244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590712': 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) = 5308.84760685
delta logL = 0.000126732757053

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  1.246e+01  6.250e+01  1.000e-04  1.000e+04 ( 1.000e-14)
247        Index:  2.105e+00  1.681e+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:  9.630e-01  1.182e-01  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:  8.721e-01  2.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 22.144 44.678

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/590712/cmap_HighResolution_417139201_417398401_4FGL_J0128.5+4440_daily_bin686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.25e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-08-14 01:45:12.054661', job_id='590712', GAL2='0.96', fit_tolerance='1e-08', EG2='0.87', EG='0.87', time_epoch_completed='1628930712.05', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.27e-04', ts2='0.06', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='686' AND source_name='4FGL J0128.5+4440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:45:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 590712: <4FGL_J0128.5+4440_daily_bin686> in cluster <slac> Done

Job <4FGL_J0128.5+4440_daily_bin686> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 01:30:55 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:33:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 01:33:00 2021
Terminated at Sat Aug 14 01:45:13 2021
Results reported at Sat Aug 14 01:45:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0128.5+4440_daily_bin686 22.1438 44.6777 417139201 417398401 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 :                                   684.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            858 sec.

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

