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


Performing analysis on: 4FGL_J1438.0-3128_daily_bin1444
RA = 219.508, Dec = -31.4679
tmin = 613612801, tmax = 613872001
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='664441', job_status='RUN', time_executed='2021-09-10 03:09:29.624682', time_epoch_executed='1631268569.62' WHERE source_name='4FGL J1438.0-3128' and cadence='daily' and bin_id='1444'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/664441

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/664441/ft1_4FGL_J1438.0-3128_daily_bin1444.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/664441/ft1_4FGL_J1438.0-3128_daily_bin1444.fits outfile=/scratch/kocevski/664441/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1444.fits ra=219.508 dec=-31.4679 rad=12.0 tmin=613612801.0 tmax=613872001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.53
user 2.31
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.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/664441/ft1_filteredMKT_4FGL_J1438.0-3128_daily_bin1444.fits evtable="EVENTS" outfile="/scratch/kocevski/664441/ft1_filtered_4FGL_J1438.0-3128_daily_bin1444.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/664441/ft1_filtered_4FGL_J1438.0-3128_daily_bin1444.fits" evtable="EVENTS" scfile=/scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits sctable="SC_DATA" outfile=/scratch/kocevski/664441/ltcube_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.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/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits
.....................!
real 12.05
user 11.69
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/664441/ft1_filtered_4FGL_J1438.0-3128_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits sctable="SC_DATA" expcube=/scratch/kocevski/664441/ltcube_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.fits outfile=/scratch/kocevski/664441/expmap_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.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/664441/ltcube_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.fits
.....................!
real 190.11
user 185.39
sys 4.36

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 CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 point sources and 1 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 J1438.0-3128 @ 219.508 -31.4679

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/664441/ft1_filtered_4FGL_J1438.0-3128_daily_bin1444.fits scfile=/scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits outfile=/scratch/kocevski/664441/cmap_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.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=219.508 yref=-31.4679 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.52
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/664441/ft1_filtered_4FGL_J1438.0-3128_daily_bin1444.fits scfile=/scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits outfile=/scratch/kocevski/664441/cmap_HighResolution_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.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=219.508 yref=-31.4679 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/664441/ft1_filtered_4FGL_J1438.0-3128_daily_bin1444.fits evtable="EVENTS" scfile=/scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/664441/Model_4FGL_J1438.0-3128_daily_bin1444.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/664441/ft1_filtered_4FGL_J1438.0-3128_daily_bin1444.fits....................!
real 72.03
user 70.71
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/664441/ft1_filtered_4FGL_J1438.0-3128_daily_bin1444.fits', '/scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits', expMap='/scratch/kocevski/664441/expmap_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.fits', expCube='/scratch/kocevski/664441/ltcube_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/664441/Model_4FGL_J1438.0-3128_daily_bin1444.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1438.0-3128'

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  2.213e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.444e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/664441/ft1_filtered_4FGL_J1438.0-3128_daily_bin1444.fits
Spacecraft file(s): /scratch/kocevski/664441/ft2_4FGL_J1438.0-3128_daily_bin1444.fits
Exposure map: /scratch/kocevski/664441/expmap_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.fits
Exposure cube: /scratch/kocevski/664441/ltcube_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/664441/Model_4FGL_J1438.0-3128_daily_bin1444.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) = 3763.77505855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .29652E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7494       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.079       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10979E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .17875       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    61.532       1.0000         .10000E-03   10000.    
    16 'norm      '    64.144       1.0000         .10000E-03   10000.    
    17 'Prefactor '    110.87       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .53366E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    177.80       1.0000         .10000E-03   10000.    
    20 'Prefactor '    93.852       1.0000         .10000E-03   10000.    
    21 'norm      '    .11210E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    77.937       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.9899       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    34.845       1.0000         .10000E-03   10000.    
    26 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95040       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .82091       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3763.562     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     4099 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    118.18       -.26866E-06** at limit **
   2  norm          .10000E-03    14.101       -.34694E-05** at limit **
   3  Prefactor     2.7455        5.2663       -.68226E-06   -.24165E-03
   4  Prefactor     .10000E-03    53.962        .23409E-06** at limit **
   5  Prefactor     10.052        78.436        .37275E-06    .59561E-05
   6  Prefactor     .10000E-03    34.311       -.18747E-06** at limit **
   7  Prefactor     .10000E-03    251.61        .24699E-06** at limit **
   8  Prefactor     29.358        31.960        .65530E-07    .26164E-04
   9  Prefactor     .10000E-03    11.611        .24316E-07** at limit **
  10  norm          .10000E-03    2.0224       -.16171E-07** at limit **
  11  Prefactor     .10000E-03    14.475        .48830E-07** at limit **
  12  norm          .17890        .27116       -.18713E-07    .14178E-03
  13  Prefactor     .10000E-03    14.756       -.90312E-07** at limit **
  14  Prefactor     .10001E-03    19.556       -.41471E-06** at limit **
  15  Prefactor     61.445        95.021       -.11684E-05    .11762E-03
  16  norm          64.130        41.588        .34606E-07    .77468E-04
  17  Prefactor     111.45        303.87       -.18257E-05   -.10177E-04
  18  Prefactor     .10006E-03    84.845       -.22018E-04** at limit **
  19  Prefactor     177.84        100.14        .28879E-05    .29478E-03
  20  Prefactor     93.840        158.47       -.28774E-07    .32802E-04
  21  norm          .10000E-03    2.4626        .89058E-06** at limit **
  22  Prefactor     77.958        51.497        .30002E-05    .42079E-03
  23  Prefactor     3.9818        81.026       -.15264E-05    .56727E-04
  24  norm          .10000E-03    31.359       -.43371E-06** at limit **
  25  norm          34.733        389.16        .33193E-05    .31281E-04
  26  norm          .10000E-03    1.5123       -.44022E-06** at limit **
  27  Prefactor     .10000E-03    13.007        .12983E-06** at limit **
  28  norm          .10000E-03    6.2975        .71776E-07** at limit **
  29  Normalizat    .95093        .38121       -.16317E-05    .15305E-03
  30  Prefactor     .82072        .13102        .37948E-06    .59977E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.74552
  Prefactor  = 0.0001
  Prefactor  = 10.0519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.3575
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.178898
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 61.4454
  norm       = 64.1296
  Prefactor  = 111.453
  Prefactor  = 0.000100065
  Prefactor  = 177.84
  Prefactor  = 93.8401
  norm       = 0.000100002
  Prefactor  = 77.958
  Prefactor  = 3.98176
  norm       = 0.000100001
  norm       = 34.7327
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.950933
  Prefactor  = 0.820722
 **********
 **   18 **HESSE 
 **********

 FCN=   3763.562     FROM HESSE     STATUS=OK           582 CALLS     4681 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    118.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    41.998        .38807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.7455        5.0530        .16629E-03   -1.5377    
   4  Prefactor     .10000E-03    54.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.052        78.466        .12621E-03   -1.5074    
   6  Prefactor     .10000E-03    34.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    251.61        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.358        31.944        .73949E-04   -1.4624    
   9  Prefactor     .10000E-03    11.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.0265        .85188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .17890        .26009        .36207E-03   -1.5623    
  13  Prefactor     .10000E-03    14.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    19.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     61.445        94.273        .25576E-03   -1.4139    
  16  norm          64.130        41.609        .50106E-04   -1.4105    
  17  Prefactor     111.45        303.20        .19100E-03   -1.3593    
  18  Prefactor     .10006E-03    99.418        .51182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     177.84        100.82        .15134E-03   -1.3033    
  20  Prefactor     93.840        158.06        .41485E-04   -1.3767    
  21  norm          .10000E-03    4.0551        .16940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     77.958        52.163        .45488E-04   -1.3940    
  23  Prefactor     3.9818        80.040        .20191E-03   -1.5309    
  24  norm          .10000E-03    31.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          34.733        392.43        .67888E-04   -1.4529    
  26  norm          .10000E-03    3.3287        .14526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    6.3060        .15034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .95093        .44531        .41772E-03   -.94693    
  30  Prefactor     .82072        .15683        .15858E-03   -.98969    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76836e-09
