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


Performing analysis on: 4FGL_J0128.5+4440_daily_bin411
RA = 22.1438, Dec = 44.6777
tmin = 345859201, tmax = 346118401
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='590312', job_status='RUN', time_executed='2021-08-14 01:31:13.280098', time_epoch_executed='1628929873.28' WHERE source_name='4FGL J0128.5+4440' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/590312

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/590312/ft1_4FGL_J0128.5+4440_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/590312/ft2_4FGL_J0128.5+4440_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/590312/ft1_4FGL_J0128.5+4440_daily_bin411.fits outfile=/scratch/kocevski/590312/ft1_filteredMKT_4FGL_J0128.5+4440_daily_bin411.fits ra=22.1438 dec=44.6777 rad=12.0 tmin=345859201.0 tmax=346118401.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.38
user 3.18
sys 1.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/590312/ft1_filtered_4FGL_J0128.5+4440_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/590312/ft2_4FGL_J0128.5+4440_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/590312/ltcube_345859201_346118401_4FGL_J0128.5+4440_daily_bin411.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/590312/ft2_4FGL_J0128.5+4440_daily_bin411.fits
.....................!
real 14.06
user 12.54
sys 1.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/590312/ft1_filtered_4FGL_J0128.5+4440_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/590312/ft2_4FGL_J0128.5+4440_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/590312/ltcube_345859201_346118401_4FGL_J0128.5+4440_daily_bin411.fits outfile=/scratch/kocevski/590312/expmap_345859201_346118401_4FGL_J0128.5+4440_daily_bin411.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/590312/ltcube_345859201_346118401_4FGL_J0128.5+4440_daily_bin411.fits
.....................!
real 192.64
user 185.67
sys 6.02

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/590312/ft1_filtered_4FGL_J0128.5+4440_daily_bin411.fits scfile=/scratch/kocevski/590312/ft2_4FGL_J0128.5+4440_daily_bin411.fits outfile=/scratch/kocevski/590312/cmap_345859201_346118401_4FGL_J0128.5+4440_daily_bin411.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 1.84
user 0.39
sys 1.09

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/590312/ft1_filtered_4FGL_J0128.5+4440_daily_bin411.fits scfile=/scratch/kocevski/590312/ft2_4FGL_J0128.5+4440_daily_bin411.fits outfile=/scratch/kocevski/590312/cmap_HighResolution_345859201_346118401_4FGL_J0128.5+4440_daily_bin411.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 1.53
user 0.39
sys 1.08

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.405       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0980       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.9528       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.939       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    62.506       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1659       1.0000         .10000E-03   10000.    
    14 'norm      '    .91326       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.880       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7474       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .61623       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97409       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95802       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=   10611.32     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2257 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6619       -.74423E-08** at limit **
   2  Prefactor     .10000E-03    5.4375        .27252E-06** at limit **
   3  Prefactor     44.409        37.028        .44310E-05    .13404E-04
   4  Prefactor     .10000E-03    12.239        .17215E-05** at limit **
   5  Prefactor     7.0984        6.0412       -.14473E-05   -.22225E-02
   6  Prefactor     .10000E-03    10.383       -.26195E-06** at limit **
   7  norm          5.9496        53.051       -.85963E-05   -.11119E-04
   8  Prefactor     .10000E-03    49.654       -.22946E-05** at limit **
   9  Prefactor     12.920        48.549       -.41728E-04    .27807E-06
  10  norm          .10000E-03    .83676        .10509E-06** at limit **
  11  Prefactor     62.499        35.338       -.59491E-05   -.20844E-04
  12  Prefactor     .10000E-03    19.047        .46205E-05** at limit **
  13  norm          1.1660        .99341       -.12887E-07    .19197E-03
  14  norm          .91362        .78170        .32857E-06   -.31849E-03
  15  Prefactor     .10000E-03    5.0123       -.42936E-06** at limit **
  16  Prefactor     24.880        18.841       -.56861E-06    .84622E-05
  17  Prefactor     4.7484        3.9751       -.36099E-06   -.41306E-03
  18  Prefactor     .10000E-03    18.040       -.45588E-05** at limit **
  19  norm          .61622        .32471       -.47796E-07   -.86490E-03
  20  Normalizat    .97396        .19559        .24141E-05   -.35876E-04
  21  Prefactor     .95806        .70602E-01    .28280E-06    .16664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.4092
  Prefactor  = 0.0001
  Prefactor  = 7.09835
  Prefactor  = 0.000100002
  norm       = 5.94962
  Prefactor  = 0.0001
  Prefactor  = 12.9202
  norm       = 0.0001
  Prefactor  = 62.4987
  Prefactor  = 0.0001
  norm       = 1.166
  norm       = 0.913621
  Prefactor  = 0.0001
  Prefactor  = 24.88
  Prefactor  = 4.74839
  Prefactor  = 0.0001
  norm       = 0.616221
  Normalizat = 0.973956
  Prefactor  = 0.958065
 **********
 **   18 **HESSE 
 **********

 FCN=   10611.32     FROM HESSE     STATUS=OK           321 CALLS     2578 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6839        .12964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.4427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.409        37.207        .60164E-04   -1.4374    
   4  Prefactor     .10000E-03    12.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.0984        6.2386        .75284E-03   -1.5175    
   6  Prefactor     .10000E-03    10.645        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9496        53.448        .16458E-03   -1.5220    
   8  Prefactor     .10000E-03    50.800        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.920        47.920        .11135E-03   -1.4989    
  10  norm          .10000E-03    .84054        .92004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     62.499        34.948        .50755E-04   -1.4125    
  12  Prefactor     .10000E-03    19.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1660        1.0177        .92222E-03   -1.5492    
  14  norm          .91362        .74436        .76973E-03   -1.5517    
  15  Prefactor     .10000E-03    5.0400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     24.880        18.837        .80309E-04   -1.4710    
  17  Prefactor     4.7484        3.9719        .16735E-03   -1.5272    
  18  Prefactor     .10000E-03    18.031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .61622        .32045        .41104E-04   -1.5551    
  20  Normalizat    .97396        .21687        .40785E-03   -.93908    
  21  Prefactor     .95806        .78785E-01    .15712E-03   -.94141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26087e-09
