/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 2 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 = 7479
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0904.0+2724_daily_bin145
RA = 136.009, Dec = 27.4041
tmin = 276912001, tmax = 277171201
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='948169', job_status='RUN', time_executed='2021-08-30 21:30:59.417720', time_epoch_executed='1630384259.42' WHERE source_name='4FGL J0904.0+2724' and cadence='daily' and bin_id='145'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948169

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948169/ft1_4FGL_J0904.0+2724_daily_bin145.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948169/ft2_4FGL_J0904.0+2724_daily_bin145.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948169/ft1_4FGL_J0904.0+2724_daily_bin145.fits outfile=/scratch/kocevski/948169/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin145.fits ra=136.009 dec=27.4041 rad=12.0 tmin=276912001.0 tmax=277171201.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.47
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948169/ft2_4FGL_J0904.0+2724_daily_bin145.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/948169/ft1_filteredMKT_4FGL_J0904.0+2724_daily_bin145.fits evtable="EVENTS" outfile="/scratch/kocevski/948169/ft1_filtered_4FGL_J0904.0+2724_daily_bin145.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948169/ft1_filtered_4FGL_J0904.0+2724_daily_bin145.fits" evtable="EVENTS" scfile=/scratch/kocevski/948169/ft2_4FGL_J0904.0+2724_daily_bin145.fits sctable="SC_DATA" outfile=/scratch/kocevski/948169/ltcube_276912001_277171201_4FGL_J0904.0+2724_daily_bin145.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/948169/ft2_4FGL_J0904.0+2724_daily_bin145.fits
.....................!
real 11.59
user 11.25
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948169/ft1_filtered_4FGL_J0904.0+2724_daily_bin145.fits evtable="EVENTS" scfile=/scratch/kocevski/948169/ft2_4FGL_J0904.0+2724_daily_bin145.fits sctable="SC_DATA" expcube=/scratch/kocevski/948169/ltcube_276912001_277171201_4FGL_J0904.0+2724_daily_bin145.fits outfile=/scratch/kocevski/948169/expmap_276912001_277171201_4FGL_J0904.0+2724_daily_bin145.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/948169/ltcube_276912001_277171201_4FGL_J0904.0+2724_daily_bin145.fits
.....................!
real 189.47
user 185.11
sys 3.99

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/948169/ft1_filtered_4FGL_J0904.0+2724_daily_bin145.fits scfile=/scratch/kocevski/948169/ft2_4FGL_J0904.0+2724_daily_bin145.fits outfile=/scratch/kocevski/948169/cmap_276912001_277171201_4FGL_J0904.0+2724_daily_bin145.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948169/ft1_filtered_4FGL_J0904.0+2724_daily_bin145.fits scfile=/scratch/kocevski/948169/ft2_4FGL_J0904.0+2724_daily_bin145.fits outfile=/scratch/kocevski/948169/cmap_HighResolution_276912001_277171201_4FGL_J0904.0+2724_daily_bin145.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.53
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.886       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .26208       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .24430       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2352       1.0000         .10000E-03   10000.    
     8 'norm      '    10.891       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7966       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11856E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7387       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1204       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.807       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0326       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92964       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=   6480.111     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2368 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.307        .20878E-07** at limit **
   2  Prefactor     19.894        27.428        .87928E-06    .82092E-04
   3  Prefactor     .10000E-03    14.182       -.34143E-06** at limit **
   4  Prefactor     .10000E-03    8.2769        .17251E-07** at limit **
   5  norm          .26307        .85170        .25700E-06   -.49834E-03
   6  Prefactor     .23999        7.6287       -.70733E-06    .22369E-04
   7  Prefactor     9.2370        9.4327        .13129E-05   -.48930E-03
   8  norm          10.891        1.6068       -.15469E-07    .24680E-03
   9  Prefactor     7.7944        10.415       -.93192E-07   -.42541E-04
  10  Prefactor     .10000E-03    3.7330        .87542E-07** at limit **
  11  norm          .10000E-03    95.571       -.26112E-06** at limit **
  12  Prefactor     4.7392        3.2758        .40445E-07   -.23763E-04
  13  Prefactor     .10000E-03    16.171        .28382E-05** at limit **
  14  norm          1.1203        1.5129        .12261E-06   -.76961E-04
  15  Prefactor     2.9186        34.836        .15877E-05    .36158E-05
  16  Prefactor     .10000E-03    56.536        .10222E-05** at limit **
  17  Prefactor     .10000E-03    .88680       -.21202E-07** at limit **
  18  Prefactor     21.168        19.446        .20190E-07   -.27379E-05
  19  Prefactor     .10000E-03    17.212       -.24314E-05** at limit **
  20  Prefactor     13.808        9.5367        .29676E-06   -.19704E-03
  21  Normalizat    1.0325        .17786       -.40309E-06    .52436E-04
  22  Prefactor     .92977        .16528       -.58728E-07    .32598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.8944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.263066
  Prefactor  = 0.239987
  Prefactor  = 9.237
  norm       = 10.8909
  Prefactor  = 7.79437
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.73919
  Prefactor  = 0.000100003
  norm       = 1.12026
  Prefactor  = 2.91858
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.168
  Prefactor  = 0.000100002
  Prefactor  = 13.8077
  Normalizat = 1.03246
  Prefactor  = 0.929771
 **********
 **   18 **HESSE 
 **********

 FCN=   6480.111     FROM HESSE     STATUS=OK           350 CALLS     2718 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.894        27.581        .89816E-04   -1.4816    
   3  Prefactor     .10000E-03    14.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.2883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .26307        1.0231        .12139E-02   -1.5605    
   6  Prefactor     .23999        62.741        .39330E-02   -1.5610    
   7  Prefactor     9.2370        10.435        .65940E-03   -1.5100    
   8  norm          10.891        1.6092        .36420E-04   -1.5048    
   9  Prefactor     7.7944        10.423        .14361E-03   -1.5150    
  10  Prefactor     .10000E-03    3.7386        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    96.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7392        3.2751        .11687E-03   -1.5273    
  13  Prefactor     .10000E-03    17.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1203        1.3422        .11230E-02   -1.5496    
  15  Prefactor     2.9186        34.750        .23706E-03   -1.5366    
  16  Prefactor     .10000E-03    56.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .89249        .74011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.168        19.467        .87058E-04   -1.4787    
  19  Prefactor     .10000E-03    18.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.808        9.6271        .53897E-03   -1.4965    
  21  Normalizat    1.0325        .20581        .24928E-03   -.91951    
  22  Prefactor     .92977        .19147        .25108E-03   -.95108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74289e-08
