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


Performing analysis on: 4FGL_J0654.3+5042_daily_bin1406
RA = 103.596, Dec = 50.7027
tmin = 603763201, tmax = 604022401
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='954780', job_status='RUN', time_executed='2021-08-26 09:51:55.994069', time_epoch_executed='1629996715.99' WHERE source_name='4FGL J0654.3+5042' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954780

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954780/ft1_4FGL_J0654.3+5042_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954780/ft1_4FGL_J0654.3+5042_daily_bin1406.fits outfile=/scratch/kocevski/954780/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1406.fits ra=103.596 dec=50.7027 rad=12.0 tmin=603763201.0 tmax=604022401.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.58
user 3.98
sys 0.56

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.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/954780/ft1_filteredMKT_4FGL_J0654.3+5042_daily_bin1406.fits evtable="EVENTS" outfile="/scratch/kocevski/954780/ft1_filtered_4FGL_J0654.3+5042_daily_bin1406.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.86
user 0.32
sys 0.50

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954780/ft1_filtered_4FGL_J0654.3+5042_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/954780/ltcube_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.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/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits
.....................!
real 12.21
user 11.47
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954780/ft1_filtered_4FGL_J0654.3+5042_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/954780/ltcube_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.fits outfile=/scratch/kocevski/954780/expmap_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.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/954780/ltcube_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.fits
.....................!
real 191.32
user 186.10
sys 4.75

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Added 191 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0654.3+5042 @ 103.596 50.7027

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/954780/ft1_filtered_4FGL_J0654.3+5042_daily_bin1406.fits scfile=/scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits outfile=/scratch/kocevski/954780/cmap_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.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=103.596 yref=50.7027 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.87
user 0.37
sys 0.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954780/ft1_filtered_4FGL_J0654.3+5042_daily_bin1406.fits scfile=/scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits outfile=/scratch/kocevski/954780/cmap_HighResolution_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.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=103.596 yref=50.7027 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.88
user 0.37
sys 0.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/954780/ft1_filtered_4FGL_J0654.3+5042_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/954780/Model_4FGL_J0654.3+5042_daily_bin1406.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
adding source HB 9
Working on...
/scratch/kocevski/954780/ft1_filtered_4FGL_J0654.3+5042_daily_bin1406.fits.....................!
real 104.70
user 102.63
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/954780/ft1_filtered_4FGL_J0654.3+5042_daily_bin1406.fits', '/scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits', expMap='/scratch/kocevski/954780/expmap_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.fits', expCube='/scratch/kocevski/954780/ltcube_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/954780/Model_4FGL_J0654.3+5042_daily_bin1406.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0654.3+5042'

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  2.530e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/954780/ft1_filtered_4FGL_J0654.3+5042_daily_bin1406.fits
Spacecraft file(s): /scratch/kocevski/954780/ft2_4FGL_J0654.3+5042_daily_bin1406.fits
Exposure map: /scratch/kocevski/954780/expmap_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.fits
Exposure cube: /scratch/kocevski/954780/ltcube_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/954780/Model_4FGL_J0654.3+5042_daily_bin1406.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) = 6505.52276558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5331       1.0000         .10000E-03   10000.    
     3 'norm      '    4.3150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.937       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.967       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.824       1.0000         .10000E-03   10000.    
     8 'norm      '    .15656E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.0293       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.807       1.0000         .10000E-03   10000.    
    11 'norm      '    9.8545       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13355E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.559       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.020       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.670       1.0000         .10000E-03   10000.    
    16 'norm      '    20.056       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.481       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.494       1.0000         .10000E-03   10000.    
    19 'norm      '    1.2020       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.9664       1.0000         .10000E-03   10000.    
    23 'norm      '    2.7372       1.0000         .10000E-03   10000.    
    24 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .43318       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .98524       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6505.514     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3122 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.658        .46294E-07** at limit **
   2  norm          5.5320        3.0834        .85235E-07   -.59810E-05
   3  norm          4.3148        2.9360        .18994E-07    .91888E-05
   4  Prefactor     .10000E-03    9.7933        .55170E-07** at limit **
   5  Prefactor     12.932        9.3052        .17308E-06   -.40128E-04
   6  Prefactor     42.952        42.258        .46815E-06   -.38902E-04
   7  Prefactor     28.701        50.989        .56941E-06   -.48624E-04
   8  norm          .10003E-03    7.0063        .29464E-05** at limit **
   9  norm          1.0272        3.0985        .11973E-05    .17446E-04
  10  Prefactor     12.798        23.767        .17044E-06   -.12355E-04
  11  norm          9.8597        9.0953       -.10811E-05   -.80611E-03
  12  Prefactor     .10000E-03    47.787        .22435E-05** at limit **
  13  Prefactor     10.554        9.3358        .28868E-06   -.30297E-03
  14  Prefactor     29.015        25.575       -.16222E-06   -.21066E-03
  15  Prefactor     21.642        30.039        .34045E-06    .16152E-04
  16  norm          20.051        12.400        .11652E-06   -.78371E-04
  17  Prefactor     15.422        37.081        .72563E-06   -.57407E-05
  18  Prefactor     24.455        41.694        .72390E-06   -.44106E-04
  19  norm          1.2021        1.1617        .19515E-06    .17950E-04
  20  Prefactor     .10000E-03    3.8298       -.14018E-06** at limit **
  21  Prefactor     .10000E-03    6.8219        .40668E-07** at limit **
  22  norm          6.9653        3.4310        .38168E-07   -.94402E-05
  23  norm          2.7369        2.9280       -.59433E-07    .27563E-05
  24  norm          .10000E-03    1.3638        .31586E-07** at limit **
  25  Normalizat    .43390        .26233       -.42697E-05   -.25566E-03
  26  Prefactor     .98506        .10317        .36364E-06   -.68278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.53203
  norm       = 4.31475
  Prefactor  = 0.0001
  Prefactor  = 12.9319
  Prefactor  = 42.9522
  Prefactor  = 28.7014
  norm       = 0.000100034
  norm       = 1.02724
  Prefactor  = 12.798
  norm       = 9.8597
  Prefactor  = 0.0001
  Prefactor  = 10.5545
  Prefactor  = 29.0146
  Prefactor  = 21.642
  norm       = 20.0512
  Prefactor  = 15.422
  Prefactor  = 24.4547
  norm       = 1.20213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.96527
  norm       = 2.73693
  norm       = 0.0001
  Normalizat = 0.433896
  Prefactor  = 0.985055
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.514     FROM HESSE     STATUS=OK           462 CALLS     3584 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5320        3.0888        .10180E-03   -1.5238    
   3  norm          4.3148        2.9379        .11105E-03   -1.5292    
   4  Prefactor     .10000E-03    9.9167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.932        9.2949        .11137E-03   -1.4989    
   6  Prefactor     42.952        42.102        .61159E-04   -1.4396    
   7  Prefactor     28.701        50.797        .74624E-04   -1.4636    
   8  norm          .10003E-03    14.901        .34077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.0272        3.0435        .23785E-03   -1.5505    
  10  Prefactor     12.798        23.705        .11193E-03   -1.4992    
  11  norm          9.8597        9.1991        .12765E-03   -1.5080    
  12  Prefactor     .10000E-03    48.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.554        9.2968        .12330E-03   -1.5058    
  14  Prefactor     29.015        25.525        .74372E-04   -1.4630    
  15  Prefactor     21.642        29.900        .86043E-04   -1.4777    
  16  norm          20.051        12.383        .89435E-04   -1.4812    
  17  Prefactor     15.422        36.750        .10179E-03   -1.4922    
  18  Prefactor     24.455        41.518        .80939E-04   -1.4719    
  19  norm          1.2021        1.1307        .78609E-04   -1.5489    
  20  Prefactor     .10000E-03    3.8292        .15409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.8293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.9653        3.4301        .10161E-03   -1.5180    
  23  norm          2.7369        2.9332        .13931E-03   -1.5377    
  24  norm          .10000E-03    1.3900        .91986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .43390        .26169        .48647E-03   -1.1558    
  26  Prefactor     .98506        .10437        .14890E-03   -.93229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.77008e-09
