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


Performing analysis on: 4FGL_J1443.9+2501_daily_bin123
RA = 220.993, Dec = 25.0291
tmin = 271209601, tmax = 271468801
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='718717', job_status='RUN', time_executed='2021-09-10 06:05:11.767303', time_epoch_executed='1631279111.77' WHERE source_name='4FGL J1443.9+2501' and cadence='daily' and bin_id='123'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/718717

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/718717/ft1_4FGL_J1443.9+2501_daily_bin123.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/718717/ft1_4FGL_J1443.9+2501_daily_bin123.fits outfile=/scratch/kocevski/718717/ft1_filteredMKT_4FGL_J1443.9+2501_daily_bin123.fits ra=220.993 dec=25.0291 rad=12.0 tmin=271209601.0 tmax=271468801.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 1.66
user 1.41
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.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/718717/ft1_filteredMKT_4FGL_J1443.9+2501_daily_bin123.fits evtable="EVENTS" outfile="/scratch/kocevski/718717/ft1_filtered_4FGL_J1443.9+2501_daily_bin123.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/718717/ft1_filtered_4FGL_J1443.9+2501_daily_bin123.fits" evtable="EVENTS" scfile=/scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits sctable="SC_DATA" outfile=/scratch/kocevski/718717/ltcube_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.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/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits
.....................!
real 12.16
user 11.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/718717/ft1_filtered_4FGL_J1443.9+2501_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits sctable="SC_DATA" expcube=/scratch/kocevski/718717/ltcube_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.fits outfile=/scratch/kocevski/718717/expmap_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.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/718717/ltcube_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.fits
.....................!
real 192.93
user 187.32
sys 5.25

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

Setting source of interest to:
4FGL J1443.9+2501 @ 220.993 25.0291

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/718717/ft1_filtered_4FGL_J1443.9+2501_daily_bin123.fits scfile=/scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits outfile=/scratch/kocevski/718717/cmap_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.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=220.993 yref=25.0291 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/718717/ft1_filtered_4FGL_J1443.9+2501_daily_bin123.fits scfile=/scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits outfile=/scratch/kocevski/718717/cmap_HighResolution_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.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=220.993 yref=25.0291 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.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/718717/ft1_filtered_4FGL_J1443.9+2501_daily_bin123.fits evtable="EVENTS" scfile=/scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/718717/Model_4FGL_J1443.9+2501_daily_bin123.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/718717/ft1_filtered_4FGL_J1443.9+2501_daily_bin123.fits.....................!
real 52.97
user 51.55
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/718717/ft1_filtered_4FGL_J1443.9+2501_daily_bin123.fits', '/scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits', expMap='/scratch/kocevski/718717/expmap_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.fits', expCube='/scratch/kocevski/718717/ltcube_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/718717/Model_4FGL_J1443.9+2501_daily_bin123.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1443.9+2501'

4FGL J1443.9+2501
   Spectrum: LogParabola
258         norm:  8.435e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  1.967e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.003e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  8.502e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/718717/ft1_filtered_4FGL_J1443.9+2501_daily_bin123.fits
Spacecraft file(s): /scratch/kocevski/718717/ft2_4FGL_J1443.9+2501_daily_bin123.fits
Exposure map: /scratch/kocevski/718717/expmap_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.fits
Exposure cube: /scratch/kocevski/718717/ltcube_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/718717/Model_4FGL_J1443.9+2501_daily_bin123.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) = 6889.45922901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0626       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .69716       1.0000         .10000E-03   10000.    
     3 'norm      '    9.2321       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5477       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1234       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6146       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.051       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9391       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50968       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7644       1.0000         .10000E-03   10000.    
    15 'norm      '    3.5046       1.0000         .10000E-03   10000.    
    16 'Prefactor '    47.291       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.161       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89778       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .98900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6889.452     FROM MIGRAD    STATUS=CONVERGED    476 CALLS     2356 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0622        3.4902        .48220E-06   -.16107E-04
   2  Prefactor     .69802        11.041       -.89246E-06   -.88618E-04
   3  norm          9.2325        2.9057        .27510E-07    .17204E-04
   4  Prefactor     1.5467        1.9177        .26490E-06   -.17608E-02
   5  norm          1.1236        2.3293       -.43832E-07   -.55588E-04
   6  norm          2.6146        3.9788       -.12649E-05   -.56514E-04
   7  Prefactor     19.053        21.041        .43881E-06   -.58499E-05
   8  Prefactor     1.9253        47.905        .67841E-06   -.14371E-03
   9  norm          .10000E-03    5.5666       -.46941E-05** at limit **
  10  Prefactor     .10000E-03    4.9112        .17298E-05** at limit **
  11  Prefactor     .10000E-03    5.8992        .34059E-05** at limit **
  12  Prefactor     .47620        11.763        .16506E-06   -.85181E-04
  13  Prefactor     .10000E-03    18.611        .89593E-06** at limit **
  14  Prefactor     6.7684        8.5060       -.18538E-06   -.58294E-05
  15  norm          3.4873        57.583       -.39777E-04   -.47430E-05
  16  Prefactor     47.297        46.881        .63716E-05    .87203E-05
  17  Prefactor     .10000E-03    3.4106       -.36400E-07** at limit **
  18  norm          18.161        2.4534        .16139E-07    .26357E-04
  19  Prefactor     .10000E-03    4.2821       -.42225E-06** at limit **
  20  Prefactor     .10000E-03    14.830       -.87471E-06** at limit **
  21  Normalizat    .89762        .17859       -.11883E-05    .58695E-04
  22  Prefactor     .98911        .14504        .69775E-06   -.46447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.06216
  Prefactor  = 0.698024
  norm       = 9.23246
  Prefactor  = 1.54669
  norm       = 1.12359
  norm       = 2.61461
  Prefactor  = 19.0526
  Prefactor  = 1.92532
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.476203
  Prefactor  = 0.0001
  Prefactor  = 6.76838
  norm       = 3.48727
  Prefactor  = 47.2972
  Prefactor  = 0.0001
  norm       = 18.161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.897618
  Prefactor  = 0.989114
 **********
 **   18 **HESSE 
 **********

 FCN=   6889.452     FROM HESSE     STATUS=OK           350 CALLS     2706 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0622        3.5032        .13649E-03   -1.5305    
   2  Prefactor     .69802        11.528        .48204E-03   -1.5541    
   3  norm          9.2325        2.9062        .77142E-04   -1.5100    
   4  Prefactor     1.5467        5.4959        .16838E-02   -1.5459    
   5  norm          1.1236        2.2893        .17358E-03   -1.5496    
   6  norm          2.6146        3.9688        .19646E-03   -1.5385    
   7  Prefactor     19.053        21.087        .91764E-04   -1.4835    
   8  Prefactor     1.9253        48.675        .14908E-02   -1.5430    
   9  norm          .10000E-03    5.5936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.9236        .17963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.9132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .47620        87.484        .54126E-02   -1.5570    
  13  Prefactor     .10000E-03    18.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7684        8.5116        .15427E-03   -1.5188    
  15  norm          3.4873        57.774        .21596E-03   -1.5334    
  16  Prefactor     47.297        46.972        .58307E-04   -1.4331    
  17  Prefactor     .10000E-03    3.4313        .14968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.161        2.4553        .46039E-04   -1.4855    
  19  Prefactor     .10000E-03    4.2883        .16768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .89762        .20822        .28171E-03   -.96544    
  22  Prefactor     .98911        .16930        .21947E-03   -.93093    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79191e-08
