/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 76 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0904.0+2724_daily_bin1203
RA = 136.009, Dec = 27.4041
tmin = 551145601, tmax = 551404801
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='955069', job_status='RUN', time_executed='2021-08-30 21:52:56.906135', time_epoch_executed='1630385576.91' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='1203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/955069

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/955069/ft1_4FGL_J0904.0+2724_daily_bin1203.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/955069/ft2_4FGL_J0904.0+2724_daily_bin1203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/955069/ft1_4FGL_J0904.0+2724_daily_bin1203.fits outfile=/scratch/kocevski/955069/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1203.fits ra=136.009 dec=27.4041 rad=12.0 tmin=551145601.0 tmax=551404801.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.93
user 3.40
sys 0.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/955069/ft1_filtered_4FGL_J0904.0+2724_daily_bin1203.fits" evtable="EVENTS" scfile=/scratch/kocevski/955069/ft2_4FGL_J0904.0+2724_daily_bin1203.fits sctable="SC_DATA" outfile=/scratch/kocevski/955069/ltcube_551145601_551404801_4FGL_J0904.0+2724_daily_bin1203.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/955069/ft2_4FGL_J0904.0+2724_daily_bin1203.fits
.....................!
real 12.21
user 11.52
sys 0.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/955069/ft1_filtered_4FGL_J0904.0+2724_daily_bin1203.fits evtable="EVENTS" scfile=/scratch/kocevski/955069/ft2_4FGL_J0904.0+2724_daily_bin1203.fits sctable="SC_DATA" expcube=/scratch/kocevski/955069/ltcube_551145601_551404801_4FGL_J0904.0+2724_daily_bin1203.fits outfile=/scratch/kocevski/955069/expmap_551145601_551404801_4FGL_J0904.0+2724_daily_bin1203.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/955069/ltcube_551145601_551404801_4FGL_J0904.0+2724_daily_bin1203.fits
.....................!
real 190.79
user 186.02
sys 4.26

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/955069/ft1_filtered_4FGL_J0904.0+2724_daily_bin1203.fits scfile=/scratch/kocevski/955069/ft2_4FGL_J0904.0+2724_daily_bin1203.fits outfile=/scratch/kocevski/955069/cmap_551145601_551404801_4FGL_J0904.0+2724_daily_bin1203.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.82
user 0.38
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/955069/ft1_filtered_4FGL_J0904.0+2724_daily_bin1203.fits scfile=/scratch/kocevski/955069/ft2_4FGL_J0904.0+2724_daily_bin1203.fits outfile=/scratch/kocevski/955069/cmap_HighResolution_551145601_551404801_4FGL_J0904.0+2724_daily_bin1203.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.84
user 0.37
sys 0.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2733       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.9341       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .28087       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.1274       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69146       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5181       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.538       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3662       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22615E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2653       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7830       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0939       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0290       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=   7647.500     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2404 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2618        30.300       -.19165E-05   -.58092E-04
   2  Prefactor     .10000E-03    7.8908       -.12254E-06** at limit **
   3  Prefactor     6.9311        15.743       -.90853E-07    .11681E-04
   4  Prefactor     .10000E-03    17.147        .85770E-06** at limit **
   5  norm          .27927        .76599       -.10287E-06    .98561E-03
   6  Prefactor     .10000E-03    6.5802        .36287E-06** at limit **
   7  Prefactor     .10000E-03    2.2157        .29331E-07** at limit **
   8  norm          1.1269        .84871       -.37092E-07    .14732E-03
   9  Prefactor     .10000E-03    11.434        .21762E-06** at limit **
  10  Prefactor     .65963        9.5685        .54015E-06   -.91774E-05
  11  norm          .10000E-03    15.039       -.29885E-06** at limit **
  12  Prefactor     7.5197        3.4941       -.89451E-07   -.19854E-03
  13  Prefactor     16.593        30.215       -.74675E-06    .62695E-04
  14  norm          2.3673        1.5015        .10923E-06    .14298E-03
  15  Prefactor     .10000E-03    75.768        .20964E-04** at limit **
  16  Prefactor     2.4581        188.94       -.53638E-05   -.29484E-04
  17  Prefactor     1.7830        4.2480       -.15850E-05   -.21217E-03
  18  Prefactor     .10000E-03    29.478        .54859E-06** at limit **
  19  Prefactor     .10000E-03    54.057        .18864E-05** at limit **
  20  Prefactor     .10000E-03    10.178        .21843E-06** at limit **
  21  Normalizat    1.0935        .16536        .24355E-06   -.17927E-03
  22  Prefactor     1.0295        .14850       -.20162E-06   -.25932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.26182
  Prefactor  = 0.0001
  Prefactor  = 6.93107
  Prefactor  = 0.000100001
  norm       = 0.279274
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.12688
  Prefactor  = 0.0001
  Prefactor  = 0.659628
  norm       = 0.0001
  Prefactor  = 7.51971
  Prefactor  = 16.5929
  norm       = 2.36726
  Prefactor  = 0.000100002
  Prefactor  = 2.4581
  Prefactor  = 1.78303
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Normalizat = 1.09353
  Prefactor  = 1.02946
 **********
 **   18 **HESSE 
 **********

 FCN=   7647.500     FROM HESSE     STATUS=OK           350 CALLS     2754 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2618        30.191        .17503E-03   -1.5249    
   2  Prefactor     .10000E-03    7.8905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.9311        15.736        .15235E-03   -1.5181    
   4  Prefactor     .10000E-03    17.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .27927        .79462        .11892E-02   -1.5602    
   6  Prefactor     .10000E-03    6.6631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2175        .12713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.1269        .82814        .66849E-04   -1.5496    
   9  Prefactor     .10000E-03    11.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .65963        100.06        .49446E-02   -1.5546    
  11  norm          .10000E-03    15.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5197        3.4965        .10693E-03   -1.5159    
  13  Prefactor     16.593        29.804        .98487E-04   -1.4893    
  14  norm          2.3673        1.4988        .81715E-04   -1.5400    
  15  Prefactor     .10000E-03    74.010        .59424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4581        187.54        .27290E-03   -1.5394    
  17  Prefactor     1.7830        4.2665        .24770E-03   -1.5441    
  18  Prefactor     .10000E-03    29.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    54.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0935        .19256        .24364E-03   -.89960    
  22  Prefactor     1.0295        .17387        .23820E-03   -.91754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90562e-08
