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


Performing analysis on: 4FGL_J0144.6+2705_daily_bin1416
RA = 26.1502, Dec = 27.0899
tmin = 606355201, tmax = 606614401
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='826517', job_status='RUN', time_executed='2021-08-14 15:37:22.434429', time_epoch_executed='1628980642.43' WHERE source_name='4FGL J0144.6+2705' and cadence='daily' and bin_id='1416'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826517

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826517/ft1_4FGL_J0144.6+2705_daily_bin1416.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826517/ft2_4FGL_J0144.6+2705_daily_bin1416.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826517/ft1_4FGL_J0144.6+2705_daily_bin1416.fits outfile=/scratch/kocevski/826517/ft1_filteredMKT_4FGL_J0144.6+2705_daily_bin1416.fits ra=26.1502 dec=27.0899 rad=12.0 tmin=606355201.0 tmax=606614401.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.34
user 3.36
sys 0.87

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826517/ft1_filtered_4FGL_J0144.6+2705_daily_bin1416.fits" evtable="EVENTS" scfile=/scratch/kocevski/826517/ft2_4FGL_J0144.6+2705_daily_bin1416.fits sctable="SC_DATA" outfile=/scratch/kocevski/826517/ltcube_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.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/826517/ft2_4FGL_J0144.6+2705_daily_bin1416.fits
.....................!
real 13.63
user 12.42
sys 1.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826517/ft1_filtered_4FGL_J0144.6+2705_daily_bin1416.fits evtable="EVENTS" scfile=/scratch/kocevski/826517/ft2_4FGL_J0144.6+2705_daily_bin1416.fits sctable="SC_DATA" expcube=/scratch/kocevski/826517/ltcube_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.fits outfile=/scratch/kocevski/826517/expmap_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.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/826517/ltcube_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.fits
.....................!
real 193.87
user 187.17
sys 5.89

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/826517/ft1_filtered_4FGL_J0144.6+2705_daily_bin1416.fits scfile=/scratch/kocevski/826517/ft2_4FGL_J0144.6+2705_daily_bin1416.fits outfile=/scratch/kocevski/826517/cmap_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.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.20
user 0.37
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826517/ft1_filtered_4FGL_J0144.6+2705_daily_bin1416.fits scfile=/scratch/kocevski/826517/ft2_4FGL_J0144.6+2705_daily_bin1416.fits outfile=/scratch/kocevski/826517/cmap_HighResolution_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.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.13
user 0.39
sys 0.73

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/826517/ft1_filtered_4FGL_J0144.6+2705_daily_bin1416.fits', '/scratch/kocevski/826517/ft2_4FGL_J0144.6+2705_daily_bin1416.fits', expMap='/scratch/kocevski/826517/expmap_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.fits', expCube='/scratch/kocevski/826517/ltcube_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/826517/Model_4FGL_J0144.6+2705_daily_bin1416.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/826517/ft1_filtered_4FGL_J0144.6+2705_daily_bin1416.fits
Spacecraft file(s): /scratch/kocevski/826517/ft2_4FGL_J0144.6+2705_daily_bin1416.fits
Exposure map: /scratch/kocevski/826517/expmap_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.fits
Exposure cube: /scratch/kocevski/826517/ltcube_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/826517/Model_4FGL_J0144.6+2705_daily_bin1416.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) = 7337.97421652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0544       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .50266E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .61209       1.0000         .10000E-03   10000.    
     4 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.907       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11272E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.962       1.0000         .10000E-03   10000.    
    11 'norm      '    1.4287       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.5833       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.523       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    65.151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.181       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16589E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5973       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1622       1.0000         .10000E-03   10000.    
    21 'norm      '    .55998E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.5247       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93920       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95772       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7337.939     FROM MIGRAD    STATUS=CONVERGED   1036 CALLS     3825 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0621        20.974        .14419E-02    .10904E-04
   2  Prefactor     .10000E-03    40.307        .13786    ** at limit **
   3  norm          .61263        .66725        .67950E-03    .44317E-03
   4  norm          .10000E-03    .48523        .11479E-03** at limit **
   5  Prefactor     51.903        44.709        .55667E-04    .20014E-04
   6  Prefactor     .10000E-03    2.9664        .14350E-02** at limit **
   7  Prefactor     .10000E-03    1.8192        .11270E-02** at limit **
   8  Prefactor     15.899        12.827        .10042E-03    .45283E-05
   9  Prefactor     .10000E-03    13.863        .18142E-02** at limit **
  10  Prefactor     39.971        117.61        .63407E-04    .43031E-06
  11  norm          1.4301        .89513        .55746E-04   -.18966E-04
  12  Prefactor     4.5981        12.698        .18802E-03   -.21888E-04
  13  Prefactor     10.515        13.677        .12351E-03    .46023E-06
  14  Prefactor     .10000E-03    6.3163        .18142E-02** at limit **
  15  norm          .10000E-03    1.9980        .11774E-02** at limit **
  16  Prefactor     65.381        218.67        .24860E-03   -.48932E-05
  17  Prefactor     18.175        9.2647        .93932E-04   -.19365E-05
  18  Prefactor     .10000E-03    12.273        .36285E-03** at limit **
  19  Prefactor     2.6037        9.9636        .25316E-03   -.34578E-05
  20  norm          1.1622        .68004        .51557E-04    .22051E-06
  21  norm          .10000E-03    270.71        .21100E-02** at limit **
  22  Prefactor     .10000E-03    24.031        .18142E-02** at limit **
  23  norm          1.5257        2.4436        .16358E-03   -.11606E-04
  24  Normalizat    .93940        .23846        .32755E-03    .11419E-04
  25  Prefactor     .95738        .13273        .18696E-03   -.71547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.06213
  Prefactor  = 0.0001
  norm       = 0.612632
  norm       = 0.0001
  Prefactor  = 51.9029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8991
  Prefactor  = 0.0001
  Prefactor  = 39.9715
  norm       = 1.43014
  Prefactor  = 4.59808
  Prefactor  = 10.5152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 65.3811
  Prefactor  = 18.175
  Prefactor  = 0.0001
  Prefactor  = 2.60374
  norm       = 1.16216
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.52571
  Normalizat = 0.939397
  Prefactor  = 0.957377
 **********
 **   18 **HESSE 
 **********

 FCN=   7337.939     FROM HESSE     STATUS=OK           415 CALLS     4240 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0621        20.948        .57675E-04   -1.5421    
   2  Prefactor     .10000E-03    40.210        .13797       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .61263        .66645        .27180E-04   -1.5551    
   4  norm          .10000E-03    .48523        .22957E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     51.903        44.701        .22267E-05   -1.4266    
   6  Prefactor     .10000E-03    2.9667        .28699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.8193        .22540E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.899        12.826        .40169E-05   -1.4910    
   9  Prefactor     .10000E-03    13.864        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.971        117.61        .12681E-04   -1.4443    
  11  norm          1.4301        .89512        .22298E-05   -1.5469    
  12  Prefactor     4.5981        12.694        .75209E-05   -1.5279    
  13  Prefactor     10.515        13.677        .49405E-05   -1.5059    
  14  Prefactor     .10000E-03    6.3164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.9982        .23547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     65.381        218.78        .99440E-05   -1.4089    
  17  Prefactor     18.175        9.2636        .37573E-05   -1.4855    
  18  Prefactor     .10000E-03    12.274        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6037        9.9606        .10127E-04   -1.5385    
  20  norm          1.1622        .67999        .20623E-05   -1.5492    
  21  norm          .10000E-03    270.82        .42200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5257        2.4434        .65432E-05   -1.5461    
  24  Normalizat    .93940        .23854        .13102E-04   -.95089    
  25  Prefactor     .95738        .13283        .37392E-04   -.94164    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.88758e-11
