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


Performing analysis on: 4FGL_J0904.0+2724_daily_bin1333
RA = 136.009, Dec = 27.4041
tmin = 584841601, tmax = 585100801
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='956490', job_status='RUN', time_executed='2021-08-30 21:58:56.326111', time_epoch_executed='1630385936.33' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='1333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/956490

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/956490/ft1_4FGL_J0904.0+2724_daily_bin1333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/956490/ft2_4FGL_J0904.0+2724_daily_bin1333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/956490/ft1_4FGL_J0904.0+2724_daily_bin1333.fits outfile=/scratch/kocevski/956490/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin1333.fits ra=136.009 dec=27.4041 rad=12.0 tmin=584841601.0 tmax=585100801.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 8.45
user 2.72
sys 4.63

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/956490/ft1_filtered_4FGL_J0904.0+2724_daily_bin1333.fits" evtable="EVENTS" scfile=/scratch/kocevski/956490/ft2_4FGL_J0904.0+2724_daily_bin1333.fits sctable="SC_DATA" outfile=/scratch/kocevski/956490/ltcube_584841601_585100801_4FGL_J0904.0+2724_daily_bin1333.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/956490/ft2_4FGL_J0904.0+2724_daily_bin1333.fits
.....................!
real 18.49
user 12.70
sys 5.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/956490/ft1_filtered_4FGL_J0904.0+2724_daily_bin1333.fits evtable="EVENTS" scfile=/scratch/kocevski/956490/ft2_4FGL_J0904.0+2724_daily_bin1333.fits sctable="SC_DATA" expcube=/scratch/kocevski/956490/ltcube_584841601_585100801_4FGL_J0904.0+2724_daily_bin1333.fits outfile=/scratch/kocevski/956490/expmap_584841601_585100801_4FGL_J0904.0+2724_daily_bin1333.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/956490/ltcube_584841601_585100801_4FGL_J0904.0+2724_daily_bin1333.fits
.....................!
real 199.00
user 184.92
sys 10.71

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/956490/ft1_filtered_4FGL_J0904.0+2724_daily_bin1333.fits scfile=/scratch/kocevski/956490/ft2_4FGL_J0904.0+2724_daily_bin1333.fits outfile=/scratch/kocevski/956490/cmap_584841601_585100801_4FGL_J0904.0+2724_daily_bin1333.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.84
user 0.36
sys 4.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/956490/ft1_filtered_4FGL_J0904.0+2724_daily_bin1333.fits scfile=/scratch/kocevski/956490/ft2_4FGL_J0904.0+2724_daily_bin1333.fits outfile=/scratch/kocevski/956490/cmap_HighResolution_584841601_585100801_4FGL_J0904.0+2724_daily_bin1333.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 5.00
user 0.38
sys 4.54

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11122E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14941E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    299.90       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3067       1.0000         .10000E-03   10000.    
     5 'norm      '    .10287E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10873E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.930       1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6821       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .83588E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10622E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.3515       1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.440       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .98196E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    68.669       1.0000         .10000E-03   10000.    
    19 'Prefactor '    79.226       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3247       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5423       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76877       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=   1621.588     FROM MIGRAD    STATUS=CONVERGED    514 CALLS     2423 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1871.6       -.15463E-04** at limit **
   2  Prefactor     .10000E-03    314.01       -.28936E-05** at limit **
   3  Prefactor     299.71        508.89       -.41704E-05   -.24282E-04
   4  Prefactor     3.8707        1692.0       -.58603E-04   -.10169E-04
   5  norm          .10000E-03    5.8818       -.77096E-05** at limit **
   6  Prefactor     .10000E-03    68.378       -.66691E-05** at limit **
   7  Prefactor     10.919        30.020       -.90047E-06   -.55382E-04
   8  norm          .10000E-03    1.2648        .16663E-05** at limit **
   9  Prefactor     7.6390        24.793       -.26397E-05   -.13831E-03
  10  Prefactor     .15154E-03    90.033        .56395E-05** at limit **
  11  norm          .10000E-03    33.270        .34918E-06** at limit **
  12  Prefactor     .10000E-03    2.9315        .25560E-07** at limit **
  13  Prefactor     .10000E-03    57.665       -.12066E-06** at limit **
  14  norm          4.3496        3.9056        .19658E-07   -.15900E-03
  15  Prefactor     49.455        61.876       -.85741E-06   -.37644E-04
  16  Prefactor     .10001E-03    197.57       -.21874E-07** at limit **
  17  Prefactor     .10000E-03    5.4940        .35296E-06** at limit **
  18  Prefactor     68.664        50.654       -.88993E-06   -.25848E-04
  19  Prefactor     79.209        129.22       -.11492E-05   -.10313E-04
  20  Prefactor     5.3260        13.989        .78456E-07    .12176E-04
  21  Normalizat    1.5422        .41305        .87932E-05   -.32321E-03
  22  Prefactor     .76894        .37137       -.11298E-04   -.82670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 299.709
  Prefactor  = 3.87072
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.9189
  norm       = 0.0001
  Prefactor  = 7.63902
  Prefactor  = 0.000151542
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.34959
  Prefactor  = 49.4546
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 68.6644
  Prefactor  = 79.2091
  Prefactor  = 5.32599
  Normalizat = 1.54222
  Prefactor  = 0.76894
 **********
 **   18 **HESSE 
 **********

 FCN=   1621.588     FROM HESSE     STATUS=OK           346 CALLS     2769 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1877.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    314.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     299.71        509.19        .11726E-03   -1.2228    
   4  Prefactor     3.8707        1761.7        .19412E-02   -1.5314    
   5  norm          .10000E-03    5.9780        .95206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    68.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.919        30.001        .12119E-03   -1.5047    
   8  norm          .10000E-03    1.6179        .85633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6390        24.599        .14468E-03   -1.5155    
  10  Prefactor     .15154E-03    116.54        .92493E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    33.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9326        .67341E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    57.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.3496        3.9018        .72867E-04   -1.5291    
  15  Prefactor     49.455        61.990        .57032E-04   -1.4300    
  16  Prefactor     .10001E-03    198.52        .20774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5572        .92093E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     68.664        50.857        .48438E-04   -1.4049    
  19  Prefactor     79.209        129.36        .45119E-04   -1.3926    
  20  Prefactor     5.3260        13.966        .17417E-03   -1.5246    
  21  Normalizat    1.5422        .47194        .23612E-03   -.76599    
  22  Prefactor     .76894        .41783        .30411E-03   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83516e-09
