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


Performing analysis on: 4FGL_J0904.0+2724_daily_bin70
RA = 136.009, Dec = 27.4041
tmin = 257472001, tmax = 257731201
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='948009', job_status='RUN', time_executed='2021-08-30 21:32:35.993220', time_epoch_executed='1630384355.99' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='70'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948009

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948009/ft1_4FGL_J0904.0+2724_daily_bin70.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948009/ft1_4FGL_J0904.0+2724_daily_bin70.fits outfile=/scratch/kocevski/948009/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin70.fits ra=136.009 dec=27.4041 rad=12.0 tmin=257472001.0 tmax=257731201.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 2.98
user 1.86
sys 0.99

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.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/948009/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin70.fits evtable="EVENTS" outfile="/scratch/kocevski/948009/ft1_filtered_4FGL_J0904.0+2724_daily_bin70.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.34
user 0.33
sys 0.99

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948009/ft1_filtered_4FGL_J0904.0+2724_daily_bin70.fits" evtable="EVENTS" scfile=/scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits sctable="SC_DATA" outfile=/scratch/kocevski/948009/ltcube_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.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/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits
.....................!
real 14.42
user 13.14
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948009/ft1_filtered_4FGL_J0904.0+2724_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits sctable="SC_DATA" expcube=/scratch/kocevski/948009/ltcube_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.fits outfile=/scratch/kocevski/948009/expmap_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.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/948009/ltcube_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.fits
.....................!
real 194.16
user 186.10
sys 6.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 166 point sources and 0 extended sources

Setting source of interest to:
4FGL J0904.0+2724 @ 136.009 27.4041

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/948009/ft1_filtered_4FGL_J0904.0+2724_daily_bin70.fits scfile=/scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits outfile=/scratch/kocevski/948009/cmap_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.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=136.009 yref=27.4041 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.40
user 0.36
sys 0.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948009/ft1_filtered_4FGL_J0904.0+2724_daily_bin70.fits scfile=/scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits outfile=/scratch/kocevski/948009/cmap_HighResolution_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.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=136.009 yref=27.4041 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.50
user 0.37
sys 0.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948009/ft1_filtered_4FGL_J0904.0+2724_daily_bin70.fits evtable="EVENTS" scfile=/scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948009/Model_4FGL_J0904.0+2724_daily_bin70.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/948009/ft1_filtered_4FGL_J0904.0+2724_daily_bin70.fits.....................!
real 72.96
user 69.85
sys 2.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948009/ft1_filtered_4FGL_J0904.0+2724_daily_bin70.fits', '/scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits', expMap='/scratch/kocevski/948009/expmap_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.fits', expCube='/scratch/kocevski/948009/ltcube_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948009/Model_4FGL_J0904.0+2724_daily_bin70.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0904.0+2724'

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  4.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/948009/ft1_filtered_4FGL_J0904.0+2724_daily_bin70.fits
Spacecraft file(s): /scratch/kocevski/948009/ft2_4FGL_J0904.0+2724_daily_bin70.fits
Exposure map: /scratch/kocevski/948009/expmap_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.fits
Exposure cube: /scratch/kocevski/948009/ltcube_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948009/Model_4FGL_J0904.0+2724_daily_bin70.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) = 8062.08742136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.056       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.448       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5278       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.846       1.0000         .10000E-03   10000.    
     5 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.515       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7969       1.0000         .10000E-03   10000.    
     8 'norm      '    .95806       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.7539       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7872       1.0000         .10000E-03   10000.    
    11 'norm      '    15.851       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1383       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1435       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.658       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3129       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.135       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1415       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78891       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8062.024     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     2434 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.054        25.183       -.25596E-05    .58787E-04
   2  Prefactor     22.448        22.641        .47432E-06    .50001E-06
   3  Prefactor     8.5294        25.948        .36212E-05   -.42370E-04
   4  Prefactor     29.856        17.390        .91515E-05   -.80192E-04
   5  norm          .10000E-03    .40653       -.77670E-06** at limit **
   6  Prefactor     11.517        8.1405       -.87646E-06    .37420E-03
   7  Prefactor     3.7967        5.3019       -.29868E-06   -.33706E-03
   8  norm          .95799        .51723        .71974E-07    .12768E-03
   9  Prefactor     5.7540        8.1917        .13091E-06   -.11596E-03
  10  Prefactor     2.7866        11.004       -.61662E-06   -.14320E-03
  11  norm          15.850        20.614       -.84109E-06    .29571E-04
  12  Prefactor     2.1383        2.7729       -.29749E-06   -.48066E-03
  13  Prefactor     .10000E-03    15.506       -.33346E-05** at limit **
  14  norm          2.1434        1.3318        .56052E-08    .18177E-03
  15  Prefactor     .10000E-03    8.0931       -.49431E-06** at limit **
  16  Prefactor     38.657        36.061       -.10556E-05    .31666E-04
  17  Prefactor     6.3125        4.0197       -.59078E-07   -.26144E-03
  18  Prefactor     .10000E-03    11.416       -.28773E-05** at limit **
  19  Prefactor     .10000E-03    14.032        .57597E-05** at limit **
  20  Prefactor     16.135        9.8656        .18722E-06   -.24391E-04
  21  Normalizat    1.1416        .15385       -.20401E-05    .45870E-03
  22  Prefactor     .78885        .13718        .29470E-06    .15271E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0544
  Prefactor  = 22.4481
  Prefactor  = 8.52935
  Prefactor  = 29.8556
  norm       = 0.000100002
  Prefactor  = 11.5173
  Prefactor  = 3.79666
  norm       = 0.957985
  Prefactor  = 5.75395
  Prefactor  = 2.78657
  norm       = 15.8501
  Prefactor  = 2.13829
  Prefactor  = 0.0001
  norm       = 2.14341
  Prefactor  = 0.0001
  Prefactor  = 38.6573
  Prefactor  = 6.31246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1345
  Normalizat = 1.14156
  Prefactor  = 0.788852
 **********
 **   18 **HESSE 
 **********

 FCN=   8062.024     FROM HESSE     STATUS=OK           352 CALLS     2786 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.054        25.161        .85288E-04   -1.4768    
   2  Prefactor     22.448        22.629        .84542E-04   -1.4760    
   3  Prefactor     8.5294        25.890        .13727E-03   -1.5124    
   4  Prefactor     29.856        17.413        .73338E-04   -1.4615    
   5  norm          .10000E-03    .67458        .11017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.517        8.0545        .11805E-03   -1.5029    
   7  Prefactor     3.7967        5.2989        .20716E-03   -1.5318    
   8  norm          .95799        .51949        .45067E-04   -1.5512    
   9  Prefactor     5.7540        8.1725        .16744E-03   -1.5228    
  10  Prefactor     2.7866        11.024        .24372E-03   -1.5374    
  11  norm          15.850        20.607        .10060E-03   -1.4912    
  12  Prefactor     2.1383        2.7651        .16449E-03   -1.5416    
  13  Prefactor     .10000E-03    15.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1434        1.3325        .78571E-04   -1.5415    
  15  Prefactor     .10000E-03    8.1023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     38.657        36.066        .64464E-04   -1.4464    
  17  Prefactor     6.3125        4.0397        .13341E-03   -1.5205    
  18  Prefactor     .10000E-03    11.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.135        9.8758        .99709E-04   -1.4904    
  21  Normalizat    1.1416        .17969        .23194E-03   -.88428    
  22  Prefactor     .78885        .15992        .25274E-03   -1.0014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54806e-09
