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


Performing analysis on: 4FGL_J0904.0+2724_daily_bin1122
RA = 136.009, Dec = 27.4041
tmin = 530150401, tmax = 530409601
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='954936', job_status='RUN', time_executed='2021-08-30 21:53:54.833896', time_epoch_executed='1630385634.83' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/954936

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/954936/ft1_4FGL_J0904.0+2724_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/954936/ft2_4FGL_J0904.0+2724_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/954936/ft1_4FGL_J0904.0+2724_daily_bin1122.fits outfile=/scratch/kocevski/954936/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1122.fits ra=136.009 dec=27.4041 rad=12.0 tmin=530150401.0 tmax=530409601.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 3.72
user 3.31
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/954936/ft2_4FGL_J0904.0+2724_daily_bin1122.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/954936/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1122.fits evtable="EVENTS" outfile="/scratch/kocevski/954936/ft1_filtered_4FGL_J0904.0+2724_daily_bin1122.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/954936/ft1_filtered_4FGL_J0904.0+2724_daily_bin1122.fits" evtable="EVENTS" scfile=/scratch/kocevski/954936/ft2_4FGL_J0904.0+2724_daily_bin1122.fits sctable="SC_DATA" outfile=/scratch/kocevski/954936/ltcube_530150401_530409601_4FGL_J0904.0+2724_daily_bin1122.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/954936/ft2_4FGL_J0904.0+2724_daily_bin1122.fits
.....................!
real 12.00
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/954936/ft1_filtered_4FGL_J0904.0+2724_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/954936/ft2_4FGL_J0904.0+2724_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/954936/ltcube_530150401_530409601_4FGL_J0904.0+2724_daily_bin1122.fits outfile=/scratch/kocevski/954936/expmap_530150401_530409601_4FGL_J0904.0+2724_daily_bin1122.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/954936/ltcube_530150401_530409601_4FGL_J0904.0+2724_daily_bin1122.fits
.....................!
real 191.23
user 185.20
sys 4.89

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/954936/ft1_filtered_4FGL_J0904.0+2724_daily_bin1122.fits scfile=/scratch/kocevski/954936/ft2_4FGL_J0904.0+2724_daily_bin1122.fits outfile=/scratch/kocevski/954936/cmap_530150401_530409601_4FGL_J0904.0+2724_daily_bin1122.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 0.77
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/954936/ft1_filtered_4FGL_J0904.0+2724_daily_bin1122.fits scfile=/scratch/kocevski/954936/ft2_4FGL_J0904.0+2724_daily_bin1122.fits outfile=/scratch/kocevski/954936/cmap_HighResolution_530150401_530409601_4FGL_J0904.0+2724_daily_bin1122.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 0.72
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10220E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11306E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11734E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4348       1.0000         .10000E-03   10000.    
     8 'norm      '    .91720       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22135E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .11074E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12903E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3769       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4501       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2317       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1315       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92884       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=   5558.484     FROM MIGRAD    STATUS=CONVERGED    457 CALLS     1983 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.163        .52154E-05** at limit **
   2  Prefactor     .10000E-03    18.838        .56818E-05** at limit **
   3  Prefactor     .10000E-03    8.6968       -.18643E-05** at limit **
   4  Prefactor     .10000E-03    14.282       -.32517E-05** at limit **
   5  norm          .10000E-03    .29046       -.55127E-07** at limit **
   6  Prefactor     .10000E-03    5.1332        .35428E-07** at limit **
   7  Prefactor     3.4268        6.2530       -.77289E-06   -.37716E-03
   8  norm          .91726        .65805        .10548E-07   -.42716E-03
   9  Prefactor     17.585        11.044       -.36545E-07    .88701E-05
  10  Prefactor     .10000E-03    7.0494       -.23941E-06** at limit **
  11  norm          .10000E-03    25.622        .11335E-05** at limit **
  12  Prefactor     .10000E-03    1.2515        .31219E-07** at limit **
  13  Prefactor     .10000E-03    14.231       -.30460E-05** at limit **
  14  norm          .10000E-03    .99104        .17323E-06** at limit **
  15  Prefactor     1.3480        45.383       -.28226E-04   -.10950E-03
  16  Prefactor     .10000E-03    14.744       -.32128E-05** at limit **
  17  Prefactor     4.4479        3.7575       -.33604E-07   -.26143E-03
  18  Prefactor     .10000E-03    8.9358        .12023E-05** at limit **
  19  Prefactor     4.2495        116.85        .69682E-04   -.85480E-05
  20  Prefactor     .10000E-03    4.6812       -.16781E-06** at limit **
  21  Normalizat    1.1317        .17154        .10715E-05    .39310E-04
  22  Prefactor     .92877        .16253       -.10821E-05    .12269E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42679
  norm       = 0.917261
  Prefactor  = 17.5849
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.34802
  Prefactor  = 0.0001
  Prefactor  = 4.4479
  Prefactor  = 0.0001
  Prefactor  = 4.24953
  Prefactor  = 0.0001
  Normalizat = 1.13165
  Prefactor  = 0.928769
 **********
 **   18 **HESSE 
 **********

 FCN=   5558.484     FROM HESSE     STATUS=OK           340 CALLS     2323 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.7070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .29629        .39214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.1953        .16489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.4268        6.2523        .21824E-03   -1.5338    
   8  norm          .91726        .63725        .48866E-03   -1.5516    
   9  Prefactor     17.585        11.043        .95511E-04   -1.4869    
  10  Prefactor     .10000E-03    32.053        .37967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    25.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2574        .81439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.0295        .14478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3480        47.799        .37117E-03   -1.5476    
  16  Prefactor     .10000E-03    14.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.4479        3.7544        .12607E-03   -1.5286    
  18  Prefactor     .10000E-03    8.9408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2495        114.07        .19588E-03   -1.5296    
  20  Prefactor     .10000E-03    4.7160        .15753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1317        .19456        .22421E-03   -.88742    
  22  Prefactor     .92877        .18577        .23588E-03   -.95143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12358e-10
