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


Performing analysis on: 4FGL_J0904.0+2724_daily_bin8
RA = 136.009, Dec = 27.4041
tmin = 241401601, tmax = 241660801
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='947919', job_status='RUN', time_executed='2021-08-30 21:35:29.062512', time_epoch_executed='1630384529.06' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947919

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947919/ft1_4FGL_J0904.0+2724_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947919/ft2_4FGL_J0904.0+2724_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947919/ft1_4FGL_J0904.0+2724_daily_bin8.fits outfile=/scratch/kocevski/947919/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin8.fits ra=136.009 dec=27.4041 rad=12.0 tmin=241401601.0 tmax=241660801.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 5.80
user 1.29
sys 4.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/947919/ft2_4FGL_J0904.0+2724_daily_bin8.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/947919/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin8.fits evtable="EVENTS" outfile="/scratch/kocevski/947919/ft1_filtered_4FGL_J0904.0+2724_daily_bin8.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 4.79
user 0.34
sys 4.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947919/ft1_filtered_4FGL_J0904.0+2724_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/947919/ft2_4FGL_J0904.0+2724_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/947919/ltcube_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.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/947919/ft2_4FGL_J0904.0+2724_daily_bin8.fits
.....................!
real 18.44
user 13.23
sys 5.09

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947919/ft1_filtered_4FGL_J0904.0+2724_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/947919/ft2_4FGL_J0904.0+2724_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/947919/ltcube_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.fits outfile=/scratch/kocevski/947919/expmap_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.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/947919/ltcube_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.fits
.....................!
real 196.49
user 185.45
sys 10.03

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/947919/ft1_filtered_4FGL_J0904.0+2724_daily_bin8.fits scfile=/scratch/kocevski/947919/ft2_4FGL_J0904.0+2724_daily_bin8.fits outfile=/scratch/kocevski/947919/cmap_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.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 4.73
user 0.39
sys 4.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947919/ft1_filtered_4FGL_J0904.0+2724_daily_bin8.fits scfile=/scratch/kocevski/947919/ft2_4FGL_J0904.0+2724_daily_bin8.fits outfile=/scratch/kocevski/947919/cmap_HighResolution_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.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 4.32
user 0.39
sys 3.84

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/947919/ft1_filtered_4FGL_J0904.0+2724_daily_bin8.fits', '/scratch/kocevski/947919/ft2_4FGL_J0904.0+2724_daily_bin8.fits', expMap='/scratch/kocevski/947919/expmap_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.fits', expCube='/scratch/kocevski/947919/ltcube_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/947919/Model_4FGL_J0904.0+2724_daily_bin8.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/947919/ft1_filtered_4FGL_J0904.0+2724_daily_bin8.fits
Spacecraft file(s): /scratch/kocevski/947919/ft2_4FGL_J0904.0+2724_daily_bin8.fits
Exposure map: /scratch/kocevski/947919/expmap_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.fits
Exposure cube: /scratch/kocevski/947919/ltcube_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/947919/Model_4FGL_J0904.0+2724_daily_bin8.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) = 5913.90054416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.132       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.645       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6542       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6939       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.219       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0977       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.5760       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.4478       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30742       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.0001       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .49188E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9873       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95049       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0428       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=   5913.870     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2027 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5420       -.41519E-07** at limit **
   2  Prefactor     12.130        18.910        .32930E-06    .22140E-04
   3  Prefactor     .10000E-03    5.6603        .25742E-07** at limit **
   4  Prefactor     23.646        22.046       -.15210E-06   -.72474E-04
   5  norm          2.6540        1.3742       -.11263E-07   -.25572E-03
   6  Prefactor     1.6916        6.6951        .26107E-05    .11695E-03
   7  Prefactor     20.217        10.195        .26701E-06    .22302E-03
   8  norm          1.0973        .87305       -.18901E-06   -.62119E-03
   9  Prefactor     4.5756        10.074        .44838E-05   -.66782E-03
  10  Prefactor     .10000E-03    13.377       -.16834E-06** at limit **
  11  norm          7.4434        22.935        .45598E-06    .35000E-04
  12  Prefactor     .10000E-03    1.2463        .45400E-07** at limit **
  13  Prefactor     .10000E-03    29.393       -.99872E-06** at limit **
  14  norm          .10000E-03    .55346       -.91735E-07** at limit **
  15  Prefactor     .25364        17.411       -.95739E-07    .34640E-04
  16  Prefactor     .10000E-03    41.974        .13128E-05** at limit **
  17  Prefactor     6.9987        4.6838        .15899E-05   -.16908E-02
  18  Prefactor     .10000E-03    10.642       -.12425E-06** at limit **
  19  Prefactor     .10047E-03    529.69       -.42290E-04** at limit **
  20  Prefactor     3.0001        9.3780       -.37794E-05   -.56051E-03
  21  Normalizat    .95069        .17801       -.44330E-06    .13445E-03
  22  Prefactor     1.0429        .16601       -.89815E-06    .16314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.1303
  Prefactor  = 0.0001
  Prefactor  = 23.6455
  norm       = 2.65404
  Prefactor  = 1.69163
  Prefactor  = 20.2172
  norm       = 1.09729
  Prefactor  = 4.57556
  Prefactor  = 0.0001
  norm       = 7.44337
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.25364
  Prefactor  = 0.000100001
  Prefactor  = 6.99872
  Prefactor  = 0.0001
  Prefactor  = 0.000100467
  Prefactor  = 3.00009
  Normalizat = 0.950688
  Prefactor  = 1.04286
 **********
 **   18 **HESSE 
 **********

 FCN=   5913.870     FROM HESSE     STATUS=OK           352 CALLS     2379 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.130        18.908        .11501E-03   -1.5011    
   3  Prefactor     .10000E-03    5.6612        .17870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.646        22.085        .82376E-04   -1.4735    
   5  norm          2.6540        1.3709        .58238E-04   -1.5382    
   6  Prefactor     1.6916        6.6502        .32335E-03   -1.5448    
   7  Prefactor     20.217        10.162        .89075E-04   -1.4808    
   8  norm          1.0973        .85297        .58185E-04   -1.5498    
   9  Prefactor     4.5756        10.459        .94088E-03   -1.5280    
  10  Prefactor     .10000E-03    13.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.4434        22.931        .14696E-03   -1.5162    
  12  Prefactor     .10000E-03    1.2611        .83826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    29.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .55743        .55865E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .25364        18.453        .10009       -1.5607    
  16  Prefactor     .10000E-03    42.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9987        4.9107        .65522E-03   -1.5179    
  18  Prefactor     .10000E-03    10.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10047E-03    569.09        .42331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0001        9.7906        .23488E-03   -1.5362    
  21  Normalizat    .95069        .20778        .24768E-03   -.94701    
  22  Prefactor     1.0429        .19209        .23111E-03   -.91314    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46679e-09
