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


Performing analysis on: 4FGL_J0941.9+2724_daily_bin1273
RA = 145.494, Dec = 27.4136
tmin = 569289601, tmax = 569548801
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='439249', job_status='RUN', time_executed='2021-08-31 22:50:55.344977', time_epoch_executed='1630475455.35' WHERE source_name='4FGL J0941.9+2724' and cadence='daily' and bin_id='1273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439249

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439249/ft1_4FGL_J0941.9+2724_daily_bin1273.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439249/ft2_4FGL_J0941.9+2724_daily_bin1273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439249/ft1_4FGL_J0941.9+2724_daily_bin1273.fits outfile=/scratch/kocevski/439249/ft1_filteredMKT_4FGL_J0941.9+2724_daily_bin1273.fits ra=145.494 dec=27.4136 rad=12.0 tmin=569289601.0 tmax=569548801.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.63
user 3.37
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439249/ft1_filtered_4FGL_J0941.9+2724_daily_bin1273.fits" evtable="EVENTS" scfile=/scratch/kocevski/439249/ft2_4FGL_J0941.9+2724_daily_bin1273.fits sctable="SC_DATA" outfile=/scratch/kocevski/439249/ltcube_569289601_569548801_4FGL_J0941.9+2724_daily_bin1273.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/439249/ft2_4FGL_J0941.9+2724_daily_bin1273.fits
.....................!
real 11.98
user 11.46
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439249/ft1_filtered_4FGL_J0941.9+2724_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/439249/ft2_4FGL_J0941.9+2724_daily_bin1273.fits sctable="SC_DATA" expcube=/scratch/kocevski/439249/ltcube_569289601_569548801_4FGL_J0941.9+2724_daily_bin1273.fits outfile=/scratch/kocevski/439249/expmap_569289601_569548801_4FGL_J0941.9+2724_daily_bin1273.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/439249/ltcube_569289601_569548801_4FGL_J0941.9+2724_daily_bin1273.fits
.....................!
real 191.72
user 186.46
sys 4.15

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/439249/ft1_filtered_4FGL_J0941.9+2724_daily_bin1273.fits scfile=/scratch/kocevski/439249/ft2_4FGL_J0941.9+2724_daily_bin1273.fits outfile=/scratch/kocevski/439249/cmap_569289601_569548801_4FGL_J0941.9+2724_daily_bin1273.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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439249/ft1_filtered_4FGL_J0941.9+2724_daily_bin1273.fits scfile=/scratch/kocevski/439249/ft2_4FGL_J0941.9+2724_daily_bin1273.fits outfile=/scratch/kocevski/439249/cmap_HighResolution_569289601_569548801_4FGL_J0941.9+2724_daily_bin1273.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38687E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.554       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6085       1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.203       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1618       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    10.353       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5392       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0969       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.281       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .77231       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3388       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.

 FCN=   5914.064     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2094 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    12.280         .0000    ** at limit **
   2  Prefactor     30.549        21.955         .0000       -.77346E-03
   3  norm          .10000E-03    14.209         .0000    ** at limit **
   4  Prefactor     4.6086        3.4952         .0000        .10148E-02
   5  norm          .10000E-03    .51699         .0000    ** at limit **
   6  Prefactor     .10001E-03    32.019         .0000    ** at limit **
   7  Prefactor     .10000E-03    2.1780         .0000    ** at limit **
   8  Prefactor     36.206        31.619         .0000        .72719E-03
   9  Prefactor     .10001E-03    44.725         .0000    ** at limit **
  10  Prefactor     .10000E-03    25.646         .0000    ** at limit **
  11  Prefactor     1.1624        9.0565         .0000        .28553E-01
  12  Prefactor     .10000E-03    6.0367         .0000    ** at limit **
  13  Prefactor     .10000E-03    2.0209         .0000    ** at limit **
  14  norm          10.353        9.1347         .0000        .12812E-03
  15  Prefactor     2.5405        3.8558         .0000        .11655E-02
  16  Prefactor     .10000E-03    14.836         .0000    ** at limit **
  17  Prefactor     1.0946        5.5049         .0000        .18091E-02
  18  Prefactor     12.276        38.862         .0000        .42441E-03
  19  Normalizat    .77219        .17814         .0000        .71837E-03
  20  Prefactor     1.3389        .18029         .0000        .43982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 30.5495
  norm       = 0.0001
  Prefactor  = 4.60861
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100001
  Prefactor  = 36.2065
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 1.16236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3535
  Prefactor  = 2.54052
  Prefactor  = 0.0001
  Prefactor  = 1.09465
  Prefactor  = 12.276
  Normalizat = 0.772193
  Prefactor  = 1.33891
 **********
 **   18 **HESSE 
 **********

 FCN=   5914.064     FROM HESSE     STATUS=OK           291 CALLS     2385 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    14.682        .80787E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.549        21.996        .72485E-04   -1.4602    
   3  norm          .10000E-03    14.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6086        3.4939        .12134E-03   -1.5279    
   5  norm          .10000E-03    .51975        .53991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    32.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.2564        .22152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.206        31.580        .66607E-04   -1.4504    
   9  Prefactor     .10001E-03    44.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1624        9.0823        .21363E-02   -1.5492    
  12  Prefactor     .10000E-03    6.0728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1095        .21309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          10.353        9.1227        .12453E-03   -1.5064    
  15  Prefactor     2.5405        3.6960        .15641E-03   -1.5389    
  16  Prefactor     .10000E-03    14.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0946        5.0905        .30317E-03   -1.5499    
  18  Prefactor     12.276        38.864        .11430E-03   -1.5007    
  19  Normalizat    .77219        .21044        .27783E-03   -1.0111    
  20  Prefactor     1.3389        .21443        .22752E-03   -.82157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04327e-08
