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


Performing analysis on: 4FGL_J0757.1+0956_daily_bin758
RA = 119.286, Dec = 9.9491
tmin = 435801601, tmax = 436060801
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='24740', job_status='RUN', time_executed='2021-08-28 20:29:27.914223', time_epoch_executed='1630207767.91' WHERE source_name='4FGL J0757.1+0956' and cadence='daily' and bin_id='758'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24740

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24740/ft1_4FGL_J0757.1+0956_daily_bin758.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24740/ft2_4FGL_J0757.1+0956_daily_bin758.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24740/ft1_4FGL_J0757.1+0956_daily_bin758.fits outfile=/scratch/kocevski/24740/ft1_filteredMKT_4FGL_J0757.1+0956_daily_bin758.fits ra=119.286 dec=9.9491 rad=12.0 tmin=435801601.0 tmax=436060801.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 9.59
user 5.31
sys 4.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24740/ft1_filtered_4FGL_J0757.1+0956_daily_bin758.fits" evtable="EVENTS" scfile=/scratch/kocevski/24740/ft2_4FGL_J0757.1+0956_daily_bin758.fits sctable="SC_DATA" outfile=/scratch/kocevski/24740/ltcube_435801601_436060801_4FGL_J0757.1+0956_daily_bin758.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/24740/ft2_4FGL_J0757.1+0956_daily_bin758.fits
.....................!
real 16.89
user 11.61
sys 5.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24740/ft1_filtered_4FGL_J0757.1+0956_daily_bin758.fits evtable="EVENTS" scfile=/scratch/kocevski/24740/ft2_4FGL_J0757.1+0956_daily_bin758.fits sctable="SC_DATA" expcube=/scratch/kocevski/24740/ltcube_435801601_436060801_4FGL_J0757.1+0956_daily_bin758.fits outfile=/scratch/kocevski/24740/expmap_435801601_436060801_4FGL_J0757.1+0956_daily_bin758.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/24740/ltcube_435801601_436060801_4FGL_J0757.1+0956_daily_bin758.fits
.....................!
real 194.48
user 185.45
sys 8.61

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/24740/ft1_filtered_4FGL_J0757.1+0956_daily_bin758.fits scfile=/scratch/kocevski/24740/ft2_4FGL_J0757.1+0956_daily_bin758.fits outfile=/scratch/kocevski/24740/cmap_435801601_436060801_4FGL_J0757.1+0956_daily_bin758.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 4.55
user 0.38
sys 4.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24740/ft1_filtered_4FGL_J0757.1+0956_daily_bin758.fits scfile=/scratch/kocevski/24740/ft2_4FGL_J0757.1+0956_daily_bin758.fits outfile=/scratch/kocevski/24740/cmap_HighResolution_435801601_436060801_4FGL_J0757.1+0956_daily_bin758.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 4.12
user 0.38
sys 3.72

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4419       1.0000         .10000E-03   10000.    
     2 'norm      '    3.9735       1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.031       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .40349       1.0000         .10000E-03   10000.    
     6 'norm      '    6.7453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.575       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .46610       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7911       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    87.986       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    7.8579       1.0000         .10000E-03   10000.    
    16 'norm      '    18.077       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1343       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.642       1.0000         .10000E-03   10000.    
    20 'norm      '    2.2943       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0656       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82635       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=   6744.508     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2619 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4413        2.4128       -.81844E-07   -.10535E-03
   2  norm          3.9735        1.6791        .26682E-07   -.14746E-03
   3  Prefactor     41.038        58.214        .36755E-05    .77718E-04
   4  Prefactor     .10000E-03    92.466       -.16318E-05** at limit **
   5  norm          .40474        2.0854        .14002E-05   -.65517E-03
   6  norm          6.7451        2.2873       -.21468E-07   -.56063E-04
   7  Prefactor     27.567        16.658       -.12549E-05   -.12006E-03
   8  Prefactor     .10000E-03    38.357       -.53046E-05** at limit **
   9  Prefactor     .10000E-03    1.8296        .53803E-07** at limit **
  10  norm          .51780        8.4623        .57330E-06   -.25342E-03
  11  Prefactor     4.7740        8.3469       -.40348E-06   -.14320E-03
  12  Prefactor     .10000E-03    51.849        .39613E-05** at limit **
  13  norm          87.992        78.976        .21887E-05    .54595E-04
  14  Prefactor     .10000E-03    34.919        .34841E-05** at limit **
  15  norm          7.8594        8.6101        .24683E-06   -.53853E-03
  16  norm          18.075        16.765        .10865E-06   -.16382E-03
  17  norm          2.1344        2.2260       -.82148E-08    .71442E-05
  18  Prefactor     .10000E-03    10.840       -.11703E-07** at limit **
  19  Prefactor     13.644        17.941       -.29800E-07   -.22244E-04
  20  norm          2.2944        1.0531        .10234E-07   -.39208E-03
  21  Prefactor     .10000E-03    15.781       -.32106E-07** at limit **
  22  Normalizat    1.0654        .20054        .39572E-06   -.86811E-04
  23  Prefactor     .82645        .12746       -.49741E-06   -.27707E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.44129
  norm       = 3.97348
  Prefactor  = 41.0379
  Prefactor  = 0.0001
  norm       = 0.404744
  norm       = 6.74512
  Prefactor  = 27.5667
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.517802
  Prefactor  = 4.77405
  Prefactor  = 0.000100001
  norm       = 87.9917
  Prefactor  = 0.000100001
  norm       = 7.85936
  norm       = 18.0746
  norm       = 2.1344
  Prefactor  = 0.0001
  Prefactor  = 13.6443
  norm       = 2.29438
  Prefactor  = 0.0001
  Normalizat = 1.0654
  Prefactor  = 0.826455
 **********
 **   18 **HESSE 
 **********

 FCN=   6744.508     FROM HESSE     STATUS=OK           378 CALLS     2997 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4413        2.4167        .87387E-04   -1.5286    
   2  norm          3.9735        1.6800        .65645E-04   -1.5309    
   3  Prefactor     41.038        58.933        .62579E-04   -1.4426    
   4  Prefactor     .10000E-03    93.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .40474        2.5644        .18279E-03   -1.5581    
   6  norm          6.7451        2.2870        .68862E-04   -1.5188    
   7  Prefactor     27.567        16.978        .76291E-04   -1.4657    
   8  Prefactor     .10000E-03    39.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8053        .21333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .51780        56.426        .43714E-02   -1.5564    
  11  Prefactor     4.7740        9.2319        .18380E-03   -1.5271    
  12  Prefactor     .10000E-03    52.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          87.992        79.314        .21417E-03   -1.3829    
  14  Prefactor     .10000E-03    35.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          7.8594        8.8544        .71521E-03   -1.5147    
  16  norm          18.075        16.799        .47101E-03   -1.4857    
  17  norm          2.1344        2.2286        .12159E-03   -1.5416    
  18  Prefactor     .10000E-03    10.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.644        18.095        .10845E-03   -1.4969    
  20  norm          2.2944        1.0547        .13549E-03   -1.5405    
  21  Prefactor     .10000E-03    15.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0654        .23104        .29586E-03   -.90871    
  23  Prefactor     .82645        .14759        .21536E-03   -.98760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57116e-09