Minuit parameter uncertainties:
  1  3.50341
  2  5.67437
  3  2.90625
  4  5.49767
  5  2.28949
  6  3.96915
  7  21.0955
  8  19.3785
  9  9.89335e-07
  10  4.65728e-07
  11  5.40486e-06
  12  12.9268
  13  1.73115e-06
  14  8.51315
  15  28.4202
  16  47.0091
  17  1.05617e-06
  18  2.45528
  19  3.83633e-07
  20  1.36584e-06
  21  0.208405
  22  0.169388
Done.

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

Extracting fit parameters...

4FGL J1443.9+2501
   Spectrum: LogParabola
258         norm:  2.615e+00  3.969e+00  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  1.967e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.003e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  8.502e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.891e-01  1.694e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  8.976e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 220.993 25.029
Photon Flux Upper Limit: 7.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/718717/likelihoodResults_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.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) = 6888.81847399
delta logL = 0.633432812917

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6888.3921486
delta logL = 1.05975819837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .99322E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .79689       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0463       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+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=   6888.392     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      362 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .99277E-01    .72413E-01    .17964E-03    .10478E-01
   2  alpha         5.0000        3.0960        .52606E-01** at limit **
   3  Normalizat    .79766        .20728        .29724E-03   -.19889E-04
   4  Prefactor     1.0457        .16564        .21412E-03    .11734E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0992769
  alpha      = 5
  Normalizat = 0.797656
  Prefactor  = 1.04572
 **********
 **   18 **HESSE 
 **********

 FCN=   6888.392     FROM HESSE     STATUS=OK            25 CALLS      387 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .99277E-01    .71348E-01    .35927E-04   -1.5645    
   2  alpha         5.0000        3.0941        .21043E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .79766        .20744        .11890E-04   -1.0016    
   4  Prefactor     1.0457        .16579        .85649E-05   -.91220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1563e-11
Minuit parameter uncertainties:
  1  0.0713478
  2  6.98433e-06
  3  0.207641
  4  0.165872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/718717': 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) = 6888.39214144
delta logL = 1.05976536536

Extracting fit parameters...

4FGL J1443.9+2501
   Spectrum: LogParabola
258         norm:  9.928e-02  7.135e-02  1.000e-04  1.000e+04 ( 1.000e-12)
259        alpha:  5.000e+00  6.984e-06  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  1.003e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  8.502e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.046e+00  1.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  7.977e-01  2.076e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.90
Ra Dec: 220.993 25.029
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 7.72e-08 +/- 5.52e-08
Energy Flux (Free Index): 1.06e-05 +/- 7.57e-06

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/718717/cmap_HighResolution_271209601_271468801_4FGL_J1443.9+2501_daily_bin123.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-05', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='1.06e+00', photon_flux2='7.72e-08', job_status='DONE', time_completed='2021-09-10 06:15:35.102419', photon_index_error2='0.00', photon_index2='5.00', ts='0.60', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='7.10e-08', energy_flux_error2='7.57e-06', EG='0.90', time_epoch_completed='1631279735.1', return_code='0', job_id='718717', GAL2='1.05', EG2='0.80', return_code2='0', photon_flux_error2='5.52e-08', ts2='2.90', photon_index='1.97' WHERE bin_id='123' AND source_name='4FGL J1443.9+2501' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 06:15:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 718717: <4FGL_J1443.9+2501_daily_bin123> in cluster <slac> Done

Job <4FGL_J1443.9+2501_daily_bin123> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep 10 06:01:40 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 06:01:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 06:01:44 2021
Terminated at Fri Sep 10 06:15:35 2021
Results reported at Fri Sep 10 06:15:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1443.9+2501_daily_bin123 220.993 25.0291 271209601 271468801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1443.9+2501 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   623.08 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            835 sec.

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