Minuit parameter uncertainties:
  1  25.1728
  2  22.6375
  3  25.9239
  4  17.4155
  5  6.81742e-05
  6  8.05522
  7  5.29956
  8  0.519489
  9  8.17412
  10  11.032
  11  20.6166
  12  2.76524
  13  0.000105185
  14  1.33247
  15  2.04647e-05
  16  36.0862
  17  4.03992
  18  9.38293e-05
  19  0.000149212
  20  9.87684
  21  0.179782
  22  0.160009
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.787e+00  1.103e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.793e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  7.889e-01  1.600e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.142e+00  1.798e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 136.009 27.404
Photon Flux Upper Limit: 7.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948009/likelihoodResults_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.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) = 8062.02105665
delta logL = 0.00277808673764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8062.02103121
delta logL = 0.00280353074686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7492       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9285       1.0000          .0000       10.000    
     3 'Normalizat'    1.1406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78934       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+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=   8062.021     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      281 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7435        11.126        .12276E-02   -.77976E-05
   2  Index         2.9263        1.8318        .18588E-01   -.31248E-05
   3  Normalizat    1.1407        .17178        .23202E-03   -.12789E-04
   4  Prefactor     .78933        .15755        .25267E-03   -.63441E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.74345
  Index      = 2.92633
  Normalizat = 1.14071
  Prefactor  = 0.789332
 **********
 **   18 **HESSE 
 **********

 FCN=   8062.021     FROM HESSE     STATUS=OK            27 CALLS      308 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7435        10.638        .49104E-04   -1.5377    
   2  Index         2.9263        1.7699        .74352E-03   -.42765    
   3  Normalizat    1.1407        .17197        .92808E-05   -.88455    
   4  Prefactor     .78933        .15770        .10107E-04   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54691e-12
Minuit parameter uncertainties:
  1  10.6453
  2  1.81788
  3  0.172054
  4  0.157792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948009': 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) = 8062.02103
delta logL = 0.00280473697057

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.743e+00  1.065e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.926e+00  1.818e+00  0.000e+00  1.000e+01 (-1.000e+00)
272        Scale:  3.968e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  7.893e-01  1.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  1.141e+00  1.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 136.009 27.404

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/948009/cmap_HighResolution_257472001_257731201_4FGL_J0904.0+2724_daily_bin70.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-08-30 21:44:49.835203', job_id='948009', GAL2='0.79', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630385089.84', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.80e-03', ts2='0.08', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='70' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:44:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 948009: <4FGL_J0904.0+2724_daily_bin70> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin70> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 21:30:28 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:30:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 21:30:31 2021
Terminated at Mon Aug 30 21:44:50 2021
Results reported at Mon Aug 30 21:44:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin70 136.009 27.4041 257472001 257731201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0904.0+2724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   742.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