Minuit parameter uncertainties:
  1  0.00725521
  2  1.85648e-05
  3  517.08
  4  170.47
  5  0.000134011
  6  0.000352038
  7  30.0422
  8  1.28953e-05
  9  24.6316
  10  0.155309
  11  2.36168e-05
  12  1.48237e-06
  13  8.51862e-07
  14  3.90205
  15  62.0714
  16  0.00217027
  17  1.18815e-05
  18  50.8896
  19  129.819
  20  13.9743
  21  0.473298
  22  0.419567
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.515e-04  1.553e-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.689e-01  4.196e-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.542e+00  4.733e-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: 3.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/956490/likelihoodResults_584841601_585100801_4FGL_J0904.0+2724_daily_bin1333.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) = 1621.58765343
delta logL = -2.14555802813e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1621.58765343
delta logL = -2.14438932744e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7928       1.0000          .0000       10.000    
     3 'Normalizat'    1.5422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76894       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.

 FCN=   1621.164     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      296 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7813        64.677        .90712E-02    .48690E-03
   2  Index         6.0877        8.0431        .17632        .61180E-04
   3  Normalizat    1.3867        .11677        .55701E-01   -.50608E-03
   4  Prefactor     .86296        .11106        .65303E-01   -.42494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.78129
  Index      = 6.08772
  Normalizat = 1.38671
  Prefactor  = 0.862961
 **********
 **   18 **HESSE 
 **********

 FCN=   1621.164     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7813        124.92        .61458E-04   -1.5441    
   2  Index         6.0877        6.7404        .69241E-02    .21930    
   3  Normalizat    1.3867        .44547        .24631E-03   -.81014    
   4  Prefactor     .86296        .40985        .28887E-03   -.97448    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.35613e-09
Minuit parameter uncertainties:
  1  29.8979
  2  13.9664
  3  0.446723
  4  0.41132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/956490': 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): 102
logL (Free Index) = 1621.16440828
delta logL = 0.423243002644

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.781e+00  2.990e+01  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  6.088e+00  1.397e+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:  8.630e-01  4.113e-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.387e+00  4.467e-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/956490/cmap_HighResolution_584841601_585100801_4FGL_J0904.0+2724_daily_bin1333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-02', job_status='DONE', photon_flux_upper_limit='3.23e-07', time_completed='2021-08-30 22:08:36.385274', job_id='956490', GAL2='0.86', fit_tolerance='1e-08', EG2='1.39', EG='1.54', time_epoch_completed='1630386516.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.23e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='1333' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 22:08:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 956490: <4FGL_J0904.0+2724_daily_bin1333> in cluster <slac> Done

Job <4FGL_J0904.0+2724_daily_bin1333> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 21:55:27 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 21:55:29 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:55:29 2021
Terminated at Mon Aug 30 22:08:38 2021
Results reported at Mon Aug 30 22:08:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin1333 136.009 27.4041 584841601 585100801 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 :                                   531.50 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             183.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   788 sec.
    Turnaround time :                            791 sec.

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

