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


Performing analysis on: 4FGL_J0152.2+3714_daily_bin1617
RA = 28.0631, Dec = 37.2341
tmin = 658454401, tmax = 658713601
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='142451', job_status='RUN', time_executed='2021-12-07 12:19:00.687978', time_epoch_executed='1638908340.69' WHERE source_name='4FGL J0152.2+3714' and cadence='daily' and bin_id='1617'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/142451

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/142451/ft1_4FGL_J0152.2+3714_daily_bin1617.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/142451/ft1_4FGL_J0152.2+3714_daily_bin1617.fits outfile=/scratch/kocevski/142451/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1617.fits ra=28.0631 dec=37.2341 rad=12.0 tmin=658454401.0 tmax=658713601.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.93
user 2.71
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.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/142451/ft1_filteredMKT_4FGL_J0152.2+3714_daily_bin1617.fits evtable="EVENTS" outfile="/scratch/kocevski/142451/ft1_filtered_4FGL_J0152.2+3714_daily_bin1617.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/142451/ft1_filtered_4FGL_J0152.2+3714_daily_bin1617.fits" evtable="EVENTS" scfile=/scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits sctable="SC_DATA" outfile=/scratch/kocevski/142451/ltcube_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.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/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits
.....................!
real 12.34
user 11.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/142451/ft1_filtered_4FGL_J0152.2+3714_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits sctable="SC_DATA" expcube=/scratch/kocevski/142451/ltcube_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.fits outfile=/scratch/kocevski/142451/expmap_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.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/142451/ltcube_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.fits
.....................!
real 190.09
user 184.36
sys 5.43

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

Setting source of interest to:
4FGL J0152.2+3714 @ 28.0631 37.2341

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/142451/ft1_filtered_4FGL_J0152.2+3714_daily_bin1617.fits scfile=/scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits outfile=/scratch/kocevski/142451/cmap_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.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=28.0631 yref=37.2341 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/142451/ft1_filtered_4FGL_J0152.2+3714_daily_bin1617.fits scfile=/scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits outfile=/scratch/kocevski/142451/cmap_HighResolution_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.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=28.0631 yref=37.2341 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/142451/ft1_filtered_4FGL_J0152.2+3714_daily_bin1617.fits evtable="EVENTS" scfile=/scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/142451/Model_4FGL_J0152.2+3714_daily_bin1617.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

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

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/142451/ft1_filtered_4FGL_J0152.2+3714_daily_bin1617.fits.......................!
real 30.61
user 29.37
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/142451/ft1_filtered_4FGL_J0152.2+3714_daily_bin1617.fits', '/scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits', expMap='/scratch/kocevski/142451/expmap_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.fits', expCube='/scratch/kocevski/142451/ltcube_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/142451/Model_4FGL_J0152.2+3714_daily_bin1617.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0152.2+3714'

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.750e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/142451/ft1_filtered_4FGL_J0152.2+3714_daily_bin1617.fits
Spacecraft file(s): /scratch/kocevski/142451/ft2_4FGL_J0152.2+3714_daily_bin1617.fits
Exposure map: /scratch/kocevski/142451/expmap_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.fits
Exposure cube: /scratch/kocevski/142451/ltcube_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/142451/Model_4FGL_J0152.2+3714_daily_bin1617.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) = 1876.65227899

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.564       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23174E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6124       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1163       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47463E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.586       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9833       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10258E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .20107       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13497E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11976E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    439.46       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2311       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   1876.587     FROM MIGRAD    STATUS=CONVERGED   1106 CALLS     3612 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.514        53.530        .11780E-03    .14592E-03
   2  Prefactor     .10000E-03    10.910        .13957E-02** at limit **
   3  Prefactor     .10001E-03    102.02        .92795E-01** at limit **
   4  Prefactor     .10000E-03    60.717        .18142E-02** at limit **
   5  norm          .10000E-03    7.8480        .17454E-02** at limit **
   6  Prefactor     6.6067        23.561        .15606E-03    .40487E-04
   7  Prefactor     .10000E-03    48.361        .18142E-02** at limit **
   8  norm          .10000E-03    .82163        .38347E-03** at limit **
   9  norm          1.1164        1.4670        .58515E-04   -.24796E-03
  10  Prefactor     .10061E-03    660.92        .19273E-02** at limit **
  11  norm          .10000E-03    4.7182        .13411E-02** at limit **
  12  Prefactor     13.588        42.564        .10867E-03   -.56545E-04
  13  Prefactor     5.9833        10.242        .82077E-03   -.31191E-03
  14  Prefactor     .10000E-03    55.774        .18142E-02** at limit **
  15  Prefactor     .10000E-03    53.300        .18142E-02** at limit **
  16  norm          .10000E-03    8.0770        .12022E-02** at limit **
  17  Prefactor     .10000E-03    16.226        .17042E-02** at limit **
  18  norm          .10000E-03    6.2784        .10597E-02** at limit **
  19  Prefactor     .10000E-03    21.169        .18142E-02** at limit **
  20  norm          .10000E-03    .95528        .41278E-03** at limit **
  21  norm          .20051        .67970        .68626E-03   -.96341E-03
  22  Prefactor     .10000E-03    56.866        .18142E-02** at limit **
  23  norm          .10000E-03    23.144        .18142E-02** at limit **
  24  Prefactor     439.45        300.86        .97573E-04    .28733E-04
  25  Normalizat    1.2310        .65143        .36748E-03    .30958E-03
  26  Prefactor     1.0883        .29716        .19740E-03    .44874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.5135
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 6.60672
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 1.11639
  Prefactor  = 0.000100607
  norm       = 0.0001
  Prefactor  = 13.5877
  Prefactor  = 5.98334
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.200515
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 439.453
  Normalizat = 1.23102
  Prefactor  = 1.08826
 **********
 **   18 **HESSE 
 **********

 FCN=   1876.587     FROM HESSE     STATUS=OK           442 CALLS     4054 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.514        53.483        .23561E-04   -1.5029    
   2  Prefactor     .10000E-03    10.911        .27914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    92.296        .98608E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    60.718        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.8577        .34908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6067        23.551        .62422E-05   -1.5194    
   7  Prefactor     .10000E-03    48.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .82163        .76694E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1164        1.4670        .23406E-05   -1.5497    
  10  Prefactor     .10061E-03    660.93        .38547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.7315        .26823E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.588        42.558        .43468E-05   -1.4971    
  13  Prefactor     5.9833        10.238        .32831E-04   -1.5219    
  14  Prefactor     .10000E-03    55.775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.0771        .24044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.226        .34083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.2785        .21193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.169        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .95529        .82555E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .20051        .67926        .27450E-04   -1.5618    
  22  Prefactor     .10000E-03    56.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    23.145        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     439.45        300.84        .19515E-04   -1.1484    
  25  Normalizat    1.2310        .65179        .73497E-04   -.85650    
  26  Prefactor     1.0883        .29740        .39480E-04   -.89843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2081e-09
