/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 0 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 = 7548
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0725.5+0216_daily_bin149
RA = 111.39, Dec = 2.2749
tmin = 277948801, tmax = 278208001
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='323163', job_status='RUN', time_executed='2021-08-27 05:46:17.743269', time_epoch_executed='1630068377.74' WHERE source_name='4FGL J0725.5+0216' and cadence='daily' and bin_id='149'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323163

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323163/ft1_4FGL_J0725.5+0216_daily_bin149.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323163/ft1_4FGL_J0725.5+0216_daily_bin149.fits outfile=/scratch/kocevski/323163/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin149.fits ra=111.39 dec=2.2749 rad=12.0 tmin=277948801.0 tmax=278208001.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.59
user 3.97
sys 0.53

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.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/323163/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin149.fits evtable="EVENTS" outfile="/scratch/kocevski/323163/ft1_filtered_4FGL_J0725.5+0216_daily_bin149.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.34
sys 0.45

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323163/ft1_filtered_4FGL_J0725.5+0216_daily_bin149.fits" evtable="EVENTS" scfile=/scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits sctable="SC_DATA" outfile=/scratch/kocevski/323163/ltcube_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.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/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits
.....................!
real 12.51
user 11.77
sys 0.67

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323163/ft1_filtered_4FGL_J0725.5+0216_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits sctable="SC_DATA" expcube=/scratch/kocevski/323163/ltcube_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.fits outfile=/scratch/kocevski/323163/expmap_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.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/323163/ltcube_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.fits
.....................!
real 190.37
user 185.16
sys 4.78

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 Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 154 point sources and 2 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 J0725.5+0216 @ 111.39 2.2749

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/323163/ft1_filtered_4FGL_J0725.5+0216_daily_bin149.fits scfile=/scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits outfile=/scratch/kocevski/323163/cmap_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.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=111.39 yref=2.2749 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.01
user 0.35
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/323163/ft1_filtered_4FGL_J0725.5+0216_daily_bin149.fits scfile=/scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits outfile=/scratch/kocevski/323163/cmap_HighResolution_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.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=111.39 yref=2.2749 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.21
user 0.38
sys 0.46

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/323163/ft1_filtered_4FGL_J0725.5+0216_daily_bin149.fits evtable="EVENTS" scfile=/scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/323163/Model_4FGL_J0725.5+0216_daily_bin149.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 Monoceros
adding source Rosette
Working on...
/scratch/kocevski/323163/ft1_filtered_4FGL_J0725.5+0216_daily_bin149.fits.....................!
real 166.67
user 164.43
sys 1.64

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/323163/ft1_filtered_4FGL_J0725.5+0216_daily_bin149.fits', '/scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits', expMap='/scratch/kocevski/323163/expmap_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.fits', expCube='/scratch/kocevski/323163/ltcube_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/323163/Model_4FGL_J0725.5+0216_daily_bin149.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0725.5+0216'

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  8.002e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/323163/ft1_filtered_4FGL_J0725.5+0216_daily_bin149.fits
Spacecraft file(s): /scratch/kocevski/323163/ft2_4FGL_J0725.5+0216_daily_bin149.fits
Exposure map: /scratch/kocevski/323163/expmap_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.fits
Exposure cube: /scratch/kocevski/323163/ltcube_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/323163/Model_4FGL_J0725.5+0216_daily_bin149.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) = 10488.3665323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4220       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.7295       1.0000         .10000E-03   10000.    
     5 'norm      '    .33242       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.8254       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .91407       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.033       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5742       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9151       1.0000         .10000E-03   10000.    
    14 'norm      '    17.974       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12734E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5413       1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.019       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9840       1.0000         .10000E-03   10000.    
    20 'norm      '    7.4791       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2594       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10488.36     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2401 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4218        6.2384        .29739E-07    .80677E-03
   2  norm          .10000E-03    8.8753        .95495E-08** at limit **
   3  Prefactor     .10000E-03    84.311        .17485E-05** at limit **
   4  norm          5.7295        5.5215        .13382E-07    .34366E-04
   5  norm          .33256        1.6024       -.38462E-07    .37078E-03
   6  Prefactor     .10000E-03    17.752        .13189E-06** at limit **
   7  Prefactor     5.8266        9.2414       -.63852E-07    .38091E-03
   8  Prefactor     .10000E-03    33.909        .30376E-05** at limit **
   9  Prefactor     .10000E-03    22.911       -.54885E-06** at limit **
  10  norm          .91427        1.3745        .55202E-06    .18119E-02
  11  Prefactor     12.033        22.562       -.15113E-06   -.24016E-05
  12  norm          3.5746        20.919        .25072E-06    .19298E-03
  13  Prefactor     3.9141        5.3346       -.24645E-06   -.57328E-04
  14  norm          17.959        17.710       -.22834E-06   -.11786E-03
  15  Prefactor     .10013E-03    33.677        .48105E-05** at limit **
  16  Prefactor     2.5422        5.8723       -.80642E-07    .10364E-02
  17  Prefactor     32.031        41.469        .23070E-05    .54764E-04
  18  norm          .10000E-03    4.1691       -.37922E-07** at limit **
  19  norm          1.9849        77.241       -.85605E-05   -.39832E-04
  20  norm          7.4794        4.7830       -.16504E-07    .36275E-04
  21  Normalizat    1.2593        .24019        .18618E-05    .44204E-04
  22  Prefactor     1.0463        .58013E-01   -.76230E-07    .23663E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.42185
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.72948
  norm       = 0.332563
  Prefactor  = 0.0001
  Prefactor  = 5.82661
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.914266
  Prefactor  = 12.0335
  norm       = 3.57464
  Prefactor  = 3.91409
  norm       = 17.9593
  Prefactor  = 0.000100133
  Prefactor  = 2.54218
  Prefactor  = 32.0312
  norm       = 0.0001
  norm       = 1.98486
  norm       = 7.47942
  Normalizat = 1.25927
  Prefactor  = 1.04626
 **********
 **   18 **HESSE 
 **********

 FCN=   10488.36     FROM HESSE     STATUS=OK           352 CALLS     2753 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4218        6.5063        .95753E-03   -1.5287    
   2  norm          .10000E-03    8.8829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    84.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.7295        5.5213        .16780E-03   -1.5229    
   5  norm          .33256        1.6368        .24924E-03   -1.5593    
   6  Prefactor     .10000E-03    17.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.8266        9.3661        .83198E-03   -1.5225    
   8  Prefactor     .10000E-03    34.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .91427        1.2031        .15662E-02   -1.5517    
  11  Prefactor     12.033        22.560        .11548E-03   -1.5014    
  12  norm          3.5746        21.867        .10688E-02   -1.5330    
  13  Prefactor     3.9141        5.3009        .20390E-03   -1.5312    
  14  norm          17.959        17.305        .94471E-04   -1.4860    
  15  Prefactor     .10013E-03    48.567        .48328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5422        6.6966        .12809E-02   -1.5389    
  17  Prefactor     32.031        41.259        .70812E-04   -1.4575    
  18  norm          .10000E-03    4.1756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9849        74.417        .29422E-03   -1.5426    
  20  norm          7.4794        4.7842        .14665E-03   -1.5161    
  21  Normalizat    1.2593        .24291        .49304E-03   -.84791    
  22  Prefactor     1.0463        .61197E-01    .14277E-03   -.91203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60638e-09
