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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin115
RA = 145.494, Dec = 27.4136
tmin = 269136001, tmax = 269395201
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='432752', job_status='RUN', time_executed='2021-08-31 22:30:45.966168', time_epoch_executed='1630474245.97' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='115'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432752/ft1_4FGL_J0941.9+2724_daily_bin115.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432752/ft2_4FGL_J0941.9+2724_daily_bin115.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432752/ft1_4FGL_J0941.9+2724_daily_bin115.fits outfile=/scratch/kocevski/432752/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin115.fits ra=145.494 dec=27.4136 rad=12.0 tmin=269136001.0 tmax=269395201.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.67
user 1.49
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432752/ft1_filtered_4FGL_J0941.9+2724_daily_bin115.fits" evtable="EVENTS" scfile=/scratch/kocevski/432752/ft2_4FGL_J0941.9+2724_daily_bin115.fits sctable="SC_DATA" outfile=/scratch/kocevski/432752/ltcube_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.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/432752/ft2_4FGL_J0941.9+2724_daily_bin115.fits
.....................!
real 12.25
user 11.91
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432752/ft1_filtered_4FGL_J0941.9+2724_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/432752/ft2_4FGL_J0941.9+2724_daily_bin115.fits sctable="SC_DATA" expcube=/scratch/kocevski/432752/ltcube_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.fits outfile=/scratch/kocevski/432752/expmap_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.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/432752/ltcube_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.fits
.....................!
real 191.30
user 187.01
sys 3.87

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/432752/ft1_filtered_4FGL_J0941.9+2724_daily_bin115.fits scfile=/scratch/kocevski/432752/ft2_4FGL_J0941.9+2724_daily_bin115.fits outfile=/scratch/kocevski/432752/cmap_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.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.59
user 0.37
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432752/ft1_filtered_4FGL_J0941.9+2724_daily_bin115.fits scfile=/scratch/kocevski/432752/ft2_4FGL_J0941.9+2724_daily_bin115.fits outfile=/scratch/kocevski/432752/cmap_HighResolution_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.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.56
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432752/ft1_filtered_4FGL_J0941.9+2724_daily_bin115.fits evtable="EVENTS" scfile=/scratch/kocevski/432752/ft2_4FGL_J0941.9+2724_daily_bin115.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432752/Model_4FGL_J0941.9+2724_daily_bin115.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/432752/ft1_filtered_4FGL_J0941.9+2724_daily_bin115.fits.....................!
real 57.80
user 55.48
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/432752/ft1_filtered_4FGL_J0941.9+2724_daily_bin115.fits', '/scratch/kocevski/432752/ft2_4FGL_J0941.9+2724_daily_bin115.fits', expMap='/scratch/kocevski/432752/expmap_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.fits', expCube='/scratch/kocevski/432752/ltcube_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/432752/Model_4FGL_J0941.9+2724_daily_bin115.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/432752/ft1_filtered_4FGL_J0941.9+2724_daily_bin115.fits
Spacecraft file(s): /scratch/kocevski/432752/ft2_4FGL_J0941.9+2724_daily_bin115.fits
Exposure map: /scratch/kocevski/432752/expmap_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.fits
Exposure cube: /scratch/kocevski/432752/ltcube_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/432752/Model_4FGL_J0941.9+2724_daily_bin115.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) = 6457.42116127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    32.914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.5434       1.0000         .10000E-03   10000.    
     5 'norm      '    .37879       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.8520       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.8595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5191       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5317       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0797       1.0000         .10000E-03   10000.    
    14 'norm      '    25.119       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .46487E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0466       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.4148       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1838       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96701       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=   6457.383     FROM MIGRAD    STATUS=CONVERGED    747 CALLS     2090 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8940        .13347E-02** at limit **
   2  Prefactor     .10000E-03    5.8606        .18142E-02** at limit **
   3  norm          32.906        31.473        .69845E-04   -.10092E-04
   4  Prefactor     7.5432        4.3927        .12388E-03   -.12096E-03
   5  norm          .37876        1.0488        .13817E-02    .40172E-03
   6  Prefactor     .10000E-03    15.322        .18142E-02** at limit **
   7  Prefactor     2.8515        3.6794        .82656E-03   -.44578E-04
   8  Prefactor     7.8639        29.641        .14303E-03   -.15738E-04
   9  Prefactor     .10000E-03    22.465        .18142E-02** at limit **
  10  Prefactor     .10000E-03    8.2539        .18142E-02** at limit **
  11  Prefactor     6.5185        5.8768        .15718E-03   -.68423E-04
  12  Prefactor     7.5321        7.0572        .14613E-03   -.26685E-04
  13  Prefactor     5.0796        2.5053        .85777E-04   -.10272E-03
  14  norm          25.116        10.497        .79927E-04   -.55188E-04
  15  Prefactor     .10000E-03    1.5098        .95989E-03** at limit **
  16  Prefactor     .10000E-03    40.919        .15507    ** at limit **
  17  Prefactor     4.0466        3.9470        .15240E-03   -.63782E-04
  18  Prefactor     9.3217        34.907        .13061E-03    .64412E-05
  19  Normalizat    1.1838        .20890        .23762E-03   -.35246E-03
  20  Prefactor     .96703        .21013        .27051E-03   -.12633E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 32.9062
  Prefactor  = 7.5432
  norm       = 0.378762
  Prefactor  = 0.0001
  Prefactor  = 2.85146
  Prefactor  = 7.86393
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.51849
  Prefactor  = 7.5321
  Prefactor  = 5.07964
  norm       = 25.1162
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 4.04662
  Prefactor  = 9.32172
  Normalizat = 1.1838
  Prefactor  = 0.967035
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.383     FROM HESSE     STATUS=OK           285 CALLS     2375 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8940        .26695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8612        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          32.906        31.475        .27938E-05   -1.4560    
   4  Prefactor     7.5432        4.3927        .49550E-05   -1.5159    
   5  norm          .37876        1.0473        .55270E-04   -1.5585    
   6  Prefactor     .10000E-03    15.323        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.8515        3.6767        .33062E-04   -1.5370    
   8  Prefactor     7.8639        29.638        .57211E-05   -1.5147    
   9  Prefactor     .10000E-03    22.466        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2541        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5185        5.8765        .62873E-05   -1.5197    
  12  Prefactor     7.5321        7.0570        .58453E-05   -1.5159    
  13  Prefactor     5.0796        2.5053        .34311E-05   -1.5257    
  14  norm          25.116        10.497        .31971E-05   -1.4705    
  15  Prefactor     .10000E-03    1.5099        .19198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.053        .15467       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0466        3.9469        .60959E-05   -1.5306    
  18  Prefactor     9.3217        34.914        .52244E-05   -1.5097    
  19  Normalizat    1.1838        .20904        .47525E-04   -.87105    
  20  Prefactor     .96703        .21032        .10821E-04   -.93837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39411e-10
