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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin718
RA = 119.286, Dec = 9.9491
tmin = 425433601, tmax = 425692801
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='24680', job_status='RUN', time_executed='2021-08-28 20:25:56.547787', time_epoch_executed='1630207556.55' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24680

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

Retrieving the FT1 file...

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

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

Retrieving 38 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24680/ft1_4FGL_J0757.1+0956_daily_bin718.fits


Retrieving the FT1 file...

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

Retrieving 38 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24680/ft2_4FGL_J0757.1+0956_daily_bin718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24680/ft1_4FGL_J0757.1+0956_daily_bin718.fits outfile=/scratch/kocevski/24680/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin718.fits ra=119.286 dec=9.9491 rad=12.0 tmin=425433601.0 tmax=425692801.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.43
user 2.85
sys 0.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24680/ft1_filtered_4FGL_J0757.1+0956_daily_bin718.fits" evtable="EVENTS" scfile=/scratch/kocevski/24680/ft2_4FGL_J0757.1+0956_daily_bin718.fits sctable="SC_DATA" outfile=/scratch/kocevski/24680/ltcube_425433601_425692801_4FGL_J0757.1+0956_daily_bin718.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/24680/ft2_4FGL_J0757.1+0956_daily_bin718.fits
.....................!
real 10.62
user 9.89
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24680/ft1_filtered_4FGL_J0757.1+0956_daily_bin718.fits evtable="EVENTS" scfile=/scratch/kocevski/24680/ft2_4FGL_J0757.1+0956_daily_bin718.fits sctable="SC_DATA" expcube=/scratch/kocevski/24680/ltcube_425433601_425692801_4FGL_J0757.1+0956_daily_bin718.fits outfile=/scratch/kocevski/24680/expmap_425433601_425692801_4FGL_J0757.1+0956_daily_bin718.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/24680/ltcube_425433601_425692801_4FGL_J0757.1+0956_daily_bin718.fits
.....................!
real 191.37
user 186.09
sys 4.81

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/24680/ft1_filtered_4FGL_J0757.1+0956_daily_bin718.fits scfile=/scratch/kocevski/24680/ft2_4FGL_J0757.1+0956_daily_bin718.fits outfile=/scratch/kocevski/24680/cmap_425433601_425692801_4FGL_J0757.1+0956_daily_bin718.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 0.95
user 0.38
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24680/ft1_filtered_4FGL_J0757.1+0956_daily_bin718.fits scfile=/scratch/kocevski/24680/ft2_4FGL_J0757.1+0956_daily_bin718.fits outfile=/scratch/kocevski/24680/cmap_HighResolution_425433601_425692801_4FGL_J0757.1+0956_daily_bin718.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 0.94
user 0.37
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13100E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1865       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.122       1.0000         .10000E-03   10000.    
     5 'norm      '    .53257       1.0000         .10000E-03   10000.    
     6 'norm      '    9.8631       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.376       1.0000         .10000E-03   10000.    
     8 'Prefactor '    54.150       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3788       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0101       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.553       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0237       1.0000         .10000E-03   10000.    
    16 'norm      '    44.916       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1344       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1276       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2446       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=   5685.172     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2573 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.3686        .91493E-06** at limit **
   2  norm          1.1859        1.6648        .43374E-06    .14651E-03
   3  Prefactor     .10000E-03    18.809        .15407E-06** at limit **
   4  Prefactor     43.141        44.505       -.48361E-06   -.41030E-04
   5  norm          .53611        2.1646       -.59400E-06    .35814E-03
   6  norm          9.8634        3.2917        .12055E-08   -.34874E-03
   7  Prefactor     10.366        18.128        .17244E-05   -.23995E-04
   8  Prefactor     54.114        55.551       -.16860E-05   -.64331E-04
   9  Prefactor     3.3786        3.9905        .14177E-06   -.10871E-03
  10  norm          .10000E-03    8.4536        .14829E-07** at limit **
  11  Prefactor     1.0092        10.270        .53147E-06    .17193E-05
  12  Prefactor     .10000E-03    95.124       -.98158E-06** at limit **
  13  norm          12.324        252.55       -.12134E-04   -.81851E-04
  14  Prefactor     .10000E-03    15.933        .69699E-07** at limit **
  15  norm          3.0234        11.893        .15875E-04   -.12312E-03
  16  norm          44.926        29.699        .15606E-06    .37302E-05
  17  norm          4.1347        4.2429       -.18612E-06   -.88861E-04
  18  Prefactor     .10000E-03    14.280        .35481E-06** at limit **
  19  Prefactor     .10000E-03    5.9821        .21859E-06** at limit **
  20  norm          .10000E-03    .44568        .28810E-06** at limit **
  21  Prefactor     .10000E-03    81.629        .28951E-05** at limit **
  22  Normalizat    1.1270        .25074       -.22323E-05   -.20544E-03
  23  Prefactor     1.2451        .16607       -.13260E-05   -.35435E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100004
  norm       = 1.18593
  Prefactor  = 0.0001
  Prefactor  = 43.1405
  norm       = 0.536108
  norm       = 9.8634
  Prefactor  = 10.3662
  Prefactor  = 54.1135
  Prefactor  = 3.37863
  norm       = 0.0001
  Prefactor  = 1.00921
  Prefactor  = 0.000100002
  norm       = 12.3244
  Prefactor  = 0.0001
  norm       = 3.02339
  norm       = 44.926
  norm       = 4.13473
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.12699
  Prefactor  = 1.24506
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.172     FROM HESSE     STATUS=OK           372 CALLS     2945 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7074        .16632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1859        1.6373        .10798E-03   -1.5490    
   3  Prefactor     .10000E-03    18.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.141        44.136        .61049E-04   -1.4393    
   5  norm          .53611        2.4024        .14370E-03   -1.5562    
   6  norm          9.8634        3.2931        .75172E-04   -1.5080    
   7  Prefactor     10.366        19.697        .12439E-03   -1.5064    
   8  Prefactor     54.114        56.733        .54508E-04   -1.4235    
   9  Prefactor     3.3786        3.9722        .15213E-03   -1.5340    
  10  norm          .10000E-03    8.4565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0092        29.313        .45705E-02   -1.5507    
  12  Prefactor     .10000E-03    95.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.324        262.17        .11306E-03   -1.5006    
  14  Prefactor     .10000E-03    15.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0234        11.894        .11669E-02   -1.5360    
  16  norm          44.926        29.753        .59823E-04   -1.4366    
  17  norm          4.1347        4.2383        .15216E-03   -1.5301    
  18  Prefactor     .10000E-03    14.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9934        .18012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .68573        .97829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    82.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1270        .29213        .32974E-03   -.88890    
  23  Prefactor     1.2451        .19258        .21782E-03   -.84956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96575e-09