Minuit parameter uncertainties:
  1  25.227
  2  1.44846e-05
  3  15.7449
  4  0.000192685
  5  0.794651
  6  4.90944e-05
  7  2.23787e-06
  8  0.828153
  9  4.69207e-05
  10  16.2747
  11  1.35034e-05
  12  3.49663
  13  29.8303
  14  1.4988
  15  0.000840885
  16  43.0811
  17  4.26725
  18  0.00022426
  19  0.000612521
  20  4.77257e-05
  21  0.19268
  22  0.173965
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  6.596e-01  1.627e+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:  1.029e+00  1.740e-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.094e+00  1.927e-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: 9.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/955069/likelihoodResults_551145601_551404801_4FGL_J0904.0+2724_daily_bin1203.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) = 7647.49129022
delta logL = 0.00892187584486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7647.48320342
delta logL = 0.017008678803

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9576       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4809       1.0000          .0000       10.000    
     3 'Normalizat'    1.0856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0330       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7647.483     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      291 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9447        33.507        .14826E-02    .28657E-03
   2  Index         3.4766        6.6815        .23041E-01    .50446E-04
   3  Normalizat    1.0855        .18397        .12222E-02   -.10130E-04
   4  Prefactor     1.0331        .17063        .23783E-03    .87477E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.94471
  Index      = 3.47658
  Normalizat = 1.08549
  Prefactor  = 1.03311
 **********
 **   18 **HESSE 
 **********

 FCN=   7647.483     FROM HESSE     STATUS=OK            27 CALLS      318 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9447        20.163        .29652E-03   -1.5429    
   2  Index         3.4766        3.4628        .46082E-02   -.30961    
   3  Normalizat    1.0855        .18444        .48888E-04   -.90219    
   4  Prefactor     1.0331        .17125        .95132E-05   -.91634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58457e-12
Minuit parameter uncertainties:
  1  12.5289
  2  3.87715
  3  0.184549
  4  0.171336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/955069': 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) = 7647.48320013
delta logL = 0.0170119644417

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.945e+00  1.253e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  3.477e+00  3.877e+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:  1.033e+00  1.713e-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.085e+00  1.845e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/955069/cmap_HighResolution_551145601_551404801_4FGL_J0904.0+2724_daily_bin1203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-03', job_status='DONE', photon_flux_upper_limit='9.65e-08', time_completed='2021-08-30 22:04:40.690823', job_id='955069', GAL2='1.03', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630386280.69', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.70e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1203' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 22:04:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 955069: <4FGL_J0904.0+2724_daily_bin1203> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin1203 136.009 27.4041 551145601 551404801 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 :                                   693.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

