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


Performing analysis on: 4FGL_J0144.6+2705_daily_bin944
RA = 26.1502, Dec = 27.0899
tmin = 484012801, tmax = 484272001
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='823772', job_status='RUN', time_executed='2021-08-14 15:26:47.424471', time_epoch_executed='1628980007.42' WHERE source_name='4FGL J0144.6+2705' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823772/ft1_4FGL_J0144.6+2705_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823772/ft1_4FGL_J0144.6+2705_daily_bin944.fits outfile=/scratch/kocevski/823772/ft1_filteredMKT_4FGL_J0144.6+2705_daily_bin944.fits ra=26.1502 dec=27.0899 rad=12.0 tmin=484012801.0 tmax=484272001.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.54
user 3.26
sys 1.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.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/823772/ft1_filteredMKT_4FGL_J0144.6+2705_daily_bin944.fits evtable="EVENTS" outfile="/scratch/kocevski/823772/ft1_filtered_4FGL_J0144.6+2705_daily_bin944.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.55
user 0.33
sys 1.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823772/ft1_filtered_4FGL_J0144.6+2705_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/823772/ltcube_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.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/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits
.....................!
real 13.26
user 11.72
sys 1.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823772/ft1_filtered_4FGL_J0144.6+2705_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/823772/ltcube_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.fits outfile=/scratch/kocevski/823772/expmap_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.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/823772/ltcube_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.fits
.....................!
real 192.38
user 185.88
sys 6.10

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 168 point sources and 0 extended sources