Minuit parameter uncertainties:
  1  0.000279401
  2  1.63739
  3  2.70928e-05
  4  44.1691
  5  2.26969
  6  3.2932
  7  19.7095
  8  56.7894
  9  3.9725
  10  2.11445e-06
  11  10.8834
  12  0.000926129
  13  114.259
  14  6.87431e-05
  15  11.9036
  16  29.7629
  17  4.23862
  18  5.44861e-05
  19  9.02167e-06
  20  4.26747e-06
  21  0.00107546
  22  0.292551
  23  0.192689
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.009e+00  1.088e+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:  1.245e+00  1.927e-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.127e+00  2.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/24680/likelihoodResults_425433601_425692801_4FGL_J0757.1+0956_daily_bin718.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) = 5685.16916026
delta logL = 0.00310807454207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5685.16895045
delta logL = 0.00331788630319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0093       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3706       1.0000          .0000       10.000    
     3 'Normalizat'    1.1254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2455       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5685.169     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      280 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0582        25.154        .26431E-02    .89993E-03
   2  Index         2.3726        2.7653        .66612E-02    .96300E-05
   3  Normalizat    1.1252        .27159        .32996E-03    .28627E-03
   4  Prefactor     1.2456        .18712        .21778E-03    .16886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0582
  Index      = 2.37257
  Normalizat = 1.12523
  Prefactor  = 1.24557
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.169     FROM HESSE     STATUS=OK            27 CALLS      307 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0582        20.742        .52863E-03   -1.5502    
   2  Index         2.3726        2.5504        .13322E-02   -.55329    
   3  Normalizat    1.1252        .27176        .65992E-04   -.88946    
   4  Prefactor     1.2456        .18724        .43555E-04   -.84940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02221e-10
Minuit parameter uncertainties:
  1  9.3732
  2  2.73501
  3  0.272098
  4  0.187343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24680': 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) = 5685.16893256
delta logL = 0.00333577698439

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  1.058e+00  9.373e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.373e+00  2.735e+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:  1.246e+00  1.873e-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.125e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/24680/cmap_HighResolution_425433601_425692801_4FGL_J0757.1+0956_daily_bin718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', job_status='DONE', photon_flux_upper_limit='8.62e-08', time_completed='2021-08-28 20:36:58.100716', job_id='24680', GAL2='1.25', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630208218.1', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='3.34e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='718' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:36:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 24680: <4FGL_J0757.1+0956_daily_bin718> in cluster <slac> Done

Job <4FGL_J0757.1+0956_daily_bin718> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 28 20:25:38 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 28 20:25:39 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:25:39 2021
Terminated at Sat Aug 28 20:36:58 2021
Results reported at Sat Aug 28 20:36:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin718 119.286 9.9491 425433601 425692801 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 :                                   663.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