Minuit parameter uncertainties:
  1  13.1506
  2  5.88164e-05
  3  0.666459
  4  1.78034e-06
  5  44.7296
  6  3.67444e-06
  7  1.16883e-06
  8  12.8284
  9  1.90894e-06
  10  118.298
  11  0.895132
  12  12.7015
  13  13.6814
  14  3.65149e-07
  15  7.78289e-07
  16  221.555
  17  9.26432
  18  7.65784e-05
  19  9.96692
  20  0.679994
  21  0.00063779
  22  1.35177e-06
  23  2.44356
  24  0.238814
  25  0.132874
Done.

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

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  1.430e+00  8.951e-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:  9.574e-01  1.329e-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:  9.394e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.90
Ra Dec: 26.150 27.090
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 4.54e-08
Energy Flux (Fixed Index): 3.82e-05 +/- 2.39e-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) = 7336.07422989
delta logL = 1.86502693462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7336.03905054
delta logL = 1.90020628853

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .74339       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1898       1.0000          .0000       5.0000    
     3 'Normalizat'    .81372       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0040       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=   7336.039     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      213 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .74330        3.8380        .65564E-02    .80188E-03
   2  alpha         3.1901        3.8779        .22528        .75262E-04
   3  Normalizat    .81361        .75215E-01    .78718E-01    .28301E-04
   4  Prefactor     1.0040        .41069E-01    .44423E-01    .62172E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 0.743299
  alpha      = 3.19006
  Normalizat = 0.813611
  Prefactor  = 1.00401
 **********
 **   18 **HESSE 
 **********

 FCN=   7336.039     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .74330        .97075        .29319E-04   -1.5536    
   2  alpha         3.1901        .92508        .93517E-02    .27965    
   3  Normalizat    .81361        .24077        .34847E-03   -.99566    
   4  Prefactor     1.0040        .13661        .18286E-03   -.92596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42243e-08
Minuit parameter uncertainties:
  1  0.970768
  2  0.949609
  3  0.241086
  4  0.136653
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826517': 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) = 7336.03905037
delta logL = 1.90020645189

Extracting fit parameters...

4FGL J0144.6+2705
   Spectrum: LogParabola
243         norm:  7.433e-01  9.708e-01  1.000e-04  1.000e+04 ( 1.000e-11)
244        alpha:  3.190e+00  9.496e-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.004e+00  1.367e-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:  8.136e-01  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.95
Ra Dec: 26.150 27.090
Photon Index (Free Index): 3.19 +/- 0.95
Photon Flux (Free Index): 1.76e-07 +/- 8.31e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.52e-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/826517/cmap_HighResolution_606355201_606614401_4FGL_J0144.6+2705_daily_bin1416.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='3.39e-05', photon_flux_error='4.54e-08', dlogl='1.90e+00', energy_flux='3.82e-05', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-08-14 15:50:10.461641', photon_index_error2='0.95', photon_index2='3.19', ts='4.90', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='0.94', time_epoch_completed='1628981410.46', return_code='0', job_id='826517', GAL2='1.00', EG2='0.81', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='8.31e-08', ts2='8.95', photon_index='2.03' WHERE bin_id='1416' AND source_name='4FGL J0144.6+2705' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 14 15:50:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 826517: <4FGL_J0144.6+2705_daily_bin1416> in cluster <slac> Done

Job <4FGL_J0144.6+2705_daily_bin1416> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Aug 14 15:35:34 2021
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 14 15:36:53 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:36:53 2021
Terminated at Sat Aug 14 15:50:11 2021
Results reported at Sat Aug 14 15:50:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0144.6+2705_daily_bin1416 26.1502 27.0899 606355201 606614401 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 :                                   775.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            877 sec.

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

