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


Performing analysis on: 4FGL_J1212.0-2326_daily_bin1407
RA = 183.001, Dec = -23.4494
tmin = 604022401, tmax = 604281601
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='410449', job_status='RUN', time_executed='2021-09-05 04:02:28.833931', time_epoch_executed='1630839748.83' WHERE source_name='4FGL J1212.0-2326' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410449

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410449/ft1_4FGL_J1212.0-2326_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410449/ft1_4FGL_J1212.0-2326_daily_bin1407.fits outfile=/scratch/kocevski/410449/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1407.fits ra=183.001 dec=-23.4494 rad=12.0 tmin=604022401.0 tmax=604281601.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 4.20
user 3.97
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.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/410449/ft1_filteredMKT_4FGL_J1212.0-2326_daily_bin1407.fits evtable="EVENTS" outfile="/scratch/kocevski/410449/ft1_filtered_4FGL_J1212.0-2326_daily_bin1407.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410449/ft1_filtered_4FGL_J1212.0-2326_daily_bin1407.fits" evtable="EVENTS" scfile=/scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits sctable="SC_DATA" outfile=/scratch/kocevski/410449/ltcube_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.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/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits
.....................!
real 11.61
user 11.23
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410449/ft1_filtered_4FGL_J1212.0-2326_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/410449/ltcube_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.fits outfile=/scratch/kocevski/410449/expmap_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.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/410449/ltcube_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.fits
.....................!
real 190.87
user 186.25
sys 4.28

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

Setting source of interest to:
4FGL J1212.0-2326 @ 183.001 -23.4494

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/410449/ft1_filtered_4FGL_J1212.0-2326_daily_bin1407.fits scfile=/scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits outfile=/scratch/kocevski/410449/cmap_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.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=183.001 yref=-23.4494 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.61
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410449/ft1_filtered_4FGL_J1212.0-2326_daily_bin1407.fits scfile=/scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits outfile=/scratch/kocevski/410449/cmap_HighResolution_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.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=183.001 yref=-23.4494 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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410449/ft1_filtered_4FGL_J1212.0-2326_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410449/Model_4FGL_J1212.0-2326_daily_bin1407.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/410449/ft1_filtered_4FGL_J1212.0-2326_daily_bin1407.fits.....................!
real 63.93
user 62.66
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/410449/ft1_filtered_4FGL_J1212.0-2326_daily_bin1407.fits', '/scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits', expMap='/scratch/kocevski/410449/expmap_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.fits', expCube='/scratch/kocevski/410449/ltcube_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/410449/Model_4FGL_J1212.0-2326_daily_bin1407.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1212.0-2326'

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.799e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/410449/ft1_filtered_4FGL_J1212.0-2326_daily_bin1407.fits
Spacecraft file(s): /scratch/kocevski/410449/ft2_4FGL_J1212.0-2326_daily_bin1407.fits
Exposure map: /scratch/kocevski/410449/expmap_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.fits
Exposure cube: /scratch/kocevski/410449/ltcube_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/410449/Model_4FGL_J1212.0-2326_daily_bin1407.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) = 7926.35704469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13540E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0046       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.9618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.517       1.0000         .10000E-03   10000.    
     9 'norm      '    4.2461       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10461E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14743E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3030       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10908E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .84311       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.7041       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2393       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91519       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7926.324     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2307 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5012       -.28103E-08** at limit **
   2  Prefactor     .10000E-03    14.972        .57876E-06** at limit **
   3  norm          .10000E-03    .34113       -.17300E-07** at limit **
   4  Prefactor     .10000E-03    87.269        .15136E-06** at limit **
   5  Prefactor     2.0003        3.9684        .39383E-05    .42990E-05
   6  Prefactor     .10000E-03    16.531       -.40039E-06** at limit **
   7  norm          9.9601        12.713        .20921E-07    .31766E-05
   8  Prefactor     37.532        19.176        .94583E-07    .36304E-03
   9  norm          4.2394        5.3165        .17053E-06    .28607E-03
  10  Prefactor     .10000E-03    1.6755        .17282E-08** at limit **
  11  Prefactor     .10000E-03    17.665       -.62295E-06** at limit **
  12  Prefactor     .10000E-03    5.2396       -.69785E-08** at limit **
  13  Prefactor     .10001E-03    67.214        .70266E-06** at limit **
  14  Prefactor     .10000E-03    21.915        .91159E-06** at limit **
  15  Prefactor     .10000E-03    6.1681        .59064E-08** at limit **
  16  Prefactor     .10000E-03    2.6556       -.62362E-08** at limit **
  17  Prefactor     7.3029        2.4600        .11895E-07    .14210E-04
  18  Prefactor     .10000E-03    8.5596        .56187E-08** at limit **
  19  norm          .84330        .72245        .33013E-07    .15467E-03
  20  Prefactor     .10000E-03    49.997       -.12968E-06** at limit **
  21  norm          6.7028        4.9946        .96083E-07    .11207E-03
  22  Prefactor     .10000E-03    2.6131        .11158E-06** at limit **
  23  Normalizat    1.2398        .21107       -.87954E-06    .21157E-03
  24  Prefactor     .91505        .10512        .13701E-06    .27372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 2.00025
  Prefactor  = 0.0001
  norm       = 9.96011
  Prefactor  = 37.532
  norm       = 4.23938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.3029
  Prefactor  = 0.0001
  norm       = 0.843303
  Prefactor  = 0.0001
  norm       = 6.70278
  Prefactor  = 0.0001
  Normalizat = 1.23981
  Prefactor  = 0.915053
 **********
 **   18 **HESSE 
 **********

 FCN=   7926.324     FROM HESSE     STATUS=OK           389 CALLS     2696 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5029        .13751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .34531        .50774E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    88.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.0003        3.9723        .12034E-02   -1.5425    
   6  Prefactor     .10000E-03    16.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.9601        12.712        .12696E-03   -1.5077    
   8  Prefactor     37.532        19.107        .65433E-04   -1.4482    
   9  norm          4.2394        5.2690        .18717E-03   -1.5296    
  10  Prefactor     .10000E-03    1.6892        .11251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.2414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    69.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.6767        .14164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3029        2.4599        .78861E-04   -1.5167    
  18  Prefactor     .10000E-03    8.6607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .84330        .69148        .67304E-03   -1.5524    
  20  Prefactor     .10000E-03    50.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.7028        4.9803        .15497E-03   -1.5190    
  22  Prefactor     .10000E-03    2.6309        .14023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2398        .25282        .31862E-03   -.85381    
  24  Prefactor     .91505        .12634        .18390E-03   -.95617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70275e-10