Minuit parameter uncertainties:
  1  4.48631e-06
  2  27.5988
  3  5.27356e-05
  4  9.79126e-07
  5  1.02315
  6  7.76729
  7  10.4368
  8  1.60918
  9  10.4256
  10  6.65829e-06
  11  7.74333e-05
  12  3.27526
  13  0.000452305
  14  1.34224
  15  20.1559
  16  0.000297465
  17  7.19256e-07
  18  19.4726
  19  0.000402363
  20  9.62817
  21  0.205967
  22  0.191612
Done.

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

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  6.658e-06  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.298e-01  1.916e-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.032e+00  2.060e-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: 5.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948169/likelihoodResults_276912001_277171201_4FGL_J0904.0+2724_daily_bin145.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) = 6480.11199596
delta logL = -0.00126912068299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6480.11072685
delta logL = -1.22345227282e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7884       1.0000          .0000       10.000    
     3 'Normalizat'    1.0324       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92979       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=   6480.111     FROM MIGRAD    STATUS=FAILED        96 CALLS      244 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    323.67        .15204E-02** at limit **
   2  Index         2.5527        5.6326        .50000       -.15707E-06
   3  Normalizat    1.0325        .44286E-01    .24928E-03    .22803E-04
   4  Prefactor     .92977        .42774E-01    .25108E-03    .24859E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6480.111     FROM SIMPLEX   STATUS=UNCHANGED    182 CALLS      426 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    323.67        .32909E-03** at limit **
   2  Index         2.5527        5.6326        .20135E-05   -.15707E-06
   3  Normalizat    1.0325        .44286E-01    .68862E-07    .22803E-04
   4  Prefactor     .92977        .42774E-01    .10793E-07    .24859E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6480.111     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      460 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.967        .30408E-03** at limit **
   2  Index         2.5552        6.1587        .50000       -.37289E-07
   3  Normalizat    1.0325        .19730        .99711E-05    .22803E-04
   4  Prefactor     .92977        .19056        .10043E-04    .24904E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.55519
  Normalizat = 1.03246
  Prefactor  = 0.929771
 **********
 **   18 **HESSE 
 **********

 FCN=   6480.111     FROM HESSE     STATUS=OK            29 CALLS      489 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9731        .60816E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5552        5.0376        .50000       -.51090    
   3  Normalizat    1.0325        .19729        .19942E-05   -.91951    
   4  Prefactor     .92977        .19053        .20086E-05   -.95108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61185e-12
Minuit parameter uncertainties:
  1  4.15235e-06
  2  164.501
  3  0.197432
  4  0.190668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948169': 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) = 6480.11072654
delta logL = 2.95134668704e-07

Extracting fit parameters...

4FGL J0904.0+2724
   Spectrum: PowerLaw
270    Prefactor:  1.000e-04  4.152e-06  1.000e-04  1.000e+04 ( 1.000e-12)
271        Index:  2.555e+00  1.645e+02  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.298e-01  1.907e-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.032e+00  1.974e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/948169/cmap_HighResolution_276912001_277171201_4FGL_J0904.0+2724_daily_bin145.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.00e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-08-30 21:42:00.004223', job_id='948169', GAL2='0.93', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630384920.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.79' WHERE bin_id='145' AND source_name='4FGL J0904.0+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 21:42:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 948169: <4FGL_J0904.0+2724_daily_bin145> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0904.0+2724_daily_bin145 136.009 27.4041 276912001 277171201 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 :                                   645.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             373.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

