/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 202 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_J0725.5+0216_daily_bin1179
RA = 111.39, Dec = 2.2749
tmin = 544924801, tmax = 545184001
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='330923', job_status='RUN', time_executed='2021-08-27 06:14:04.361185', time_epoch_executed='1630070044.36' WHERE source_name='4FGL J0725.5+0216' and cadence='daily' and bin_id='1179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330923

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330923/ft1_4FGL_J0725.5+0216_daily_bin1179.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330923/ft1_4FGL_J0725.5+0216_daily_bin1179.fits outfile=/scratch/kocevski/330923/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin1179.fits ra=111.39 dec=2.2749 rad=12.0 tmin=544924801.0 tmax=545184001.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 4.36
user 3.86
sys 0.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.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/330923/ft1_filteredMKT_4FGL_J0725.5+0216_daily_bin1179.fits evtable="EVENTS" outfile="/scratch/kocevski/330923/ft1_filtered_4FGL_J0725.5+0216_daily_bin1179.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.74
user 0.32
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330923/ft1_filtered_4FGL_J0725.5+0216_daily_bin1179.fits" evtable="EVENTS" scfile=/scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits sctable="SC_DATA" outfile=/scratch/kocevski/330923/ltcube_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.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/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits
.....................!
real 11.99
user 11.37
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330923/ft1_filtered_4FGL_J0725.5+0216_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits sctable="SC_DATA" expcube=/scratch/kocevski/330923/ltcube_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.fits outfile=/scratch/kocevski/330923/expmap_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.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/330923/ltcube_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.fits
.....................!
real 190.47
user 185.37
sys 4.74

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
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 154 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0725.5+0216 @ 111.39 2.2749

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/330923/ft1_filtered_4FGL_J0725.5+0216_daily_bin1179.fits scfile=/scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits outfile=/scratch/kocevski/330923/cmap_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.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=111.39 yref=2.2749 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.36
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330923/ft1_filtered_4FGL_J0725.5+0216_daily_bin1179.fits scfile=/scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits outfile=/scratch/kocevski/330923/cmap_HighResolution_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.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=111.39 yref=2.2749 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.79
user 0.39
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330923/ft1_filtered_4FGL_J0725.5+0216_daily_bin1179.fits evtable="EVENTS" scfile=/scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330923/Model_4FGL_J0725.5+0216_daily_bin1179.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/330923/ft1_filtered_4FGL_J0725.5+0216_daily_bin1179.fits.....................!
real 73.40
user 70.07
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/330923/ft1_filtered_4FGL_J0725.5+0216_daily_bin1179.fits', '/scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits', expMap='/scratch/kocevski/330923/expmap_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.fits', expCube='/scratch/kocevski/330923/ltcube_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/330923/Model_4FGL_J0725.5+0216_daily_bin1179.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0725.5+0216'

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  8.002e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/330923/ft1_filtered_4FGL_J0725.5+0216_daily_bin1179.fits
Spacecraft file(s): /scratch/kocevski/330923/ft2_4FGL_J0725.5+0216_daily_bin1179.fits
Exposure map: /scratch/kocevski/330923/expmap_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.fits
Exposure cube: /scratch/kocevski/330923/ltcube_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/330923/Model_4FGL_J0725.5+0216_daily_bin1179.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) = 4240.20280499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.693       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.155       1.0000         .10000E-03   10000.    
     5 'norm      '    4.5394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.6483       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14946E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    12.041       1.0000         .10000E-03   10000.    
    13 'Prefactor '    53.471       1.0000         .10000E-03   10000.    
    14 'norm      '    13.187       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11884E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .57804E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11580E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10581E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    17.022       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .38968       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99168       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4240.196     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2344 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.696        24.454        .38421E-06    .76253E-04
   2  norm          .10000E-03    55.112       -.51220E-07** at limit **
   3  Prefactor     .10000E-03    93.531        .21591E-06** at limit **
   4  norm          18.154        13.658        .42178E-06    .14734E-03
   5  norm          4.5384        4.7478        .48473E-06    .12427E-03
   6  Prefactor     .10000E-03    29.259       -.60331E-07** at limit **
   7  Prefactor     .10000E-03    5.0864        .70078E-07** at limit **
   8  Prefactor     .10000E-03    44.459        .33470E-06** at limit **
   9  Prefactor     .10000E-03    35.269        .20730E-06** at limit **
  10  norm          7.6471        4.1362        .10711E-06    .40874E-03
  11  Prefactor     .10000E-03    486.21       -.93875E-05** at limit **
  12  norm          12.040        15.610        .27214E-06    .47750E-04
  13  Prefactor     53.473        40.644        .86978E-06    .42482E-04
  14  norm          13.193        56.227        .12016E-05    .13431E-04
  15  Prefactor     .10000E-03    30.319        .33219E-06** at limit **
  16  Prefactor     .10000E-03    5.5769        .14789E-06** at limit **
  17  Prefactor     .10000E-03    341.75       -.11644E-05** at limit **
  18  norm          .10000E-03    35.328        .65939E-06** at limit **
  19  norm          .10000E-03    83.618        .37741E-06** at limit **
  20  norm          17.018        11.023        .55447E-06    .86754E-04
  21  Normalizat    .38963        .37539       -.17849E-04    .46551E-04
  22  Prefactor     .99165        .10015        .10528E-05    .49007E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.696
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1542
  norm       = 4.53837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.64709
  Prefactor  = 0.000100003
  norm       = 12.0398
  Prefactor  = 53.4728
  norm       = 13.193
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  norm       = 0.000100001
  norm       = 17.0181
  Normalizat = 0.389631
  Prefactor  = 0.991651
 **********
 **   18 **HESSE 
 **********

 FCN=   4240.196     FROM HESSE     STATUS=OK           336 CALLS     2680 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.696        24.734        .98029E-04   -1.4891    
   2  norm          .10000E-03    55.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    93.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.154        13.734        .93998E-04   -1.4856    
   5  norm          4.5384        4.7533        .13978E-03   -1.5282    
   6  Prefactor     .10000E-03    29.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.0949        .14345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    45.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    35.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.6471        4.1123        .91180E-04   -1.5155    
  11  Prefactor     .10000E-03    487.28        .40947E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          12.040        15.614        .11544E-03   -1.5014    
  13  Prefactor     53.473        40.595        .54851E-04   -1.4244    
  14  norm          13.193        56.068        .11030E-03   -1.4981    
  15  Prefactor     .10000E-03    30.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5977        .15029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    346.87        .21084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    36.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    84.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          17.018        10.948        .97075E-04   -1.4883    
  21  Normalizat    .38963        .37447        .82376E-03   -1.1784    
  22  Prefactor     .99165        .99798E-01    .13608E-03   -.93008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26291e-10
