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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin963
RA = 119.286, Dec = 9.9491
tmin = 488937601, tmax = 489196801
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='26026', job_status='RUN', time_executed='2021-08-28 20:33:23.311761', time_epoch_executed='1630208003.31' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/26026

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/26026/ft1_4FGL_J0757.1+0956_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/26026/ft1_4FGL_J0757.1+0956_daily_bin963.fits outfile=/scratch/kocevski/26026/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin963.fits ra=119.286 dec=9.9491 rad=12.0 tmin=488937601.0 tmax=489196801.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 5.53
user 3.32
sys 2.14

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.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/26026/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin963.fits evtable="EVENTS" outfile="/scratch/kocevski/26026/ft1_filtered_4FGL_J0757.1+0956_daily_bin963.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 2.45
user 0.33
sys 2.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/26026/ft1_filtered_4FGL_J0757.1+0956_daily_bin963.fits" evtable="EVENTS" scfile=/scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits sctable="SC_DATA" outfile=/scratch/kocevski/26026/ltcube_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.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/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits
.....................!
real 14.13
user 11.59
sys 2.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/26026/ft1_filtered_4FGL_J0757.1+0956_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/26026/ltcube_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.fits outfile=/scratch/kocevski/26026/expmap_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.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/26026/ltcube_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.fits
.....................!
real 194.27
user 187.10
sys 6.80

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 169 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 J0757.1+0956 @ 119.286 9.9491

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/26026/ft1_filtered_4FGL_J0757.1+0956_daily_bin963.fits scfile=/scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits outfile=/scratch/kocevski/26026/cmap_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.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=119.286 yref=9.9491 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 2.59
user 0.37
sys 2.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/26026/ft1_filtered_4FGL_J0757.1+0956_daily_bin963.fits scfile=/scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits outfile=/scratch/kocevski/26026/cmap_HighResolution_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.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=119.286 yref=9.9491 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 2.50
user 0.39
sys 2.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/26026/ft1_filtered_4FGL_J0757.1+0956_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/26026/Model_4FGL_J0757.1+0956_daily_bin963.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/26026/ft1_filtered_4FGL_J0757.1+0956_daily_bin963.fits.....................!
real 88.94
user 84.66
sys 3.73

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/26026/ft1_filtered_4FGL_J0757.1+0956_daily_bin963.fits', '/scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits', expMap='/scratch/kocevski/26026/expmap_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.fits', expCube='/scratch/kocevski/26026/ltcube_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/26026/Model_4FGL_J0757.1+0956_daily_bin963.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0757.1+0956'

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  8.647e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/26026/ft1_filtered_4FGL_J0757.1+0956_daily_bin963.fits
Spacecraft file(s): /scratch/kocevski/26026/ft2_4FGL_J0757.1+0956_daily_bin963.fits
Exposure map: /scratch/kocevski/26026/expmap_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.fits
Exposure cube: /scratch/kocevski/26026/ltcube_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/26026/Model_4FGL_J0757.1+0956_daily_bin963.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) = 6461.0677095

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9085       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2098       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19769E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.197       1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.0175       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .89079       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.813       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.668       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.796       1.0000         .10000E-03   10000.    
    15 'norm      '    .11699E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .21456E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    6.2559       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .42435E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2489       1.0000         .10000E-03   10000.    
    20 'norm      '    .10358E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62629       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2866       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .93732       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6460.965     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     1499 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9048        2.4308        .10501E-05    .22699E-03
   2  norm          1.2082        1.1340       -.53622E-06   -.85512E-04
   3  Prefactor     .10000E-03    63.543       -.11278E-04** at limit **
   4  Prefactor     34.954        33.734       -.14653E-04   -.18850E-03
   5  norm          .10000E-03    .28651        .52790E-06** at limit **
   6  norm          4.0155        2.1806       -.91016E-06   -.13920E-03
   7  Prefactor     .10000E-03    2.0279       -.91198E-06** at limit **
   8  Prefactor     .19774E-01    1080.6       -.11304E-03    .75643E-04
   9  Prefactor     .88599        3.3843        .47397E-05    .26361E-05
  10  norm          .10000E-03    8.4383       -.46845E-05** at limit **
  11  Prefactor     11.618        10.537        .28706E-05   -.92203E-04
  12  Prefactor     .10000E-03    71.355       -.52190E-05** at limit **
  13  norm          24.691        70.597        .51586E-06    .27892E-03
  14  Prefactor     43.755        4.0828       -.28969E-05    .11916E-02
  15  norm          .10000E-03    3.4466        .17839E-05** at limit **
  16  norm          .10000E-03    122.77       -.11225E-03** at limit **
  17  norm          6.2477        3.9979       -.19186E-06    .16565E-03
  18  Prefactor     .10000E-03    112.66        .14930E-04** at limit **
  19  Prefactor     5.2577        17.727       -.89782E-06   -.26953E-04
  20  norm          .10000E-03    .79385        .12277E-05** at limit **
  21  Prefactor     .10494E-03    1927.0       -.16395E-03** at limit **
  22  Normalizat    1.2894        .24062        .80957E-05   -.32393E-03
  23  Prefactor     .93648        .15731       -.82495E-06   -.37985E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.90482
  norm       = 1.20825
  Prefactor  = 0.000100001
  Prefactor  = 34.9537
  norm       = 0.0001
  norm       = 4.01547
  Prefactor  = 0.0001
  Prefactor  = 0.0197742
  Prefactor  = 0.885992
  norm       = 0.0001
  Prefactor  = 11.6182
  Prefactor  = 0.0001
  norm       = 24.6914
  Prefactor  = 43.7546
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 6.24767
  Prefactor  = 0.000100003
  Prefactor  = 5.25775
  norm       = 0.0001
  Prefactor  = 0.000104939
  Normalizat = 1.28943
  Prefactor  = 0.936482
 **********
 **   18 **HESSE 
 **********

 FCN=   6460.965     FROM HESSE     STATUS=OK           436 CALLS     1935 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9048        2.4388        .51019E-02   -1.5313    
   2  norm          1.2082        1.1360        .10287E-02   -1.5488    
   3  Prefactor     .10000E-03    63.646        .10120E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     34.954        33.956        .16887E-02   -1.4525    
   5  norm          .10000E-03    .28647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.0155        2.1848        .50299E-02   -1.5307    
   7  Prefactor     .10000E-03    2.0356        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .19774E-01    48.690        .11970       -1.5680    
   9  Prefactor     .88599        3.3756        .12774E-01   -1.5520    
  10  norm          .10000E-03    8.4361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.618        10.622        .29138E-02   -1.5026    
  12  Prefactor     .10000E-03    71.542        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.691        71.153        .21033E-02   -1.4714    
  14  Prefactor     43.755        30.812        .15145E-02   -1.4384    
  15  norm          .10000E-03    3.4428        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    17.505        .10082       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.2477        4.0214        .40123E-02   -1.5208    
  18  Prefactor     .10000E-03    112.13        .92331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.2577        17.648        .43861E-02   -1.5249    
  20  norm          .10000E-03    .47828        .30434E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10494E-03    28.427        .14480       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2894        .21614        .62710E-01   -.83882    
  23  Prefactor     .93648        .13528        .45479E-01   -.94878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58721e-08
