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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin396
RA = 119.286, Dec = 9.9491
tmin = 341971201, tmax = 342230401
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='21759', job_status='RUN', time_executed='2021-08-28 20:19:19.950153', time_epoch_executed='1630207159.95' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/21759

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/21759/ft1_4FGL_J0757.1+0956_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/21759/ft2_4FGL_J0757.1+0956_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/21759/ft1_4FGL_J0757.1+0956_daily_bin396.fits outfile=/scratch/kocevski/21759/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin396.fits ra=119.286 dec=9.9491 rad=12.0 tmin=341971201.0 tmax=342230401.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.63
user 3.24
sys 2.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/21759/ft2_4FGL_J0757.1+0956_daily_bin396.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/21759/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin396.fits evtable="EVENTS" outfile="/scratch/kocevski/21759/ft1_filtered_4FGL_J0757.1+0956_daily_bin396.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.68
user 0.32
sys 2.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/21759/ft1_filtered_4FGL_J0757.1+0956_daily_bin396.fits" evtable="EVENTS" scfile=/scratch/kocevski/21759/ft2_4FGL_J0757.1+0956_daily_bin396.fits sctable="SC_DATA" outfile=/scratch/kocevski/21759/ltcube_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.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/21759/ft2_4FGL_J0757.1+0956_daily_bin396.fits
.....................!
real 18.80
user 15.27
sys 3.25

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/21759/ft1_filtered_4FGL_J0757.1+0956_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/21759/ft2_4FGL_J0757.1+0956_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/21759/ltcube_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.fits outfile=/scratch/kocevski/21759/expmap_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.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/21759/ltcube_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.fits
.....................!
real 195.43
user 186.43
sys 8.58

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/21759/ft1_filtered_4FGL_J0757.1+0956_daily_bin396.fits scfile=/scratch/kocevski/21759/ft2_4FGL_J0757.1+0956_daily_bin396.fits outfile=/scratch/kocevski/21759/cmap_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.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.87
user 0.36
sys 2.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/21759/ft1_filtered_4FGL_J0757.1+0956_daily_bin396.fits scfile=/scratch/kocevski/21759/ft2_4FGL_J0757.1+0956_daily_bin396.fits outfile=/scratch/kocevski/21759/cmap_HighResolution_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.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.90
user 0.37
sys 2.50

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/21759/ft1_filtered_4FGL_J0757.1+0956_daily_bin396.fits', '/scratch/kocevski/21759/ft2_4FGL_J0757.1+0956_daily_bin396.fits', expMap='/scratch/kocevski/21759/expmap_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.fits', expCube='/scratch/kocevski/21759/ltcube_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/21759/Model_4FGL_J0757.1+0956_daily_bin396.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/21759/ft1_filtered_4FGL_J0757.1+0956_daily_bin396.fits
Spacecraft file(s): /scratch/kocevski/21759/ft2_4FGL_J0757.1+0956_daily_bin396.fits
Exposure map: /scratch/kocevski/21759/expmap_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.fits
Exposure cube: /scratch/kocevski/21759/ltcube_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/21759/Model_4FGL_J0757.1+0956_daily_bin396.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) = 6438.90648166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7346       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1243       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    50.357       1.0000         .10000E-03   10000.    
     5 'norm      '    5.1762       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1886       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.299       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    33.873       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7281       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.8562       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4708       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1120       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84280       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6438.883     FROM MIGRAD    STATUS=CONVERGED    501 CALLS     2547 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7347        1.4394       -.64180E-07   -.92745E-04
   2  norm          1.1243        .97606       -.74760E-07   -.23309E-03
   3  Prefactor     .10000E-03    23.094       -.22812E-05** at limit **
   4  Prefactor     50.357        35.590       -.10668E-05    .21606E-04
   5  norm          5.1763        1.9169        .48022E-06    .13850E-03
   6  norm          1.1888        1.4586       -.21390E-06   -.64516E-03
   7  Prefactor     .10000E-03    11.624        .65005E-06** at limit **
   8  Prefactor     19.272        41.751       -.40710E-04    .21234E-05
   9  Prefactor     .10000E-03    1.1573       -.10773E-06** at limit **
  10  norm          33.901        21.830        .99622E-05    .19955E-03
  11  Prefactor     .10002E-03    27.624       -.70214E-05** at limit **
  12  Prefactor     .10000E-03    42.297        .16035E-04** at limit **
  13  norm          .10000E-03    25.392       -.75018E-05** at limit **
  14  Prefactor     .10000E-03    21.548        .72916E-05** at limit **
  15  norm          2.7283        9.6125       -.12504E-05   -.22021E-03
  16  norm          .10000E-03    7.7372       -.93800E-08** at limit **
  17  norm          6.8559        3.9810       -.52655E-06   -.18986E-02
  18  Prefactor     3.4669        55.642       -.11371E-04   -.28281E-04
  19  Prefactor     .10000E-03    3.7408       -.21224E-07** at limit **
  20  norm          .10000E-03    .45222       -.93796E-07** at limit **
  21  Prefactor     .10000E-03    48.662       -.51220E-05** at limit **
  22  Normalizat    1.1121        .18357        .32724E-05    .92182E-05
  23  Prefactor     .84269        .12164       -.18855E-06    .28045E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73474
  norm       = 1.12433
  Prefactor  = 0.0001
  Prefactor  = 50.3567
  norm       = 5.1763
  norm       = 1.18881
  Prefactor  = 0.000100002
  Prefactor  = 19.2721
  Prefactor  = 0.0001
  norm       = 33.9012
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.72832
  norm       = 0.0001
  norm       = 6.85587
  Prefactor  = 3.46691
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11212
  Prefactor  = 0.842692
 **********
 **   18 **HESSE 
 **********

 FCN=   6438.883     FROM HESSE     STATUS=OK           368 CALLS     2915 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7347        1.4419        .84084E-04   -1.5445    
   2  norm          1.1243        .97268        .70884E-04   -1.5496    
   3  Prefactor     .10000E-03    23.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     50.357        35.517        .56513E-04   -1.4288    
   5  norm          5.1763        1.9081        .64286E-04   -1.5253    
   6  norm          1.1888        1.4343        .10238E-03   -1.5490    
   7  Prefactor     .10000E-03    11.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     19.272        41.642        .91172E-04   -1.4830    
   9  Prefactor     .10000E-03    1.1691        .84245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          33.901        21.854        .68853E-04   -1.4543    
  11  Prefactor     .10002E-03    28.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    25.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7283        9.6062        .24654E-03   -1.5378    
  16  norm          .10000E-03    7.7473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8559        3.9963        .59203E-03   -1.5184    
  18  Prefactor     3.4669        56.128        .21706E-03   -1.5336    
  19  Prefactor     .10000E-03    3.7452        .15156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .86126        .10463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1121        .21133        .26711E-03   -.89364    
  23  Prefactor     .84269        .14063        .20445E-03   -.98173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34732e-09