Minuit parameter uncertainties:
  1  6.35916e-06
  2  18.9168
  3  1.66672e-06
  4  22.0929
  5  1.37087
  6  6.65305
  7  10.1631
  8  0.85298
  9  10.4633
  10  4.92431e-05
  11  22.9585
  12  9.88344e-07
  13  0.000231585
  14  2.96577e-06
  15  4.32736
  16  0.000374915
  17  4.91098
  18  1.49068e-05
  19  0.0329149
  20  9.79585
  21  0.207955
  22  0.192214
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  4.924e-05  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:  1.043e+00  1.922e-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:  9.507e-01  2.080e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/947919/likelihoodResults_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.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) = 5913.86994624
delta logL = -0.000352922262209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5913.86959329
delta logL = 2.57614374277e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8134       1.0000          .0000       10.000    
     3 'Normalizat'    .95071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0429       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5913.540     FROM MIGRAD    STATUS=FAILED       217 CALLS      367 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23573E-02    .17071        .12609E-02** at limit **
   2  Index        10.0000        5.1358        .50000    ** at limit **
   3  Normalizat    .91469        .59769E-01    .24768E-03    .36586E-03
   4  Prefactor     1.0665        .56720E-01    .23111E-03    .45592E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5913.540     FROM SIMPLEX   STATUS=UNCHANGED    114 CALLS      481 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23573E-02    .17071        .29462E-05** at limit **
   2  Index        10.0000        5.1358        .14833E-01** at limit **
   3  Normalizat    .91469        .59769E-01    .22458E-05    .36586E-03
   4  Prefactor     1.0665        .56720E-01    .86953E-06    .45592E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5913.540     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      530 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23573E-02    .38910E-02    .55827E-04** at limit **
   2  Index        10.0000        6.8720        .50000    ** at limit **
   3  Normalizat    .91469        .20025        .49535E-04    .77252E-04
   4  Prefactor     1.0665        .19303        .46222E-04    .13252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00235731
  Index      = 10
  Normalizat = 0.914693
  Prefactor  = 1.06648
 **********
 **   18 **HESSE 
 **********

 FCN=   5913.540     FROM HESSE     STATUS=OK            31 CALLS      561 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23573E-02    .37039E-02    .22331E-05   -1.5698    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.7225        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .91469        .20052        .99071E-05   -.95946    
   4  Prefactor     1.0665        .19317        .92443E-05   -.90545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34718e-10
Minuit parameter uncertainties:
  1  0.00370389
  2  0.000324697
  3  0.200682
  4  0.193296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947919': 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) = 5913.54005326
delta logL = 0.329540060013

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  2.357e-03  3.704e-03  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  1.000e+01  3.247e-04  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:  1.066e+00  1.933e-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:  9.147e-01  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 136.009 27.404

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/947919/cmap_HighResolution_241401601_241660801_4FGL_J0904.0+2724_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2021-08-30 21:46:20.723219', job_id='947919', GAL2='1.07', fit_tolerance='1e-08', EG2='0.91', EG='0.95', time_epoch_completed='1630385180.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.30e-01', ts2='0.69', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='8' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:46:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 947919: <4FGL_J0904.0+2724_daily_bin8> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin8> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 21:30:22 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:30:24 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:24 2021
Terminated at Mon Aug 30 21:46:22 2021
Results reported at Mon Aug 30 21:46:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin8 136.009 27.4041 241401601 241660801 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 :                                   713.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             203.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            960 sec.

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