Setting source of interest to:
4FGL J0144.6+2705 @ 26.1502 27.0899

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/823772/ft1_filtered_4FGL_J0144.6+2705_daily_bin944.fits scfile=/scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits outfile=/scratch/kocevski/823772/cmap_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.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=26.1502 yref=27.0899 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.56
user 0.37
sys 1.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823772/ft1_filtered_4FGL_J0144.6+2705_daily_bin944.fits scfile=/scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits outfile=/scratch/kocevski/823772/cmap_HighResolution_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.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=26.1502 yref=27.0899 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.59
user 0.38
sys 1.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/823772/ft1_filtered_4FGL_J0144.6+2705_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/823772/Model_4FGL_J0144.6+2705_daily_bin944.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/823772/ft1_filtered_4FGL_J0144.6+2705_daily_bin944.fits.....................!
real 91.29
user 88.51
sys 2.54

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823772/ft1_filtered_4FGL_J0144.6+2705_daily_bin944.fits', '/scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits', expMap='/scratch/kocevski/823772/expmap_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.fits', expCube='/scratch/kocevski/823772/ltcube_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823772/Model_4FGL_J0144.6+2705_daily_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0144.6+2705'

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  1.270e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.033e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  8.399e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  7.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/823772/ft1_filtered_4FGL_J0144.6+2705_daily_bin944.fits
Spacecraft file(s): /scratch/kocevski/823772/ft2_4FGL_J0144.6+2705_daily_bin944.fits
Exposure map: /scratch/kocevski/823772/expmap_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.fits
Exposure cube: /scratch/kocevski/823772/ltcube_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823772/Model_4FGL_J0144.6+2705_daily_bin944.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) = 8376.95213049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11453E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1665       1.0000         .10000E-03   10000.    
     4 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.973       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    89.003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1656       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9329       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.952       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2966       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3836       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6969       1.0000         .10000E-03   10000.    
    20 'norm      '    1.2051       1.0000         .10000E-03   10000.    
    21 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.562       1.0000         .10000E-03   10000.    
    23 'norm      '    .99266       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73125       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8376.932     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2896 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7777        .10293E-06** at limit **
   2  Prefactor     .10000E-03    32.591        .20443E-04** at limit **
   3  norm          2.1666        .73618       -.20882E-06   -.10860E-02
   4  norm          .10000E-03    .41933       -.72361E-07** at limit **
   5  Prefactor     41.909        34.949        .31430E-04   -.10480E-05
   6  Prefactor     .10000E-03    1.9287       -.76665E-06** at limit **
   7  Prefactor     .10000E-03    3.7969        .44052E-07** at limit **
   8  Prefactor     .10000E-03    12.259        .33361E-07** at limit **
   9  Prefactor     89.041        48.013       -.36576E-06    .16633E-04
  10  Prefactor     .10000E-03    35.742       -.27074E-04** at limit **
  11  norm          3.1658        .87924       -.19132E-07    .24691E-03
  12  Prefactor     8.9259        12.538        .11393E-06   -.45987E-04
  13  Prefactor     12.953        11.419       -.62437E-07   -.24842E-04
  14  Prefactor     .10000E-03    10.988       -.35368E-06** at limit **
  15  norm          3.2960        4.0340       -.12398E-05   -.40850E-03
  16  Prefactor     .10000E-03    45.283        .84491E-05** at limit **
  17  Prefactor     8.3950        10.249        .36549E-05   -.19651E-03
  18  Prefactor     .10000E-03    2.6175        .22119E-06** at limit **
  19  Prefactor     1.7009        18.430        .93782E-05   -.30922E-03
  20  norm          1.2052        .66153       -.16288E-06   -.87015E-03
  21  norm          .10000E-03    33.925       -.26292E-05** at limit **
  22  Prefactor     17.385        49.978       -.59132E-04    .69138E-05
  23  norm          .99445        2.5364       -.58290E-06   -.14718E-02
  24  Normalizat    .73184        .21002       -.68613E-05    .15181E-05
  25  Prefactor     1.1515        .11893        .19833E-05   -.42481E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.16662
  norm       = 0.0001
  Prefactor  = 41.9091
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 89.0408
  Prefactor  = 0.0001
  norm       = 3.16581
  Prefactor  = 8.92595
  Prefactor  = 12.9529
  Prefactor  = 0.0001
  norm       = 3.29598
  Prefactor  = 0.0001
  Prefactor  = 8.39499
  Prefactor  = 0.0001
  Prefactor  = 1.70092
  norm       = 1.20515
  norm       = 0.0001
  Prefactor  = 17.3854
  norm       = 0.994451
  Normalizat = 0.731837
  Prefactor  = 1.15153
 **********
 **   18 **HESSE 
 **********

 FCN=   8376.932     FROM HESSE     STATUS=OK           421 CALLS     3317 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.8371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1666        .73612        .43840E-04   -1.5414    
   4  norm          .10000E-03    .42820        .57814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.909        34.887        .61876E-04   -1.4412    
   6  Prefactor     .10000E-03    1.9470        .12411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8376        .17404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     89.041        47.987        .42590E-04   -1.3818    
  10  Prefactor     .10000E-03    35.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1658        .87889        .43344E-04   -1.5352    
  12  Prefactor     8.9259        12.529        .13410E-03   -1.5110    
  13  Prefactor     12.953        11.424        .11130E-03   -1.4988    
  14  Prefactor     .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2960        3.9965        .18254E-03   -1.5345    
  16  Prefactor     .10000E-03    45.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.3950        10.082        .13845E-03   -1.5128    
  18  Prefactor     .10000E-03    2.6394        .14459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7009        17.651        .32300E-03   -1.5447    
  20  norm          1.2052        .65750        .52336E-04   -1.5488    
  21  norm          .10000E-03    33.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     17.385        50.079        .95572E-04   -1.4874    
  23  norm          .99445        2.5011        .22096E-03   -1.5509    
  24  Normalizat    .73184        .23186        .38640E-03   -1.0265    
  25  Prefactor     1.1515        .13352        .18583E-03   -.87836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14973e-09