Minuit parameter uncertainties:
  1  0.000387704
  2  0.000193291
  3  5.05377
  4  4.95266e-05
  5  56.2705
  6  6.16388e-05
  7  0.000143366
  8  31.9627
  9  1.92546e-05
  10  1.59378e-05
  11  5.55032e-05
  12  0.260096
  13  6.52027e-05
  14  0.000689481
  15  94.5037
  16  41.6277
  17  307.587
  18  0.00508961
  19  100.922
  20  158.775
  21  0.000194869
  22  52.194
  23  35.7589
  24  0.000277514
  25  235.472
  26  4.90476e-05
  27  9.58961e-06
  28  7.18893e-06
  29  0.447061
  30  0.15692
Done.

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

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  6.895e-04  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.444e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  8.207e-01  1.569e-01  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  9.509e-01  4.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 219.508 -31.468
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/664441/likelihoodResults_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.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) = 3763.56271831
delta logL = -0.000244957037921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3763.56247566
delta logL = -2.31250214711e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12378E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8468       1.0000          .0000       10.000    
     3 'Normalizat'    .95093       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82072       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+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=   3763.562     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      278 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10474E-03    9.1540        .18142E-01** at limit **
   2  Index         2.7379        6.7525        .50000        .19011E-04
   3  Normalizat    .95094        .72340E-02    .41772E-03   -.19051E-06
   4  Prefactor     .82072        .25896E-02    .15858E-03   -.59146E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010474
  Index      = 2.73792
  Normalizat = 0.950936
  Prefactor  = 0.82072
 **********
 **   18 **HESSE 
 **********

 FCN=   3763.562     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10474E-03    102.54        .22730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7379        5.2817        .50000       -.46947    
   3  Normalizat    .95094        .24328E-01    .16709E-04   -.94693    
   4  Prefactor     .82072        .87087E-02    .63430E-05   -.98969    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.49356e-09
Minuit parameter uncertainties:
  1  0.0441706
  2  363.673
  3  0.0243278
  4  0.00870876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/664441': 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) = 3763.56247439
delta logL = -1.04453511085e-06

Extracting fit parameters...

4FGL J1438.0-3128
   Spectrum: PowerLaw
301    Prefactor:  1.047e-04  4.417e-02  1.000e-04  1.000e+04 ( 1.000e-13)
302        Index:  2.738e+00  3.637e+02  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  1.053e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  8.207e-01  8.709e-03  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  9.509e-01  2.433e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 219.508 -31.468

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/664441/cmap_HighResolution_613612801_613872001_4FGL_J1438.0-3128_daily_bin1444.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-09-10 03:22:15.490180', job_id='664441', GAL2='0.82', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631269335.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-1.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.44' WHERE bin_id='1444' AND source_name='4FGL J1438.0-3128' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 03:22:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 664441: <4FGL_J1438.0-3128_daily_bin1444> in cluster <slac> Done

Job <4FGL_J1438.0-3128_daily_bin1444> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 03:06:34 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 03:06:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 03:06:35 2021
Terminated at Fri Sep 10 03:22:16 2021
Results reported at Fri Sep 10 03:22:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1438.0-3128_daily_bin1444 219.508 -31.4679 613612801 613872001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1438.0-3128 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   730.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