Minuit parameter uncertainties:
  1  4.95765e-06
  2  3.66205e-06
  3  37.2265
  4  4.20536e-06
  5  6.23914
  6  0.000260957
  7  35.7071
  8  0.000217468
  9  48.0635
  10  3.73349e-06
  11  34.9595
  12  3.09493e-05
  13  1.01773
  14  0.744365
  15  3.58814e-06
  16  18.8411
  17  3.97208
  18  3.56101e-06
  19  0.320448
  20  0.217062
  21  0.0787945
Done.

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

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  1.000e-04  3.095e-05  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.581e-01  7.879e-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:  9.740e-01  2.171e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/590312/likelihoodResults_345859201_346118401_4FGL_J0128.5+4440_daily_bin411.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) = 10611.317036
delta logL = -0.000249639002504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10611.3167869
delta logL = -5.91839125264e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3126       1.0000          .0000       10.000    
     3 'Normalizat'    .97395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95806       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=   10611.32     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      275 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10067E-03    63.328        .18142E-02** at limit **
   2  Index         2.2719        8.5330        .50000        .14472E-04
   3  Normalizat    .97396        .10463E-01    .40785E-03    .28321E-04
   4  Prefactor     .95806        .40322E-02    .15712E-03    .41099E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100673
  Index      = 2.27185
  Normalizat = 0.973956
  Prefactor  = 0.958064
 **********
 **   18 **HESSE 
 **********

 FCN=   10611.32     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10067E-03    291.67        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2719        7.1646        .50000       -.57714    
   3  Normalizat    .97396        .22872E-01    .16314E-04   -.93908    
   4  Prefactor     .95806        .88143E-02    .62848E-05   -.94141    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.82681e-09
Minuit parameter uncertainties:
  1  0.0281618
  2  259.49
  3  0.0228724
  4  0.0088143
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/590312': 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): 102
logL (Free Index) = 10611.3167867
delta logL = -4.1655584937e-07

Extracting fit parameters...

4FGL J0128.5+4440
   Spectrum: PowerLaw
246    Prefactor:  1.007e-04  2.816e-02  1.000e-04  1.000e+04 ( 1.000e-14)
247        Index:  2.272e+00  2.595e+02  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.581e-01  8.814e-03  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:  9.740e-01  2.287e-02  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/590312/cmap_HighResolution_345859201_346118401_4FGL_J0128.5+4440_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.88e-08', time_completed='2021-08-14 01:46:16.229540', job_id='590312', GAL2='0.96', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1628930776.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='-4.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='411' AND source_name='4FGL J0128.5+4440' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 01:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 590312: <4FGL_J0128.5+4440_daily_bin411> in cluster <slac> Done

Job <4FGL_J0128.5+4440_daily_bin411> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 14 01:30:26 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 01:30:33 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:30:33 2021
Terminated at Sat Aug 14 01:46:16 2021
Results reported at Sat Aug 14 01:46:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0128.5+4440_daily_bin411 22.1438 44.6777 345859201 346118401 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 :                                   905.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            950 sec.

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