Minuit parameter uncertainties:
  1  1.72873e-06
  2  3.08885
  3  2.93798
  4  1.99145e-05
  5  9.29594
  6  42.1311
  7  50.8736
  8  0.00141945
  9  3.04391
  10  23.7227
  11  9.20047
  12  2.4263e-05
  13  9.29808
  14  25.5343
  15  29.9202
  16  12.3845
  17  36.8043
  18  41.5671
  19  1.13072
  20  2.4413e-06
  21  6.23333e-06
  22  3.43021
  23  2.93331
  24  1.51026e-06
  25  0.262429
  26  0.104391
Done.

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

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.000e-04  1.419e-03  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.128e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  9.851e-01  1.044e-01  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  4.339e-01  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 103.596 50.703
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954780/likelihoodResults_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6505.5147756
delta logL = -0.000318603664709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6505.51445716
delta logL = -1.58845978149e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1558       1.0000          .0000       5.0000    
     3 'Normalizat'    .43377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98512       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6505.514     FROM MIGRAD    STATUS=FAILED        97 CALLS      269 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10053E-03    846.91        .33936E-02** at limit **
   2  alpha         2.2316        3.8133        .16662       -.15106E-05
   3  Normalizat    .43390        .43671E-01    .48646E-03    .16803E-04
   4  Prefactor     .98506        .19842E-01    .14890E-03    .48864E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6505.514     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      417 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10053E-03    846.91        .79297E-03** at limit **
   2  alpha         2.2316        3.8133        .17324E-04   -.15106E-05
   3  Normalizat    .43390        .43671E-01    .53403E-06    .16803E-04
   4  Prefactor     .98506        .19842E-01    .15551E-06    .48864E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6505.514     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      452 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.987        .11143E-04** at limit **
   2  alpha         2.2511        3.5403        .10554E-01    .40215E-07
   3  Normalizat    .43390        .21867       -.29819E-06   -.17884E-04
   4  Prefactor     .98506        .99558E-01    .64999E-07   -.32447E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.2511
  Normalizat = 0.433897
  Prefactor  = 0.985055
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.514     FROM HESSE     STATUS=OK            23 CALLS      475 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.144        .13574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2511        3.5588        .26660E-02   -.99725E-01
   3  Normalizat    .43390        .21855        .38917E-05   -1.1558    
   4  Prefactor     .98506        .99538E-01    .11912E-05   -.93229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90816e-11