Minuit parameter uncertainties:
  1  2.43889
  2  1.13602
  3  0.000593065
  4  33.9747
  5  1.22438e-06
  6  2.1848
  7  1.27892e-06
  8  1.95907
  9  3.37634
  10  1.08268e-05
  11  10.6237
  12  4.06935e-05
  13  71.3988
  14  30.8234
  15  4.45664e-06
  16  0.000398025
  17  4.02153
  18  0.00110509
  19  17.6659
  20  6.25244e-07
  21  0.0237105
  22  0.216294
  23  0.13533
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.162e+01  1.062e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.151e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.365e-01  1.353e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.289e+00  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.07
Ra Dec: 119.286 9.949
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 3.05e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.38e-05

TS (Fixed Index): 3.07
Ra Dec: 119.286 9.949
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/26026/likelihoodResults_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.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): 0
logL (Free Index) = 6460.96505755
delta logL = 1.41984946822e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6460.96505694
delta logL = 2.02585124498e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.618       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1514       1.0000          .0000       10.000    
     3 'Normalizat'    1.2894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93647       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6460.965     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      207 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.605        252.16        .29382E-02    .18077E-04
   2  Index         2.1524        6.0715        .22265        .46925E-04
   3  Normalizat    1.2893        .87820E-01    .62711E-01    .10104E-04
   4  Prefactor     .93652        .46018E-01    .45468E-01    .83205E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6051
  Index      = 2.15245
  Normalizat = 1.28934
  Prefactor  = 0.936517
 **********
 **   18 **HESSE 
 **********

 FCN=   6460.965     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.605        11.972        .11753E-03   -1.5027    
   2  Index         2.1524        .78404        .76126E-02   -.60591    
   3  Normalizat    1.2893        .22360        .27738E-03   -.83885    
   4  Prefactor     .93652        .15076        .21736E-03   -.94877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38432e-12
Minuit parameter uncertainties:
  1  11.9742
  2  0.788876
  3  0.22377
  4  0.150823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/26026': 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) = 6460.96505578
delta logL = 3.19285391015e-06

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.161e+01  1.197e+01  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.152e+00  7.889e-01  0.000e+00  1.000e+01 (-1.000e+00)
274        Scale:  1.423e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.365e-01  1.508e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  1.289e+00  2.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 119.286 9.949
Photon Index (Free Index): 2.15 +/- 0.79
Photon Flux (Free Index): 3.06e-08 +/- 3.89e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.68e-05

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/26026/cmap_HighResolution_488937601_489196801_4FGL_J0757.1+0956_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', comment='SUCCESS', photon_flux='3.05e-08', energy_flux2='1.50e-05', photon_flux_error='2.79e-08', dlogl='3.19e-06', energy_flux='1.51e-05', photon_flux2='3.06e-08', job_status='DONE', time_completed='2021-08-28 20:44:19.609498', photon_index_error2='0.79', photon_index2='2.15', ts='3.07', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.68e-05', EG='1.29', time_epoch_completed='1630208659.61', return_code='0', job_id='26026', GAL2='0.94', EG2='1.29', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='3.89e-08', ts2='3.06', photon_index='2.15' WHERE bin_id='963' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:44:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 26026: <4FGL_J0757.1+0956_daily_bin963> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin963> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 28 20:30:41 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:30:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 28 20:30:43 2021
Terminated at Sat Aug 28 20:44:20 2021
Results reported at Sat Aug 28 20:44:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin963 119.286 9.9491 488937601 489196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0757.1+0956 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   681.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            819 sec.

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