Minuit parameter uncertainties:
  1  2.545e-06
  2  9.52865e-06
  3  4.9925e-07
  4  7.31396e-06
  5  1.39896e-07
  6  1.62896e-06
  7  6.25352
  8  0.637259
  9  11.0448
  10  0.000245279
  11  1.43507e-06
  12  1.83867e-06
  13  6.97732e-05
  14  6.14559e-07
  15  16.0674
  16  4.32621e-06
  17  3.7546
  18  8.77942e-06
  19  44.126
  20  2.12299e-05
  21  0.194683
  22  0.185894
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  2.453e-04  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:  9.288e-01  1.859e-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.132e+00  1.947e-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: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/954936/likelihoodResults_530150401_530409601_4FGL_J0904.0+2724_daily_bin1122.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) = 5558.48454136
delta logL = -0.00014765043943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5558.48439403
delta logL = -3.15233592119e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18382E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0010       1.0000          .0000       10.000    
     3 'Normalizat'    1.1317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92877       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=   5558.478     FROM MIGRAD    STATUS=CONVERGED    219 CALLS      371 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35223        246.56        .37309E-02   -.69484E-03
   2  Index         4.5288        5.6800        .50000        .29480E-04
   3  Normalizat    1.1254        .29375E-01    .22421E-03   -.18539E-03
   4  Prefactor     .93213        .28108E-01    .23588E-03   -.24728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.352227
  Index      = 4.52881
  Normalizat = 1.12539
  Prefactor  = 0.932132
 **********
 **   18 **HESSE 
 **********

 FCN=   5558.478     FROM HESSE     STATUS=OK            29 CALLS      400 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35223        106.52        .14924E-03   -1.5827    
   2  Index         4.5288        7.5219        .30463E-01   -.94379E-01
   3  Normalizat    1.1254        .19873        .44843E-04   -.88941    
   4  Prefactor     .93213        .18685        .47175E-04   -.95027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38772e-10
Minuit parameter uncertainties:
  1  12.2709
  2  25.0602
  3  0.198862
  4  0.186974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/954936': 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) = 5558.47783237
delta logL = 0.0065613438328

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  3.522e-01  1.227e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  4.529e+00  2.506e+01  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:  9.321e-01  1.870e-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.125e+00  1.989e-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/954936/cmap_HighResolution_530150401_530409601_4FGL_J0904.0+2724_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.09e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-08-30 22:04:35.845258', job_id='954936', GAL2='0.93', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630386275.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='6.56e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1122' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 22:04:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 954936: <4FGL_J0904.0+2724_daily_bin1122> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin1122> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 21:50:42 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:50:44 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:50:44 2021
Terminated at Mon Aug 30 22:04:36 2021
Results reported at Mon Aug 30 22:04:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin1122 136.009 27.4041 530150401 530409601 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 :                                   564.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             263.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