Minuit parameter uncertainties:
  1  9.88676e-05
  2  176.405
  3  0.218986
  4  0.0995569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954780': 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) = 6505.51445676
delta logL = 2.38335815084e-07

Extracting fit parameters...

4FGL J0654.3+5042
   Spectrum: LogParabola
250         norm:  1.000e-04  9.887e-05  1.000e-04  1.000e+04 ( 1.000e-12)
251        alpha:  2.251e+00  1.764e+02  0.000e+00  5.000e+00 ( 1.000e+00)
252         beta:  8.007e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
253           Eb:  8.361e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
622    Prefactor:  9.851e-01  9.956e-02  0.000e+00  1.000e+01 ( 1.000e+00)
623        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
624        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
621   Normalization:  4.339e-01  2.190e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 103.596 50.703

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/954780/cmap_HighResolution_603763201_604022401_4FGL_J0654.3+5042_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-05', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-08-26 10:06:09.286366', job_id='954780', GAL2='0.99', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1629997569.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1406' AND source_name='4FGL J0654.3+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 26 10:06:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 954780: <4FGL_J0654.3+5042_daily_bin1406> in cluster <slac> Done

Job <4FGL_J0654.3+5042_daily_bin1406> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Thu Aug 26 09:50:35 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 26 09:50:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 26 09:50:37 2021
Terminated at Thu Aug 26 10:06:10 2021
Results reported at Thu Aug 26 10:06:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0654.3+5042_daily_bin1406 103.596 50.7027 603763201 604022401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0654.3+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   855.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             338.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            935 sec.

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