Minuit parameter uncertainties:
  1  49.7026
  2  3.61233e-05
  3  0.00187228
  4  0.000532599
  5  0.000267912
  6  23.5845
  7  0.00043517
  8  2.01994e-06
  9  1.46704
  10  0.0405186
  11  3.47489e-05
  12  42.6528
  13  10.2414
  14  0.000478755
  15  0.000544812
  16  6.94279e-06
  17  2.08594e-05
  18  8.48374e-06
  19  4.02827e-05
  20  1.42908e-06
  21  0.679283
  22  0.00033345
  23  4.78508e-05
  24  301.926
  25  0.656175
  26  0.297856
Done.

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

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.359e+01  4.265e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.343e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.088e+00  2.979e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.231e+00  6.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 28.063 37.234
Photon Flux Upper Limit: 3.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.80e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/142451/likelihoodResults_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.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) = 1876.58655098
delta logL = 8.82625520262e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1876.58648606
delta logL = 0.000153187678734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.172       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3881       1.0000          .0000       10.000    
     3 'Normalizat'    1.2285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0889       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   1876.586     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      260 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.134        57.564        .11037E-03    .46405E-04
   2  Index         2.4057        3.5037        .12745E-01    .16909E-04
   3  Normalizat    1.2274        .60725        .36796E-03    .88272E-04
   4  Prefactor     1.0894        .29491        .19731E-03   -.17122E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1338
  Index      = 2.40574
  Normalizat = 1.22741
  Prefactor  = 1.08942
 **********
 **   18 **HESSE 
 **********

 FCN=   1876.586     FROM HESSE     STATUS=OK            23 CALLS      283 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.134        49.246        .44147E-05   -1.4983    
   2  Index         2.4057        3.2197        .50982E-03   -.54551    
   3  Normalizat    1.2274        .59514        .73591E-04   -.85760    
   4  Prefactor     1.0894        .29164        .39462E-04   -.89805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71216e-10
Minuit parameter uncertainties:
  1  49.3991
  2  3.64608
  3  0.598478
  4  0.292064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/142451': 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) = 1876.58646975
delta logL = 0.000169495374166

Extracting fit parameters...

4FGL J0152.2+3714
   Spectrum: PowerLaw
264    Prefactor:  1.313e+01  4.940e+01  1.000e-04  1.000e+04 ( 1.000e-13)
265        Index:  2.406e+00  3.646e+00  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  1.251e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  1.089e+00  2.921e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.227e+00  5.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 28.063 37.234

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/142451/cmap_HighResolution_658454401_658713601_4FGL_J0152.2+3714_daily_bin1617.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.80e-02', job_status='DONE', photon_flux_upper_limit='3.63e-07', time_completed='2021-12-07 12:26:23.858282', job_id='142451', GAL2='1.09', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1638908783.86', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.69e-04', ts2='0.13', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1617' AND source_name='4FGL J0152.2+3714' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 12:26:23 PST 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 142451: <4FGL_J0152.2+3714_daily_bin1617> in cluster <slac> Done

Job <4FGL_J0152.2+3714_daily_bin1617> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec  7 12:15:32 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 12:18:55 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:18:55 2021
Terminated at Tue Dec  7 12:26:24 2021
Results reported at Tue Dec  7 12:26:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0152.2+3714_daily_bin1617 28.0631 37.2341 658454401 658713601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0152.2+3714 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   443.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   449 sec.
    Turnaround time :                            652 sec.

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