Minuit parameter uncertainties:
  1  3.79882e-06
  2  8.69471e-06
  3  31.4904
  4  4.39288
  5  1.04737
  6  1.28653e-05
  7  3.67696
  8  29.6939
  9  1.53891e-05
  10  9.17916e-06
  11  5.87704
  12  7.05782
  13  2.50538
  14  10.4979
  15  5.07402e-06
  16  0.000526844
  17  3.94719
  18  34.9909
  19  0.209189
  20  0.210495
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  7.864e+00  2.969e+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.670e-01  2.105e-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.184e+00  2.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/432752/likelihoodResults_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.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) = 6457.26200921
delta logL = 0.12130191063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6457.25811917
delta logL = 0.125191942543

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6457.258     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      278 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0712        27.137        .75031E-03   -.11958E-03
   2  Index         3.1237        1.9269        .95217E-02   -.22498E-04
   3  Normalizat    1.1642        .20527        .23932E-03   -.92870E-04
   4  Prefactor     .97795        .20973        .26915E-03   -.25850E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.07122
  Index      = 3.12368
  Normalizat = 1.16422
  Prefactor  = 0.977953
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.258     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0712        19.889        .30012E-04   -1.5176    
   2  Index         3.1237        1.4299        .38087E-03   -.38468    
   3  Normalizat    1.1642        .20568        .95729E-05   -.87716    
   4  Prefactor     .97795        .20983        .10766E-04   -.93468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33075e-11
Minuit parameter uncertainties:
  1  19.9075
  2  1.45364
  3  0.205824
  4  0.210009
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432752': 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) = 6457.25804573
delta logL = 0.125265385927

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  7.071e+00  1.991e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  3.124e+00  1.454e+00  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.780e-01  2.100e-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.164e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
Ra Dec: 145.494 27.414

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/432752/cmap_HighResolution_269136001_269395201_4FGL_J0941.9+2724_daily_bin115.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.71e-08', time_completed='2021-08-31 22:40:53.088131', job_id='432752', GAL2='0.98', fit_tolerance='1e-08', EG2='1.16', EG='1.18', time_epoch_completed='1630474853.09', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.25e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='115' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 22:40:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 432752: <4FGL_J0941.9+2724_daily_bin115> in cluster <slac> Done

Job <4FGL_J0941.9+2724_daily_bin115> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Aug 31 22:30:34 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 22:30:35 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:35 2021
Terminated at Tue Aug 31 22:40:53 2021
Results reported at Tue Aug 31 22:40:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin115 145.494 27.4136 269136001 269395201 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 :                                   604.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            619 sec.

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