Minuit parameter uncertainties:
  1  0.000680623
  2  22.002
  3  6.57531e-06
  4  3.49401
  5  5.42983e-06
  6  0.000923368
  7  7.79701e-05
  8  31.5946
  9  0.00122384
  10  0.000368502
  11  6.49935
  12  5.93268e-05
  13  1.55215e-05
  14  9.12392
  15  3.6963
  16  9.93125e-05
  17  4.72157
  18  38.9438
  19  0.210657
  20  0.214573
Done.

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

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  3.621e+01  3.159e+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:  1.339e+00  2.146e-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:  7.722e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.84
Ra Dec: 145.494 27.414
Photon Index (Fixed Index): 2.43 +/- 0.00
Photon Flux (Fixed Index): 4.62e-08 +/- 4.03e-08
Energy Flux (Fixed Index): 1.45e-05 +/- 1.27e-05

TS (Fixed Index): 1.84
Ra Dec: 145.494 27.414
Photon Flux Upper Limit: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/439249/likelihoodResults_569289601_569548801_4FGL_J0941.9+2724_daily_bin1273.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) = 5913.21728741
delta logL = 0.846462655321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5913.04617519
delta logL = 1.01757487411

Fit tolerance = 1e-08

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

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

 FCN=   5913.046     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.621        43.071        .13212E-02   -.71478E-03
   2  Index         1.7393        .38973        .17655       -.39224E-04
   3  Normalizat    .79900        .17320        .43596E-01    .18793E-04
   4  Prefactor     1.3136        .18200        .51800E-01    .13543E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.6206
  Index      = 1.7393
  Normalizat = 0.799001
  Prefactor  = 1.31363
 **********
 **   18 **HESSE 
 **********

 FCN=   5913.046     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.621        39.987        .52850E-04   -1.4188    
   2  Index         1.7393        .40558        .69498E-02   -.71040    
   3  Normalizat    .79900        .20292        .27307E-03   -1.0011    
   4  Prefactor     1.3136        .21333        .22901E-03   -.82903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00087e-09
Minuit parameter uncertainties:
  1  40.0051
  2  0.406358
  3  0.203117
  4  0.213477
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439249': 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) = 5913.04617508
delta logL = 1.01757498287

Extracting fit parameters...

4FGL J0941.9+2724
   Spectrum: PowerLaw
260    Prefactor:  5.762e+01  4.001e+01  1.000e-04  1.000e+04 ( 1.000e-13)
261        Index:  1.739e+00  4.064e-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:  1.314e+00  2.135e-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:  7.990e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 145.494 27.414
Photon Index (Free Index): 1.74 +/- 0.41
Photon Flux (Free Index): 3.21e-08 +/- 2.68e-08
Energy Flux (Free Index): 4.62e-05 +/- 4.77e-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/439249/cmap_HighResolution_569289601_569548801_4FGL_J0941.9+2724_daily_bin1273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', photon_flux='4.62e-08', energy_flux2='4.62e-05', photon_flux_error='4.03e-08', dlogl='1.02e+00', energy_flux='1.45e-05', photon_flux2='3.21e-08', job_status='DONE', time_completed='2021-08-31 23:00:33.549762', photon_index_error2='0.41', photon_index2='1.74', ts='1.84', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='4.77e-05', EG='0.77', time_epoch_completed='1630476033.55', return_code='0', job_id='439249', GAL2='1.31', EG2='0.80', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='2.68e-08', ts2='3.89', photon_index='2.43' WHERE bin_id='1273' AND source_name='4FGL J0941.9+2724' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 23:00:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 439249: <4FGL_J0941.9+2724_daily_bin1273> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0941.9+2724_daily_bin1273 145.494 27.4136 569289601 569548801 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 :                                   571.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             388.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            600 sec.

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

