/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 1 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 = 7419
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0941.9+2724_daily_bin18
RA = 145.494, Dec = 27.4136
tmin = 243993601, tmax = 244252801
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='432602', job_status='RUN', time_executed='2021-08-31 22:30:37.440747', time_epoch_executed='1630474237.44' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432602/ft1_4FGL_J0941.9+2724_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432602/ft1_4FGL_J0941.9+2724_daily_bin18.fits outfile=/scratch/kocevski/432602/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin18.fits ra=145.494 dec=27.4136 rad=12.0 tmin=243993601.0 tmax=244252801.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 1.39
user 1.23
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.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/432602/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/432602/ft1_filtered_4FGL_J0941.9+2724_daily_bin18.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432602/ft1_filtered_4FGL_J0941.9+2724_daily_bin18.fits" evtable="EVENTS" scfile=/scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits sctable="SC_DATA" outfile=/scratch/kocevski/432602/ltcube_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.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/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits
.....................!
real 12.71
user 12.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432602/ft1_filtered_4FGL_J0941.9+2724_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/432602/ltcube_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.fits outfile=/scratch/kocevski/432602/expmap_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.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/432602/ltcube_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.fits
.....................!
real 190.75
user 185.19
sys 5.16

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
Added 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J0941.9+2724 @ 145.494 27.4136

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/432602/ft1_filtered_4FGL_J0941.9+2724_daily_bin18.fits scfile=/scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits outfile=/scratch/kocevski/432602/cmap_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.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=145.494 yref=27.4136 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.62
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432602/ft1_filtered_4FGL_J0941.9+2724_daily_bin18.fits scfile=/scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits outfile=/scratch/kocevski/432602/cmap_HighResolution_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.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=145.494 yref=27.4136 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.65
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432602/ft1_filtered_4FGL_J0941.9+2724_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432602/Model_4FGL_J0941.9+2724_daily_bin18.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
Working on...
/scratch/kocevski/432602/ft1_filtered_4FGL_J0941.9+2724_daily_bin18.fits.....................!
real 60.37
user 56.58
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/432602/ft1_filtered_4FGL_J0941.9+2724_daily_bin18.fits', '/scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits', expMap='/scratch/kocevski/432602/expmap_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.fits', expCube='/scratch/kocevski/432602/ltcube_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/432602/Model_4FGL_J0941.9+2724_daily_bin18.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0941.9+2724'

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  6.273e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/432602/ft1_filtered_4FGL_J0941.9+2724_daily_bin18.fits
Spacecraft file(s): /scratch/kocevski/432602/ft2_4FGL_J0941.9+2724_daily_bin18.fits
Exposure map: /scratch/kocevski/432602/expmap_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.fits
Exposure cube: /scratch/kocevski/432602/ltcube_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/432602/Model_4FGL_J0941.9+2724_daily_bin18.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) = 6505.60790128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2210       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5335       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.1603       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.331       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.042       1.0000         .10000E-03   10000.    
    10 'Prefactor '    98.722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .34183E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8378       1.0000         .10000E-03   10000.    
    14 'norm      '    18.052       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.2940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92094       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .91515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6505.602     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2020 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2197        11.110        .71213E-06    .18921E-03
   2  Prefactor     .10000E-03    6.6812       -.22502E-06** at limit **
   3  norm          .10000E-03    13.439       -.11577E-06** at limit **
   4  Prefactor     4.5331        3.1516        .17844E-06    .44332E-03
   5  norm          2.6760        1.6646        .37598E-07    .18387E-03
   6  Prefactor     .10000E-03    14.679       -.71347E-06** at limit **
   7  Prefactor     5.1602        3.3115        .12255E-06    .93774E-04
   8  Prefactor     18.340        21.523        .93589E-06    .16716E-03
   9  Prefactor     29.056        43.437        .21975E-05    .21934E-03
  10  Prefactor     98.719        45.701       -.67115E-07   -.24259E-03
  11  Prefactor     .10001E-03    12.253        .77998E-05** at limit **
  12  Prefactor     .10000E-03    4.8671        .10864E-06** at limit **
  13  Prefactor     2.8386        2.1402        .16669E-06   -.19605E-04
  14  norm          18.055        8.2959        .10188E-08   -.48533E-03
  15  Prefactor     8.2937        4.1884        .30634E-06    .83412E-03
  16  Prefactor     .10000E-03    19.792        .11019E-05** at limit **
  17  Prefactor     .10000E-03    2.0052        .37263E-06** at limit **
  18  Prefactor     .10000E-03    28.528       -.67387E-06** at limit **
  19  Normalizat    .92100        .15828       -.17915E-05   -.78818E-03
  20  Prefactor     .91519        .16080        .99051E-06   -.48636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.21971
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.5331
  norm       = 2.676
  Prefactor  = 0.000100001
  Prefactor  = 5.16021
  Prefactor  = 18.3405
  Prefactor  = 29.0561
  Prefactor  = 98.7187
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 2.83859
  norm       = 18.0549
  Prefactor  = 8.2937
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.921002
  Prefactor  = 0.915185
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.602     FROM HESSE     STATUS=OK           285 CALLS     2305 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2197        11.177        .16095E-03   -1.5209    
   2  Prefactor     .10000E-03    6.7386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    13.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.5331        3.1609        .11585E-03   -1.5282    
   5  norm          2.6760        1.6620        .79068E-04   -1.5381    
   6  Prefactor     .10000E-03    14.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.1602        3.3165        .11177E-03   -1.5254    
   8  Prefactor     18.340        21.626        .93547E-04   -1.4851    
   9  Prefactor     29.056        44.265        .74343E-04   -1.4629    
  10  Prefactor     98.719        45.897        .40459E-04   -1.3718    
  11  Prefactor     .10001E-03    12.762        .27695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9071        .17376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8386        2.1306        .98015E-04   -1.5371    
  14  norm          18.055        8.2781        .94267E-04   -1.4858    
  15  Prefactor     8.2937        4.2383        .11299E-03   -1.5132    
  16  Prefactor     .10000E-03    20.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0272        .11170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92100        .18639        .23780E-03   -.95726    
  20  Prefactor     .91519        .18613        .24732E-03   -.95612    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89882e-09