Minuit parameter uncertainties:
  1  24.7491
  2  3.92532e-05
  3  0.00013654
  4  13.7362
  5  4.7537
  6  4.29805e-05
  7  9.70209e-06
  8  0.00017416
  9  8.37132e-05
  10  4.1124
  11  0.00245675
  12  15.619
  13  40.616
  14  54.4817
  15  3.35032e-05
  16  2.55052e-05
  17  0.00105447
  18  0.000477913
  19  0.000615492
  20  10.9496
  21  0.376909
  22  0.0998163
Done.

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

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.000e-04  4.298e-05  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.023e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.917e-01  9.982e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  3.896e-01  3.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 111.390 2.275
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330923/likelihoodResults_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.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) = 4240.196511
delta logL = -0.000162736167113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4240.19634963
delta logL = -1.36609378387e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13156E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2242       1.0000          .0000       10.000    
     3 'Normalizat'    .38963       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99165       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+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=   4240.196     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      278 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10215E-03    118.92        .18142E-02** at limit **
   2  Index         2.1551        5.2904        .50000        .14090E-04
   3  Normalizat    .38963        .24696E-01    .82375E-03   -.10889E-04
   4  Prefactor     .99165        .64098E-02    .13608E-03   -.47621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102152
  Index      = 2.15508
  Normalizat = 0.389632
  Prefactor  = 0.99165
 **********
 **   18 **HESSE 
 **********

 FCN=   4240.196     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10215E-03    505.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1551        8.9203        .50000       -.60527    
   3  Normalizat    .38963        .52126E-01    .32950E-04   -1.1784    
   4  Prefactor     .99165        .13531E-01    .54431E-05   -.93008    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17848e-08
Minuit parameter uncertainties:
  1  0.0665122
  2  430.073
  3  0.0521328
  4  0.0135307
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330923': 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) = 4240.19634869
delta logL = -4.23287019657e-07

Extracting fit parameters...

4FGL J0725.5+0216
   Spectrum: PowerLaw
206    Prefactor:  1.022e-04  6.651e-02  1.000e-04  1.000e+04 ( 1.000e-14)
207        Index:  2.155e+00  4.301e+02  0.000e+00  1.000e+01 (-1.000e+00)
208        Scale:  2.628e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
519    Prefactor:  9.917e-01  1.353e-02  0.000e+00  1.000e+01 ( 1.000e+00)
520        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
521        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
518   Normalization:  3.896e-01  5.213e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 111.390 2.275

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/330923/cmap_HighResolution_544924801_545184001_4FGL_J0725.5+0216_daily_bin1179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', job_status='DONE', photon_flux_upper_limit='1.22e-07', time_completed='2021-08-27 06:22:59.456372', job_id='330923', GAL2='0.99', fit_tolerance='1e-08', EG2='0.39', EG='0.39', time_epoch_completed='1630070579.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-4.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='1179' AND source_name='4FGL J0725.5+0216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 27 06:22:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 330923: <4FGL_J0725.5+0216_daily_bin1179> in cluster <slac> Done

Job <4FGL_J0725.5+0216_daily_bin1179> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 27 06:10:21 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 27 06:10:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 27 06:10:22 2021
Terminated at Fri Aug 27 06:23:00 2021
Results reported at Fri Aug 27 06:23:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0725.5+0216_daily_bin1179 111.39 2.2749 544924801 545184001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0725.5+0216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   533.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