Minuit parameter uncertainties:
  1  6.50735
  2  7.89376e-07
  3  0.000673576
  4  5.52181
  5  1.47542
  6  2.0506e-05
  7  9.36846
  8  0.000491261
  9  0.000167642
  10  1.20312
  11  22.5759
  12  17.6916
  13  5.30153
  14  17.31
  15  0.00508016
  16  6.69856
  17  41.296
  18  4.67983e-06
  19  24.339
  20  4.78443
  21  0.243128
  22  0.0612012
Done.

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

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.000e-04  2.051e-05  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.046e+00  6.120e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.259e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 111.390 2.275
Photon Flux Upper Limit: 6.53e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/323163/likelihoodResults_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.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) = 10488.3563836
delta logL = -0.000268323256023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10488.3561153
delta logL = -2.30629666476e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0114       1.0000          .0000       10.000    
     3 'Normalizat'    1.2592       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    .5300E+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=   10488.36     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      248 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1728.5        .18142E-02** at limit **
   2  Index         2.0000        8.9525        .50000        .49929E-05
   3  Normalizat    1.2593        .83827E-01    .49304E-03    .18031E-03
   4  Prefactor     1.0463        .22589E-01    .14277E-03    .56454E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00004
  Normalizat = 1.25927
  Prefactor  = 1.04626
 **********
 **   18 **HESSE 
 **********

 FCN=   10488.36     FROM HESSE     STATUS=OK            29 CALLS      277 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0000        5.3851        .50000       -.64349    
   3  Normalizat    1.2593        .21724        .19722E-04   -.84791    
   4  Prefactor     1.0463        .58574E-01    .28554E-04   -.91203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1462e-10
Minuit parameter uncertainties:
  1  0.000295759
  2  6.57573
  3  0.217393
  4  0.0585776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323163': 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) = 10488.3561152
delta logL = 2.86981958197e-08

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.000e-04  2.958e-04  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.000e+00  6.576e+00  0.000e+00  1.000e+01 (-1.000e+00)
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  1.046e+00  5.858e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  1.259e+00  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 111.390 2.275

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/323163/cmap_HighResolution_277948801_278208001_4FGL_J0725.5+0216_daily_bin149.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.91e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-08-27 06:01:49.470980', job_id='323163', GAL2='1.05', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630069309.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='149' AND source_name='4FGL J0725.5+0216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 06:01:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 323163: <4FGL_J0725.5+0216_daily_bin149> in cluster <slac> Done

Job <4FGL_J0725.5+0216_daily_bin149> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 27 05:45:48 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 05:46:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 05:46:03 2021
Terminated at Fri Aug 27 06:01:50 2021
Results reported at Fri Aug 27 06:01:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0725.5+0216_daily_bin149 111.39 2.2749 277948801 278208001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0725.5+0216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   931.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             355.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            962 sec.

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