Minuit parameter uncertainties:
  1  2.41675
  2  1.67998
  3  59.0169
  4  0.000291295
  5  2.03744
  6  2.28699
  7  16.9813
  8  0.000587123
  9  9.98642e-06
  10  10.8201
  11  9.23466
  12  0.000526244
  13  79.4093
  14  0.000367495
  15  8.85588
  16  16.8035
  17  2.22865
  18  1.74583e-07
  19  18.1025
  20  1.05471
  21  1.25118e-06
  22  0.231258
  23  0.147662
Done.

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

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  4.774e+00  9.235e+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

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  8.265e-01  1.477e-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.065e+00  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/24740/likelihoodResults_435801601_436060801_4FGL_J0757.1+0956_daily_bin758.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) = 6744.50137842
delta logL = 0.00630337641815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6744.50007587
delta logL = 0.00760592889401

Fit tolerance = 1e-08

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

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

 FCN=   6744.500     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      241 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2050        9.1411        .17620E-03   -.75039E-04
   2  Index         2.0238        1.0160        .13359E-01   -.17267E-04
   3  Normalizat    1.0674        .21576        .29560E-03    .55804E-04
   4  Prefactor     .82566        .14049        .21545E-03    .61686E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.20501
  Index      = 2.02377
  Normalizat = 1.06741
  Prefactor  = 0.825663
 **********
 **   18 **HESSE 
 **********

 FCN=   6744.500     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2050        8.9435        .70479E-05   -1.5252    
   2  Index         2.0238        .99467        .53435E-03   -.63757    
   3  Normalizat    1.0674        .21586        .11824E-04   -.90805    
   4  Prefactor     .82566        .14058        .86179E-05   -.98789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61785e-11
Minuit parameter uncertainties:
  1  8.94583
  2  1.00512
  3  0.216039
  4  0.140641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24740': 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) = 6744.50007585
delta logL = 0.0076059448329

Extracting fit parameters...

4FGL J0757.1+0956
   Spectrum: PowerLaw
272    Prefactor:  5.205e+00  8.946e+00  1.000e-04  1.000e+04 ( 1.000e-13)
273        Index:  2.024e+00  1.005e+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.257e-01  1.406e-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.067e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/24740/cmap_HighResolution_435801601_436060801_4FGL_J0757.1+0956_daily_bin758.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.57e-03', job_status='DONE', photon_flux_upper_limit='7.34e-08', time_completed='2021-08-28 20:42:13.985482', job_id='24740', GAL2='0.83', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630208533.99', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='7.61e-03', ts2='0.57', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='758' AND source_name='4FGL J0757.1+0956' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 28 20:42:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 24740: <4FGL_J0757.1+0956_daily_bin758> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0757.1+0956_daily_bin758 119.286 9.9491 435801601 436060801 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 :                                   828.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             245.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