Minuit parameter uncertainties:
  1  11.1811
  2  4.32444e-05
  3  3.05829e-05
  4  3.16101
  5  1.66206
  6  0.000270198
  7  3.31666
  8  21.6354
  9  44.315
  10  45.9138
  11  0.000581283
  12  1.67242e-05
  13  2.13065
  14  8.2786
  15  4.23849
  16  0.000501771
  17  3.55685e-05
  18  0.000352677
  19  0.186518
  20  0.186261
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  1.834e+01  2.164e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.433e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.152e-01  1.863e-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:  9.210e-01  1.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 2.34e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 7.35e-06 +/- 8.67e-06

TS (Fixed Index): 1.21
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 9.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432602/likelihoodResults_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.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) = 6505.56495655
delta logL = 0.0371774519936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6505.56052988
delta logL = 0.0416041139297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.343       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1898       1.0000          .0000       10.000    
     3 'Normalizat'    .92738       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91114       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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=   6505.561     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      237 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.346        24.223        .88803E-04   -.11696E-02
   2  Index         2.1892        .82651        .11363E-01   -.42968E-03
   3  Normalizat    .92728        .17881        .23706E-03    .47290E-03
   4  Prefactor     .91121        .18501        .24778E-03    .49349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3461
  Index      = 2.1892
  Normalizat = 0.927281
  Prefactor  = 0.911205
 **********
 **   18 **HESSE 
 **********

 FCN=   6505.561     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.346        24.099        .17761E-04   -1.4806    
   2  Index         2.1892        .82203        .45451E-03   -.59699    
   3  Normalizat    .92728        .17889        .47413E-04   -.95508    
   4  Prefactor     .91121        .18512        .49556E-04   -.95751    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11733e-08
Minuit parameter uncertainties:
  1  24.1102
  2  0.827547
  3  0.179009
  4  0.185245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432602': 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) = 6505.56052942
delta logL = 0.041604582244

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  2.035e+01  2.411e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  2.189e+00  8.275e-01  0.000e+00  1.000e+01 (-1.000e+00)
262        Scale:  8.503e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  9.112e-01  1.852e-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:  9.273e-01  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.29
Ra Dec: 145.494 27.414
Photon Index (Free Index): 2.19 +/- 0.83
Photon Flux (Free Index): 1.86e-08 +/- 2.83e-08
Energy Flux (Free Index): 8.50e-06 +/- 1.12e-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/432602/cmap_HighResolution_243993601_244252801_4FGL_J0941.9+2724_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.07e-03', comment='SUCCESS', photon_flux='2.34e-08', energy_flux2='8.50e-06', photon_flux_error='2.76e-08', dlogl='4.16e-02', energy_flux='7.35e-06', photon_flux2='1.86e-08', job_status='DONE', time_completed='2021-08-31 22:40:43.073448', photon_index_error2='0.83', photon_index2='2.19', ts='1.21', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='9.13e-08', energy_flux_error2='1.12e-05', EG='0.92', time_epoch_completed='1630474843.07', return_code='0', job_id='432602', GAL2='0.91', EG2='0.93', return_code2='0', energy_flux_error='8.67e-06', photon_flux_error2='2.83e-08', ts2='1.29', photon_index='2.43' WHERE bin_id='18' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:40:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 432602: <4FGL_J0941.9+2724_daily_bin18> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin18> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 22:30:25 2021
Job was executed on host(s) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:30:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 22:30:26 2021
Terminated at Tue Aug 31 22:40:43 2021
Results reported at Tue Aug 31 22:40:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin18 145.494 27.4136 243993601 244252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0941.9+2724 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   600.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             391.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   617 sec.
    Turnaround time :                            618 sec.

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