Minuit parameter uncertainties:
  1  4.49259e-07
  2  2.65949e-05
  3  7.88507e-07
  4  0.00122586
  5  3.97284
  6  2.47668e-05
  7  12.7156
  8  19.1098
  9  5.26957
  10  3.85954e-07
  11  4.14077e-05
  12  2.06936e-07
  13  0.00126226
  14  3.09007e-05
  15  1.77928e-06
  16  1.05759e-06
  17  2.45996
  18  8.14431e-06
  19  0.691486
  20  9.27011e-05
  21  4.98062
  22  1.34812e-05
  23  0.25307
  24  0.126376
Done.

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

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  1.000e-04  1.262e-03  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  1.897e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.151e-01  1.264e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.240e+00  2.531e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.001 -23.449
Photon Flux Upper Limit: 6.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410449/likelihoodResults_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.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): 102
logL (Free Index) = 7926.32454366
delta logL = -6.87634401402e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7926.32454365
delta logL = -6.87582669343e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8975       1.0000          .0000       10.000    
     3 'Normalizat'    1.2398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91505       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7926.306     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      254 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76238        32.244        .90713E-02   -.17070E-02
   2  Index         2.5732        2.9082        .59903E-01    .32804E-03
   3  Normalizat    1.2362        .20964        .72089E-01    .21261E-04
   4  Prefactor     .91443        .10481        .45197E-01   -.72346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.762384
  Index      = 2.57318
  Normalizat = 1.23616
  Prefactor  = 0.914431
 **********
 **   18 **HESSE 
 **********

 FCN=   7926.306     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76238        1044.7        .36285E-03   -1.5883    
   2  Index         2.5732        8.5269        .23961E-01   -.50678    
   3  Normalizat    1.2362        .16352        .31900E-03   -.85493    
   4  Prefactor     .91443        .86432E-01    .18394E-03   -.95639    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.41728e-08
Minuit parameter uncertainties:
  1  57.4745
  2  20.0843
  3  0.163584
  4  0.0864447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410449': 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): 102
logL (Free Index) = 7926.30631156
delta logL = 0.0181633284019

Extracting fit parameters...

4FGL J1212.0-2326
   Spectrum: PowerLaw
297    Prefactor:  7.624e-01  5.747e+01  1.000e-04  1.000e+04 ( 1.000e-14)
298        Index:  2.573e+00  2.008e+01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  4.223e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  9.144e-01  8.644e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.236e+00  1.636e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.001 -23.449

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/410449/cmap_HighResolution_604022401_604281601_4FGL_J1212.0-2326_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.84e-08', time_completed='2021-09-05 04:16:52.183741', job_id='410449', GAL2='0.91', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1630840612.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.82e-02', ts2='0.04', photon_index_error='0.00', photon_index='1.90' WHERE bin_id='1407' AND source_name='4FGL J1212.0-2326' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:16:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 410449: <4FGL_J1212.0-2326_daily_bin1407> in cluster <slac> Done

Job <4FGL_J1212.0-2326_daily_bin1407> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 04:01:00 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:01:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:01:01 2021
Terminated at Sun Sep  5 04:16:55 2021
Results reported at Sun Sep  5 04:16:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1212.0-2326_daily_bin1407 183.001 -23.4494 604022401 604281601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1212.0-2326 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   743.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             274.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            955 sec.

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