Minuit parameter uncertainties:
  1  2.66185e-06
  2  0.00032598
  3  0.736127
  4  2.18285e-06
  5  34.9037
  6  0.000108827
  7  1.08414e-05
  8  0.000210177
  9  48.0074
  10  2.94767e-05
  11  0.878897
  12  12.5331
  13  11.4256
  14  3.84296e-05
  15  3.99686
  16  3.06219e-05
  17  10.0836
  18  3.21464e-05
  19  10.9626
  20  0.657508
  21  2.77522e-05
  22  50.2009
  23  2.50141
  24  0.232169
  25  0.133563
Done.

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

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  3.166e+00  8.789e-01  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  2.033e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
245         beta:  8.399e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  7.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.152e+00  1.336e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  7.318e-01  2.322e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 63.02
Ra Dec: 26.150 27.090
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.61e-07 +/- 4.46e-08
Energy Flux (Fixed Index): 8.46e-05 +/- 2.35e-05

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) = 8375.0996666
delta logL = 1.83255657648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8375.065042
delta logL = 1.86718117525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8375       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5593       1.0000          .0000       5.0000    
     3 'Normalizat'    .78071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1427       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5410E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8375.065     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8371        .87135        .60350E-02    .22444E-04
   2  alpha         1.5592        .20792        .18428       -.47012E-04
   3  Normalizat    .78070        .19694        .84821E-01    .35582E-04
   4  Prefactor     1.1427        .11669        .36151E-01    .51638E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.83712
  alpha      = 1.55922
  Normalizat = 0.780698
  Prefactor  = 1.14273
 **********
 **   18 **HESSE 
 **********

 FCN=   8375.065     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .92E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8371        .99372        .45102E-04   -1.5371    
   2  alpha         1.5592        .24531        .78627E-02   -.38581    
   3  Normalizat    .78070        .22137        .37564E-03   -1.0079    
   4  Prefactor     1.1427        .13175        .18670E-03   -.88112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21007e-13
Minuit parameter uncertainties:
  1  0.993721
  2  0.245776
  3  0.221623
  4  0.131787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823772': 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) = 8375.06504191
delta logL = 1.8671812631

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  2.837e+00  9.937e-01  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  1.559e+00  2.458e-01  0.000e+00  5.000e+00 ( 1.000e+00)
245         beta:  8.399e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
246           Eb:  7.595e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
538    Prefactor:  1.143e+00  1.318e-01  0.000e+00  1.000e+01 ( 1.000e+00)
539        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
540        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
537   Normalization:  7.807e-01  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 66.72
Ra Dec: 26.150 27.090
Photon Index (Free Index): 1.56 +/- 0.25
Photon Flux (Free Index): 9.91e-08 +/- 4.21e-08
Energy Flux (Free Index): 1.42e-04 +/- 6.26e-05

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/823772/cmap_HighResolution_484012801_484272001_4FGL_J0144.6+2705_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.61e-07', energy_flux2='1.42e-04', photon_flux_error='4.46e-08', dlogl='1.87e+00', energy_flux='8.46e-05', photon_flux2='9.91e-08', job_status='DONE', time_completed='2021-08-14 15:39:11.462272', photon_index_error2='0.25', photon_index2='1.56', ts='63.02', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='6.26e-05', EG='0.73', time_epoch_completed='1628980751.46', return_code='0', job_id='823772', GAL2='1.14', EG2='0.78', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='4.21e-08', ts2='66.72', photon_index='2.03' WHERE bin_id='944' AND source_name='4FGL J0144.6+2705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 15:39:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0029>
Subject: Job 823772: <4FGL_J0144.6+2705_daily_bin944> in cluster <slac> Done

Job <4FGL_J0144.6+2705_daily_bin944> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Aug 14 15:25:27 2021
Job was executed on host(s) <bullet0029>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 15:26:13 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 14 15:26:13 2021
Terminated at Sat Aug 14 15:39:12 2021
Results reported at Sat Aug 14 15:39:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0144.6+2705_daily_bin944 26.1502 27.0899 484012801 484272001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0144.6+2705 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   758.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            825 sec.

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