Minuit parameter uncertainties:
  1  1.44193
  2  0.972696
  3  3.88731e-06
  4  35.5324
  5  1.90808
  6  1.43438
  7  0.000305886
  8  41.7047
  9  1.02755e-05
  10  21.8591
  11  0.00156791
  12  1.95736e-05
  13  2.09322e-05
  14  4.0942e-05
  15  9.61162
  16  7.14973e-07
  17  3.99641
  18  27.9297
  19  3.16843e-06
  20  9.38704e-06
  21  0.000104856
  22  0.211493
  23  0.140691
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.000e-04  1.568e-03  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:  8.427e-01  1.407e-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.112e+00  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 119.286 9.949
Photon Flux Upper Limit: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/21759/likelihoodResults_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.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) = 6438.88329225
delta logL = -0.000168352854416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6438.88312379
delta logL = 1.00115357782e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13545E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2427       1.0000          .0000       10.000    
     3 'Normalizat'    1.1122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84262       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6438.835     FROM MIGRAD    STATUS=FAILED       226 CALLS      368 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96589        152.66        .42078E-02   -.13789E-02
   2  Index         3.0876        6.5160        .20000        .18708E-03
   3  Normalizat    1.0920        .43070E-01    .26711E-03    .24287E-03
   4  Prefactor     .84980        .28673E-01    .20445E-03    .15904E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6438.835     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      451 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96589        152.66        .32858E-03   -.13789E-02
   2  Index         3.0876        6.5160        .21736E-02    .18708E-03
   3  Normalizat    1.0920        .43070E-01    .15051E-03    .24287E-03
   4  Prefactor     .84980        .28673E-01    .33863E-04    .15904E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6438.835     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      484 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96583        14.504        .16831E-03   -.29903E-03
   2  Index         3.0876        2.7282        .99004E-02    .10811E-03
   3  Normalizat    1.0920        .21118        .53422E-04    .12798E-03
   4  Prefactor     .84980        .13878        .81779E-05    .62836E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.965829
  Index      = 3.08761
  Normalizat = 1.09198
  Prefactor  = 0.849798
 **********
 **   18 **HESSE 
 **********

 FCN=   6438.835     FROM HESSE     STATUS=OK            25 CALLS      509 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96583        6.6009        .67324E-05   -1.5905    
   2  Index         3.0876        1.9052        .39602E-03   -.39248    
   3  Normalizat    1.0920        .21134        .10684E-04   -.90010    
   4  Prefactor     .84980        .13882        .16356E-05   -.97918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54652e-10
Minuit parameter uncertainties:
  1  5.05042
  2  1.96386
  3  0.211501
  4  0.138879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/21759': 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) = 6438.83541353
delta logL = 0.047710365292

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  9.658e-01  5.050e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  3.088e+00  1.964e+00  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:  8.498e-01  1.389e-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.092e+00  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 119.286 9.949

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/21759/cmap_HighResolution_341971201_342230401_4FGL_J0757.1+0956_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.63e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-08-28 20:31:49.413666', job_id='21759', GAL2='0.85', fit_tolerance='1e-08', EG2='1.09', EG='1.11', time_epoch_completed='1630207909.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='4.77e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='396' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:31:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 21759: <4FGL_J0757.1+0956_daily_bin396> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin396> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Aug 28 20:15:34 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:15:36 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:15:36 2021
Terminated at Sat Aug 28 20:31:50 2021
Results reported at Sat Aug 28 20:31:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin396 119.286 9.9491 341971201 342230401 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 :                                   778.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

